numbl 0.1.4 → 0.1.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -60,6 +60,20 @@ export interface ImagescTrace {
60
60
  rows: number;
61
61
  cols: number;
62
62
  }
63
+ export interface PcolorTrace {
64
+ /** X coordinates: flat array of length rows*cols (column-major) */
65
+ x: number[];
66
+ /** Y coordinates: flat array of length rows*cols (column-major) */
67
+ y: number[];
68
+ /** Color values: flat array of length rows*cols (column-major) */
69
+ c: number[];
70
+ /** Number of rows in the grid */
71
+ rows: number;
72
+ /** Number of columns in the grid */
73
+ cols: number;
74
+ edgeColor?: [number, number, number] | "none";
75
+ faceAlpha?: number;
76
+ }
63
77
  export interface ContourTrace {
64
78
  /** X coordinates: flat array (column-major) */
65
79
  x: number[];
@@ -171,6 +185,9 @@ export type PlotInstruction = {
171
185
  } | {
172
186
  type: "imagesc";
173
187
  trace: ImagescTrace;
188
+ } | {
189
+ type: "pcolor";
190
+ trace: PcolorTrace;
174
191
  } | {
175
192
  type: "contour";
176
193
  trace: ContourTrace;
@@ -246,9 +263,11 @@ export type PlotInstruction = {
246
263
  } | {
247
264
  type: "set_colorbar";
248
265
  value: string;
266
+ location?: string;
249
267
  } | {
250
268
  type: "set_colormap";
251
269
  name: string;
270
+ data?: number[][];
252
271
  } | {
253
272
  type: "set_axis";
254
273
  value: string;
@@ -259,4 +278,7 @@ export type PlotInstruction = {
259
278
  type: "set_view";
260
279
  az: number;
261
280
  el: number;
281
+ } | {
282
+ type: "set_caxis";
283
+ limits: [number, number];
262
284
  };