UNPKG

@nulven/nodeplotlib

Version:

NodeJS frontend-less plotting lib using plotly.js inspired by matplotlib

15 lines (14 loc) 430 B
import { Layout as PlotlyLayout, PlotData as PlotlyPlotData } from 'plotly.js'; import { Observable } from 'rxjs'; export declare type Plot = Partial<PlotlyPlotData>; export declare type Layout = Partial<PlotlyLayout>; export interface PlotDataStream { id: number; data: Observable<Plot[]>; layout: Observable<Layout | undefined>; } export interface PlotData { id: number; data: Plot[]; layout?: Layout; }