-
Notifications
You must be signed in to change notification settings - Fork 16
Expand file tree
/
Copy pathI3dPlot.java
More file actions
1204 lines (1070 loc) · 40.6 KB
/
I3dPlot.java
File metadata and controls
1204 lines (1070 loc) · 40.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
package com.yishape.lab.math.plot;
import com.yishape.lab.math.linalg.IMatrix;
import com.yishape.lab.math.linalg.IVector;
import com.yishape.lab.math.plot.echarts.EchartsThemeManager;
import java.io.Serializable;
import java.util.List;
import java.util.Map;
/**
* 3D plotting interface: chart types and fluent configuration (parallel to {@link IPlot}).
* 三维绘图接口:图表类型与流式配置(与 {@link IPlot} 风格一致)。
*
* <p>Grid conventions / 网格约定:对 {@link #surface3d(IVector, IVector, IMatrix)} 等基于 meshgrid 的方法,
* {@code z} 为二维采样矩阵,行索引与 {@code x} 对齐、列索引与 {@code y} 对齐(实现类须在同一约定下解释 {@link IMatrix} 下标)。
*
* <p>Geospatial point clouds / 地理点集:可将经度、纬度、高程(或抬高后的专题值)作为
* {@link #scatter3d(IVector, IVector, IVector)} 的 {@code x,y,z};栅格高程与拉伸专题图可用 {@link #terrain3d}、{@link #heatmap3d}。
*
* @author lteb2
*/
public interface I3dPlot extends Serializable {
/**
* 柱体在三维条形图中的截面形状(长方体、圆柱、圆锥等视觉变体)。
*/
enum BarExtrusion3D {
/** 长方体柱(默认)。 */
BOX,
/** 圆柱体。 */
CYLINDER,
/** 圆锥体(通常为戏剧化展示)。 */
CONE
}
// ========== 1. Relations & distribution 三维关系与分布 ==========
/**
* 3D scatter: one point per ({@code x[i], y[i], z[i]}).
* 三维散点图:每个样本对应空间中一点。
*/
I3dPlot scatter3d(IVector x, IVector y, IVector z);
/**
* 3D scatter with categorical hue (e.g. cluster or class label per point).
* 带分组的多系列三维散点。
*/
I3dPlot scatter3d(IVector x, IVector y, IVector z, List<String> hue);
/**
* 3D bubble chart: {@code sizes} encodes a fourth numeric dimension (marker size); optional {@code hue} for category/color.
* 三维气泡图:{@code sizes} 表示第四维(大小),可选 {@code hue} 作类别/颜色。
*/
I3dPlot scatterBubble3d(IVector x, IVector y, IVector z, IVector sizes);
/**
* 3D bubble chart with hue grouping.
* 带分组的三维气泡图。
*/
I3dPlot scatterBubble3d(IVector x, IVector y, IVector z, IVector sizes, List<String> hue);
/**
* 3D line / path: consecutive points are connected in index order (trajectory, time series in 3D).
* 三维折线/路径:按索引顺序连接,用于轨迹或三维序列。
*/
I3dPlot line3d(IVector x, IVector y, IVector z);
/**
* 3D density / point-cloud density: color, opacity, or isosurfaces per implementation (hotspots / outliers context).
* 三维密度图:用颜色、透明度或等值面表示点密度(热点与离群脉络)。
*/
I3dPlot density3d(IVector x, IVector y, IVector z);
/**
* 3D density with resolution hint (voxel/grid resolution or KDE grids; {@code resolution <= 0} 表示实现类默认).
* 指定分辨率的三维密度(体素/网格或 KDE 网格;非正数则由实现决定默认)。
*/
I3dPlot density3d(IVector x, IVector y, IVector z, int resolution);
// ========== 2. Distribution & statistics 数据分布与统计 ==========
/**
* 3D bar chart: categories on one axis, values as bar heights (extrusion shape via {@link BarExtrusion3D} overload).
* 三维柱状图:类别与柱高;柱体形状见 {@link BarExtrusion3D} 重载。
*/
I3dPlot bar3d(List<String> categories, IVector values);
/**
* 3D bar with extrusion style (box / cylinder / cone).
* 指定柱体截面形状的三维柱图。
*/
I3dPlot bar3d(List<String> categories, IVector values, BarExtrusion3D extrusion);
/**
* Grouped 3D bars (same idea as {@link IPlot#bar(List, IVector, List)} in a 3D scene).
* 分组三维柱图。
*/
I3dPlot bar3d(List<String> xticks, IVector y, List<String> hue);
/**
* Grouped 3D bars with extrusion style.
* 带柱体形状的分组三维柱图。
*/
I3dPlot bar3d(List<String> xticks, IVector y, List<String> hue, BarExtrusion3D extrusion);
/**
* 3D pie: part-to-whole proportions with extruded / perspective pie (implementation-specific styling).
* 三维饼图:比例组成的三维透视/拉伸效果。
*/
I3dPlot pie3d(IVector data);
/**
* 3D pie with slice labels.
* 带扇区标签的三维饼图。
*/
I3dPlot pie3d(IVector data, List<String> labels);
/**
* 3D / joint histogram: 2D bins over ({@code x}, {@code y}), bar height = count per cell (bivariate density).
* 三维直方图(联合直方图):{@code (x,y)} 平面分格,柱体高度为频数。
*/
I3dPlot hist3d(IVector x, IVector y);
/**
* Joint histogram with explicit bin counts along x and y.
* 指定 x、y 方向 Bin 数的联合直方图。
*/
I3dPlot hist3d(IVector x, IVector y, int xBins, int yBins);
/**
* 3D box plot: single-sample groups with {@link #boxplot3d(IMatrix, List)} for multi-column layouts.
* 三维箱线图:单组向量;多组对比宜用矩阵重载。
*/
I3dPlot boxplot3d(IVector data, List<String> labels);
/**
* 3D box plot: each column (or row, per implementation doc) is one distribution / group for side-by-side comparison.
* 多组三维箱线对比(每列或每行一组分布,以实现类文档为准)。
*/
I3dPlot boxplot3d(IMatrix data, List<String> labels);
// ========== 3. Surface, model & fields 曲面、模型与场 ==========
/**
* 3D surface: height from {@code z} over the mesh ({@code x}, {@code y}).
* 三维曲面图:高度由网格矩阵 {@code z} 给定。
*/
I3dPlot surface3d(IVector x, IVector y, IMatrix z);
/**
* Same as {@link #surface3d(IVector, IVector, IMatrix)} with optional contour projection on the base plane (meshc-style).
* 曲面图并可是否在底面绘制等高线投影(类似 meshc 的底面等高线)。
*/
I3dPlot surface3d(IVector x, IVector y, IMatrix z, boolean bottomContourProjection);
/**
* 3D contour lines on the surface or in volume (contour3-style); levels may follow {@link PlotStyle} or defaults.
* 三维等高线/等值线。
*/
I3dPlot contour3d(IVector x, IVector y, IMatrix z);
/**
* 3D wireframe only (no face fill).
* 三维线框图。
*/
I3dPlot wireframe3d(IVector x, IVector y, IMatrix z);
/**
* 3D heatmap: intensity on ({@code x},{@code y}) with height and/or color (same grid as 2D heatmap, extruded in Z).
* 三维热力图:平面上强度映射为高度与/或颜色。
*/
I3dPlot heatmap3d(IMatrix z, List<String> xLabels, List<String> yLabels);
/**
* 3D waterfall: layers stacked or offset along an axis (e.g. spectra, vibrations); {@code layerHeights} rows = series, cols = {@code x}.
* 三维瀑布图:多层沿轴向排列;矩阵每行一条序列、列与 {@code x} 对齐。
*/
I3dPlot waterfall3d(IVector x, IMatrix layerHeights);
/**
* Quiver / 3D vector field: arrows at ({@code x,y,z}) with directions ({@code u,v,w}).
* 三维向量场:在采样点处绘制方向与长度。
*/
I3dPlot vectorField3d(IVector x, IVector y, IVector z, IVector u, IVector v, IVector w);
/**
* 3D streamlines / flow lines traced through a regular grid field (same-length vectors as {@link #vectorField3d}).
* 三维流线图:在给定矢量场上积分得到的流线(与向量场采样一致)。
*/
I3dPlot streamlines3d(IVector x, IVector y, IVector z, IVector u, IVector v, IVector w);
// ========== 4. Geo & structure 地理空间与结构 ==========
/**
* Terrain / height field (semantic alias for surface over geographic or DEM grids; axis labels are geographic if set via {@link #xlabel(String)}).
* 三维地形/高程栅格(语义上与曲面一致;轴名可通过流式 API 写为经纬度等)。
*/
I3dPlot terrain3d(IVector x, IVector y, IMatrix elevation);
/**
* Flight-path alias for {@link #line3d(IVector, IVector, IVector)}.
* 三维航线语义别名,等价于 {@link #line3d(IVector, IVector, IVector)}。
*
* @param x path X
* @param y path Y
* @param z path Z
* @return this instance for chaining
*/
default I3dPlot route3d(IVector x, IVector y, IVector z) {
return line3d(x, y, z);
}
/**
* Same as {@link #route3d(IVector, IVector, IVector)} with style string.
*
* @param x path X
* @param y path Y
* @param z path Z
* @param styleString backend-specific style tokens
* @return this instance for chaining
*/
default I3dPlot route3d(IVector x, IVector y, IVector z, String styleString) {
return line3d(x, y, z, styleString);
}
/**
* Same as {@link #route3d(IVector, IVector, IVector)} with {@link PlotStyle}.
*
* @param x path X
* @param y path Y
* @param z path Z
* @param style structured style
* @return this instance for chaining
*/
default I3dPlot route3d(IVector x, IVector y, IVector z, PlotStyle style) {
return line3d(x, y, z, style);
}
/**
* 3D force-directed or fixed-layout graph (nodes + links), analogous to {@link IPlot#graph(List, List)}.
* 三维网络/关系图。
*/
I3dPlot graph3d(List<Map<String, Object>> nodes, List<Map<String, Object>> links);
/**
* Filled 3D region (e.g. volume under a surface, curtain between two polylines, or cumulative extrusion along an axis; interpretation is renderer-defined).
* 三维区域填充:如曲面下方体积、两曲线间的帷幕或沿轴向的累积立体区域(具体由实现解释为网格或参数曲面)。
*/
I3dPlot areaFill3d(IVector x, IVector y, IVector z);
/**
* 3D radar / spider: multiple samples (rows of {@code data}) vs {@code indicators} axes in 3D layout.
* 三维雷达/蛛网图:{@code data} 每行一样本,列对应 {@code indicators}。
*/
I3dPlot radar3d(IMatrix data, List<String> indicators);
/**
* 3D radar with per-series names (for legend).
* 三维雷达图并指定系列名。
*/
I3dPlot radar3d(IMatrix data, List<String> indicators, List<String> seriesNames);
// ========== PlotStyle / style-string overloads(与 IPlot 一致,便于双后端统一) ==========
/**
* 3D scatter with style string; same as {@link #scatter3d(IVector, IVector, IVector)} plus style.
*
* @param x X coordinates
* @param y Y coordinates
* @param z Z coordinates
* @param styleString backend-specific tokens
* @return this instance for chaining
*/
I3dPlot scatter3d(IVector x, IVector y, IVector z, String styleString);
/**
* 3D scatter with {@link PlotStyle}; same as {@link #scatter3d(IVector, IVector, IVector)} plus style.
*
* @param x X coordinates
* @param y Y coordinates
* @param z Z coordinates
* @param style structured style
* @return this instance for chaining
*/
I3dPlot scatter3d(IVector x, IVector y, IVector z, PlotStyle style);
/**
* 3D scatter with hue and style string; same as {@link #scatter3d(IVector, IVector, IVector, List)} plus style.
*
* @param x X coordinates
* @param y Y coordinates
* @param z Z coordinates
* @param hue group label per point
* @param styleString backend-specific tokens
* @return this instance for chaining
*/
I3dPlot scatter3d(IVector x, IVector y, IVector z, List<String> hue, String styleString);
/**
* 3D scatter with hue and {@link PlotStyle}.
*
* @param x X coordinates
* @param y Y coordinates
* @param z Z coordinates
* @param hue group labels
* @param style structured style
* @return this instance for chaining
*/
I3dPlot scatter3d(IVector x, IVector y, IVector z, List<String> hue, PlotStyle style);
/**
* 3D bubble scatter with style string; same as {@link #scatterBubble3d(IVector, IVector, IVector, IVector)} plus style.
*
* @param x X coordinates
* @param y Y coordinates
* @param z Z coordinates
* @param sizes marker size channel
* @param styleString backend-specific tokens
* @return this instance for chaining
*/
I3dPlot scatterBubble3d(IVector x, IVector y, IVector z, IVector sizes, String styleString);
/**
* 3D bubble scatter with {@link PlotStyle}.
*
* @param x X coordinates
* @param y Y coordinates
* @param z Z coordinates
* @param sizes marker size channel
* @param style structured style
* @return this instance for chaining
*/
I3dPlot scatterBubble3d(IVector x, IVector y, IVector z, IVector sizes, PlotStyle style);
/**
* 3D bubble scatter with hue and style string.
*
* @param x X coordinates
* @param y Y coordinates
* @param z Z coordinates
* @param sizes marker size channel
* @param hue group labels
* @param styleString backend-specific tokens
* @return this instance for chaining
*/
I3dPlot scatterBubble3d(IVector x, IVector y, IVector z, IVector sizes, List<String> hue, String styleString);
/**
* 3D bubble scatter with hue and {@link PlotStyle}.
*
* @param x X coordinates
* @param y Y coordinates
* @param z Z coordinates
* @param sizes marker size channel
* @param hue group labels
* @param style structured style
* @return this instance for chaining
*/
I3dPlot scatterBubble3d(IVector x, IVector y, IVector z, IVector sizes, List<String> hue, PlotStyle style);
/**
* Same as {@link #line3d(IVector, IVector, IVector)} with a style string.
* 与无样式 {@link #line3d(IVector, IVector, IVector)} 相同,附带样式字符串。
*
* @param x X coordinates
* @param y Y coordinates
* @param z Z coordinates
* @param styleString backend-specific style tokens
* @return this instance for chaining
*/
I3dPlot line3d(IVector x, IVector y, IVector z, String styleString);
/**
* Same as {@link #line3d(IVector, IVector, IVector)} with {@link PlotStyle}.
*
* @param x X coordinates
* @param y Y coordinates
* @param z Z coordinates
* @param style structured style
* @return this instance for chaining
*/
I3dPlot line3d(IVector x, IVector y, IVector z, PlotStyle style);
/**
* Same as {@link #density3d(IVector, IVector, IVector)} with a style string.
*
* @param x sample X
* @param y sample Y
* @param z sample Z
* @param styleString backend-specific style tokens
* @return this instance for chaining
*/
I3dPlot density3d(IVector x, IVector y, IVector z, String styleString);
/**
* Same as {@link #density3d(IVector, IVector, IVector)} with {@link PlotStyle}.
*
* @param x sample X
* @param y sample Y
* @param z sample Z
* @param style structured style
* @return this instance for chaining
*/
I3dPlot density3d(IVector x, IVector y, IVector z, PlotStyle style);
/**
* Same as {@link #density3d(IVector, IVector, IVector, int)} with a style string.
*
* @param x sample X
* @param y sample Y
* @param z sample Z
* @param resolution grid / voxel resolution hint
* @param styleString backend-specific style tokens
* @return this instance for chaining
*/
I3dPlot density3d(IVector x, IVector y, IVector z, int resolution, String styleString);
/**
* Same as {@link #density3d(IVector, IVector, IVector, int)} with {@link PlotStyle}.
*
* @param x sample X
* @param y sample Y
* @param z sample Z
* @param resolution grid / voxel resolution hint
* @param style structured style
* @return this instance for chaining
*/
I3dPlot density3d(IVector x, IVector y, IVector z, int resolution, PlotStyle style);
/**
* Same as {@link #bar3d(List, IVector)} with a style string.
*
* @param categories category axis labels
* @param values bar heights
* @param styleString backend-specific style tokens
* @return this instance for chaining
*/
I3dPlot bar3d(List<String> categories, IVector values, String styleString);
/**
* Same as {@link #bar3d(List, IVector)} with {@link PlotStyle}.
*
* @param categories category axis labels
* @param values bar heights
* @param style structured style
* @return this instance for chaining
*/
I3dPlot bar3d(List<String> categories, IVector values, PlotStyle style);
/**
* Same as {@link #bar3d(List, IVector, BarExtrusion3D)} with a style string.
*
* @param categories category axis labels
* @param values bar heights
* @param extrusion bar cross-section shape
* @param styleString backend-specific style tokens
* @return this instance for chaining
*/
I3dPlot bar3d(List<String> categories, IVector values, BarExtrusion3D extrusion, String styleString);
/**
* Same as {@link #bar3d(List, IVector, BarExtrusion3D)} with {@link PlotStyle}.
*
* @param categories category axis labels
* @param values bar heights
* @param extrusion bar cross-section shape
* @param style structured style
* @return this instance for chaining
*/
I3dPlot bar3d(List<String> categories, IVector values, BarExtrusion3D extrusion, PlotStyle style);
/**
* Same as {@link #bar3d(List, IVector, List)} with a style string.
*
* @param xticks category labels
* @param y bar heights
* @param hue group labels
* @param styleString backend-specific style tokens
* @return this instance for chaining
*/
I3dPlot bar3d(List<String> xticks, IVector y, List<String> hue, String styleString);
/**
* Same as {@link #bar3d(List, IVector, List)} with {@link PlotStyle}.
*
* @param xticks category labels
* @param y bar heights
* @param hue group labels
* @param style structured style
* @return this instance for chaining
*/
I3dPlot bar3d(List<String> xticks, IVector y, List<String> hue, PlotStyle style);
/**
* Same as {@link #bar3d(List, IVector, List, BarExtrusion3D)} with a style string.
*
* @param xticks category labels
* @param y bar heights
* @param hue group labels
* @param extrusion bar cross-section shape
* @param styleString backend-specific style tokens
* @return this instance for chaining
*/
I3dPlot bar3d(List<String> xticks, IVector y, List<String> hue, BarExtrusion3D extrusion, String styleString);
/**
* Same as {@link #bar3d(List, IVector, List, BarExtrusion3D)} with {@link PlotStyle}.
*
* @param xticks category labels
* @param y bar heights
* @param hue group labels
* @param extrusion bar cross-section shape
* @param style structured style
* @return this instance for chaining
*/
I3dPlot bar3d(List<String> xticks, IVector y, List<String> hue, BarExtrusion3D extrusion, PlotStyle style);
/**
* Same as {@link #pie3d(IVector)} with a style string.
*
* @param data slice values
* @param styleString backend-specific style tokens
* @return this instance for chaining
*/
I3dPlot pie3d(IVector data, String styleString);
/**
* Same as {@link #pie3d(IVector)} with {@link PlotStyle}.
*
* @param data slice values
* @param style structured style
* @return this instance for chaining
*/
I3dPlot pie3d(IVector data, PlotStyle style);
/**
* Same as {@link #pie3d(IVector, List)} with a style string.
*
* @param data slice values
* @param labels slice labels
* @param styleString backend-specific style tokens
* @return this instance for chaining
*/
I3dPlot pie3d(IVector data, List<String> labels, String styleString);
/**
* Same as {@link #pie3d(IVector, List)} with {@link PlotStyle}.
*
* @param data slice values
* @param labels slice labels
* @param style structured style
* @return this instance for chaining
*/
I3dPlot pie3d(IVector data, List<String> labels, PlotStyle style);
/**
* Same as {@link #hist3d(IVector, IVector)} with a style string.
*
* @param x first marginal sample
* @param y second marginal sample
* @param styleString backend-specific style tokens
* @return this instance for chaining
*/
I3dPlot hist3d(IVector x, IVector y, String styleString);
/**
* Same as {@link #hist3d(IVector, IVector)} with {@link PlotStyle}.
*
* @param x first marginal sample
* @param y second marginal sample
* @param style structured style
* @return this instance for chaining
*/
I3dPlot hist3d(IVector x, IVector y, PlotStyle style);
/**
* Same as {@link #hist3d(IVector, IVector, int, int)} with a style string.
*
* @param x first marginal sample
* @param y second marginal sample
* @param xBins bins along X
* @param yBins bins along Y
* @param styleString backend-specific style tokens
* @return this instance for chaining
*/
I3dPlot hist3d(IVector x, IVector y, int xBins, int yBins, String styleString);
/**
* Same as {@link #hist3d(IVector, IVector, int, int)} with {@link PlotStyle}.
*
* @param x first marginal sample
* @param y second marginal sample
* @param xBins bins along X
* @param yBins bins along Y
* @param style structured style
* @return this instance for chaining
*/
I3dPlot hist3d(IVector x, IVector y, int xBins, int yBins, PlotStyle style);
/**
* Same as {@link #boxplot3d(IVector, List)} with a style string.
*
* @param data sample vector
* @param labels group labels
* @param styleString backend-specific style tokens
* @return this instance for chaining
*/
I3dPlot boxplot3d(IVector data, List<String> labels, String styleString);
/**
* Same as {@link #boxplot3d(IVector, List)} with {@link PlotStyle}.
*
* @param data sample vector
* @param labels group labels
* @param style structured style
* @return this instance for chaining
*/
I3dPlot boxplot3d(IVector data, List<String> labels, PlotStyle style);
/**
* Same as {@link #boxplot3d(IMatrix, List)} with a style string.
*
* @param data columns (or rows) as groups per implementation docs
* @param labels group labels
* @param styleString backend-specific style tokens
* @return this instance for chaining
*/
I3dPlot boxplot3d(IMatrix data, List<String> labels, String styleString);
/**
* Same as {@link #boxplot3d(IMatrix, List)} with {@link PlotStyle}.
*
* @param data columns (or rows) as groups per implementation docs
* @param labels group labels
* @param style structured style
* @return this instance for chaining
*/
I3dPlot boxplot3d(IMatrix data, List<String> labels, PlotStyle style);
/**
* Same as {@link #surface3d(IVector, IVector, IMatrix)} with a style string.
*
* @param x surface grid X
* @param y surface grid Y
* @param z height field
* @param styleString backend-specific style tokens
* @return this instance for chaining
*/
I3dPlot surface3d(IVector x, IVector y, IMatrix z, String styleString);
/**
* Same as {@link #surface3d(IVector, IVector, IMatrix)} with {@link PlotStyle}.
*
* @param x surface grid X
* @param y surface grid Y
* @param z height field
* @param style structured style
* @return this instance for chaining
*/
I3dPlot surface3d(IVector x, IVector y, IMatrix z, PlotStyle style);
/**
* Same as {@link #surface3d(IVector, IVector, IMatrix, boolean)} with a style string.
*
* @param x surface grid X
* @param y surface grid Y
* @param z height field
* @param bottomContourProjection draw base contour overlay when {@code true}
* @param styleString backend-specific style tokens
* @return this instance for chaining
*/
I3dPlot surface3d(IVector x, IVector y, IMatrix z, boolean bottomContourProjection, String styleString);
/**
* Same as {@link #surface3d(IVector, IVector, IMatrix, boolean)} with {@link PlotStyle}.
*
* @param x surface grid X
* @param y surface grid Y
* @param z height field
* @param bottomContourProjection draw base contour overlay when {@code true}
* @param style structured style
* @return this instance for chaining
*/
I3dPlot surface3d(IVector x, IVector y, IMatrix z, boolean bottomContourProjection, PlotStyle style);
/**
* Same as {@link #contour3d(IVector, IVector, IMatrix)} with a style string.
*
* @param x grid X
* @param y grid Y
* @param z scalar field
* @param styleString backend-specific style tokens
* @return this instance for chaining
*/
I3dPlot contour3d(IVector x, IVector y, IMatrix z, String styleString);
/**
* Same as {@link #contour3d(IVector, IVector, IMatrix)} with {@link PlotStyle}.
*
* @param x grid X
* @param y grid Y
* @param z scalar field
* @param style structured style
* @return this instance for chaining
*/
I3dPlot contour3d(IVector x, IVector y, IMatrix z, PlotStyle style);
/**
* Same as {@link #wireframe3d(IVector, IVector, IMatrix)} with a style string.
*
* @param x grid X
* @param y grid Y
* @param z height field
* @param styleString backend-specific style tokens
* @return this instance for chaining
*/
I3dPlot wireframe3d(IVector x, IVector y, IMatrix z, String styleString);
/**
* Same as {@link #wireframe3d(IVector, IVector, IMatrix)} with {@link PlotStyle}.
*
* @param x grid X
* @param y grid Y
* @param z height field
* @param style structured style
* @return this instance for chaining
*/
I3dPlot wireframe3d(IVector x, IVector y, IMatrix z, PlotStyle style);
/**
* Same as {@link #heatmap3d(IMatrix, List, List)} with a style string.
*
* @param z intensity matrix
* @param xLabels column labels
* @param yLabels row labels
* @param styleString backend-specific style tokens
* @return this instance for chaining
*/
I3dPlot heatmap3d(IMatrix z, List<String> xLabels, List<String> yLabels, String styleString);
/**
* Same as {@link #heatmap3d(IMatrix, List, List)} with {@link PlotStyle}.
*
* @param z intensity matrix
* @param xLabels column labels
* @param yLabels row labels
* @param style structured style
* @return this instance for chaining
*/
I3dPlot heatmap3d(IMatrix z, List<String> xLabels, List<String> yLabels, PlotStyle style);
/**
* Same as {@link #waterfall3d(IVector, IMatrix)} with a style string.
*
* @param x shared axis
* @param layerHeights one row per series
* @param styleString backend-specific style tokens
* @return this instance for chaining
*/
I3dPlot waterfall3d(IVector x, IMatrix layerHeights, String styleString);
/**
* Same as {@link #waterfall3d(IVector, IMatrix)} with {@link PlotStyle}.
*
* @param x shared axis
* @param layerHeights one row per series
* @param style structured style
* @return this instance for chaining
*/
I3dPlot waterfall3d(IVector x, IMatrix layerHeights, PlotStyle style);
/**
* Same as {@link #vectorField3d(IVector, IVector, IVector, IVector, IVector, IVector)} with a style string.
*
* @param x sample X
* @param y sample Y
* @param z sample Z
* @param u vector X component
* @param v vector Y component
* @param w vector Z component
* @param styleString backend-specific style tokens
* @return this instance for chaining
*/
I3dPlot vectorField3d(IVector x, IVector y, IVector z, IVector u, IVector v, IVector w, String styleString);
/**
* Same as {@link #vectorField3d(IVector, IVector, IVector, IVector, IVector, IVector)} with {@link PlotStyle}.
*
* @param x sample X
* @param y sample Y
* @param z sample Z
* @param u vector X component
* @param v vector Y component
* @param w vector Z component
* @param style structured style
* @return this instance for chaining
*/
I3dPlot vectorField3d(IVector x, IVector y, IVector z, IVector u, IVector v, IVector w, PlotStyle style);
/**
* Same as {@link #streamlines3d(IVector, IVector, IVector, IVector, IVector, IVector)} with a style string.
*
* @param x sample X
* @param y sample Y
* @param z sample Z
* @param u vector X component
* @param v vector Y component
* @param w vector Z component
* @param styleString backend-specific style tokens
* @return this instance for chaining
*/
I3dPlot streamlines3d(IVector x, IVector y, IVector z, IVector u, IVector v, IVector w, String styleString);
/**
* Same as {@link #streamlines3d(IVector, IVector, IVector, IVector, IVector, IVector)} with {@link PlotStyle}.
*
* @param x sample X
* @param y sample Y
* @param z sample Z
* @param u vector X component
* @param v vector Y component
* @param w vector Z component
* @param style structured style
* @return this instance for chaining
*/
I3dPlot streamlines3d(IVector x, IVector y, IVector z, IVector u, IVector v, IVector w, PlotStyle style);
/**
* Same as {@link #terrain3d(IVector, IVector, IMatrix)} with a style string.
*
* @param x terrain grid X
* @param y terrain grid Y
* @param elevation height field / DEM samples
* @param styleString backend-specific style tokens
* @return this instance for chaining
*/
I3dPlot terrain3d(IVector x, IVector y, IMatrix elevation, String styleString);
/**
* Same as {@link #terrain3d(IVector, IVector, IMatrix)} with {@link PlotStyle}.
*
* @param x terrain grid X
* @param y terrain grid Y
* @param elevation height field / DEM samples
* @param style structured style
* @return this instance for chaining
*/
I3dPlot terrain3d(IVector x, IVector y, IMatrix elevation, PlotStyle style);
/**
* Same as {@link #graph3d(List, List)} with a style string.
*
* @param nodes node maps
* @param links link maps
* @param styleString backend-specific style tokens
* @return this instance for chaining
*/
I3dPlot graph3d(List<Map<String, Object>> nodes, List<Map<String, Object>> links, String styleString);
/**
* Same as {@link #graph3d(List, List)} with {@link PlotStyle}.
*
* @param nodes node maps
* @param links link maps
* @param style structured style
* @return this instance for chaining
*/
I3dPlot graph3d(List<Map<String, Object>> nodes, List<Map<String, Object>> links, PlotStyle style);
/**
* Same as {@link #areaFill3d(IVector, IVector, IVector)} with a style string.
*
* @param x boundary / surface X
* @param y boundary / surface Y
* @param z boundary / surface Z
* @param styleString backend-specific style tokens
* @return this instance for chaining
*/
I3dPlot areaFill3d(IVector x, IVector y, IVector z, String styleString);
/**
* Same as {@link #areaFill3d(IVector, IVector, IVector)} with {@link PlotStyle}.
*
* @param x boundary / surface X
* @param y boundary / surface Y
* @param z boundary / surface Z
* @param style structured style
* @return this instance for chaining
*/
I3dPlot areaFill3d(IVector x, IVector y, IVector z, PlotStyle style);
/**
* Same as {@link #radar3d(IMatrix, List)} with a style string.
*
* @param data one row per series/sample
* @param indicators axis names
* @param styleString backend-specific style tokens
* @return this instance for chaining
*/
I3dPlot radar3d(IMatrix data, List<String> indicators, String styleString);
/**
* Same as {@link #radar3d(IMatrix, List)} with {@link PlotStyle}.
*
* @param data one row per series/sample
* @param indicators axis names
* @param style structured style
* @return this instance for chaining
*/
I3dPlot radar3d(IMatrix data, List<String> indicators, PlotStyle style);
/**
* Same as {@link #radar3d(IMatrix, List, List)} with a style string.
*
* @param data one row per series
* @param indicators axis names
* @param seriesNames legend entries
* @param styleString backend-specific style tokens
* @return this instance for chaining
*/
I3dPlot radar3d(IMatrix data, List<String> indicators, List<String> seriesNames, String styleString);
/**
* Same as {@link #radar3d(IMatrix, List, List)} with {@link PlotStyle}.
*
* @param data one row per series
* @param indicators axis names
* @param seriesNames legend entries
* @param style structured style
* @return this instance for chaining
*/
I3dPlot radar3d(IMatrix data, List<String> indicators, List<String> seriesNames, PlotStyle style);
// ========== Style / theme hooks(对齐 IPlot 可扩展性) ==========
/**
* Default plot style when the style system resolves implicit series styling.
* 默认绘图样式基底(与 {@link IPlot#setDefaultStyle(PlotStyle)} 对齐)。
*
* @param style structured defaults
* @return this instance for chaining
*/
I3dPlot setDefaultStyle(PlotStyle style);
/**
* Active palette key; must exist on {@link ColorPalette}.
* 调色板名称(须在 {@link ColorPalette} 中注册)。
*
* @param paletteName registered palette identifier
* @return this instance for chaining
*/
I3dPlot setPalette(String paletteName);
/**
* Toggle structured style parsing for subsequent geometry layers.
* 启用/关闭结构化样式系统。
*
* @param enabled {@code true} to honour {@link PlotStyle} pipelines
* @return this instance for chaining
*/
I3dPlot enableStyleSystem(boolean enabled);
/**
* Toggle bundled/custom theme overlays.
* 启用/关闭主题系统。
*
* @param enabled {@code true} before calling {@link #applyTheme(String)}
* @return this instance for chaining
*/
I3dPlot enableThemeSystem(boolean enabled);
/**
* Apply a previously registered theme name (or built-ins).
* 应用已注册主题名。
*
* @param themeName palette + chrome bundle key
* @return this instance for chaining
*/
I3dPlot applyTheme(String themeName);
/**
* Register extra ECharts theme assets for HTML export backends.
* 注册自定义 ECharts 主题。
*
* @param themeName lookup key used by {@link #applyTheme(String)}
* @param theme serializer-friendly theme blob
* @return this instance for chaining
*/
I3dPlot registerTheme(String themeName, EchartsThemeManager.CustomTheme theme);
/**
* Create a linear-gradient palette theme and register it for reuse.
* 创建渐变主题并注册。
*
* @param themeName lookup key
* @param startColor gradient start colour
* @param endColor gradient end colour
* @param backgroundColor viewport background colour
* @return this instance for chaining
*/