like-sci-figures 0.0.0-stage → 1.0.1

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.
Files changed (83) hide show
  1. package/LICENSE +56 -0
  2. package/README.md +196 -2
  3. package/cli.js +79 -0
  4. package/examples/area.json +9 -0
  5. package/examples/bar.json +15 -0
  6. package/examples/bland_altman.json +128 -0
  7. package/examples/bode.json +8 -0
  8. package/examples/box.json +8 -0
  9. package/examples/bubble.json +7 -0
  10. package/examples/contour.json +10 -0
  11. package/examples/corr_matrix.json +99 -0
  12. package/examples/dendrogram.json +5 -0
  13. package/examples/density.json +8 -0
  14. package/examples/dot_plot.json +8 -0
  15. package/examples/ecdf.json +377 -0
  16. package/examples/errorbar.json +7 -0
  17. package/examples/forest.json +12 -0
  18. package/examples/heatmap.json +10 -0
  19. package/examples/hexbin.json +6009 -0
  20. package/examples/histogram.json +6 -0
  21. package/examples/kaplan_meier.json +6 -0
  22. package/examples/line.json +11 -0
  23. package/examples/manhattan.json +7 -0
  24. package/examples/panels.json +28 -0
  25. package/examples/pca.json +12 -0
  26. package/examples/periodogram.json +7 -0
  27. package/examples/pie.json +4 -0
  28. package/examples/radar.json +7 -0
  29. package/examples/ridge.json +11 -0
  30. package/examples/roc.json +6 -0
  31. package/examples/sankey.json +9 -0
  32. package/examples/scatter3d.json +6 -0
  33. package/examples/slope.json +6 -0
  34. package/examples/stacked_bar.json +12 -0
  35. package/examples/surface.json +11 -0
  36. package/examples/taylor.json +9 -0
  37. package/examples/ternary.json +18 -0
  38. package/examples/venn.json +12 -0
  39. package/examples/violin.json +9 -0
  40. package/examples/volcano.json +7 -0
  41. package/examples/waterfall.json +5 -0
  42. package/examples/windrose.json +407 -0
  43. package/package.json +33 -4
  44. package/requirements.txt +9 -0
  45. package/scripts/add_chart.py +201 -0
  46. package/scripts/build_gallery.py +360 -0
  47. package/scripts/chart_plugin.py +153 -0
  48. package/scripts/data_loader.py +260 -0
  49. package/scripts/fig_3d.py +103 -0
  50. package/scripts/fig_area.py +57 -0
  51. package/scripts/fig_bar.py +117 -0
  52. package/scripts/fig_biomed.py +289 -0
  53. package/scripts/fig_box.py +60 -0
  54. package/scripts/fig_bubble.py +65 -0
  55. package/scripts/fig_core.py +195 -0
  56. package/scripts/fig_datasci.py +276 -0
  57. package/scripts/fig_distribution.py +59 -0
  58. package/scripts/fig_engineering.py +224 -0
  59. package/scripts/fig_environ.py +239 -0
  60. package/scripts/fig_errorbar.py +49 -0
  61. package/scripts/fig_forest.py +54 -0
  62. package/scripts/fig_heatmap.py +51 -0
  63. package/scripts/fig_line.py +39 -0
  64. package/scripts/fig_pca.py +101 -0
  65. package/scripts/fig_pie.py +52 -0
  66. package/scripts/fig_radar.py +32 -0
  67. package/scripts/fig_sankey.py +196 -0
  68. package/scripts/fig_scatter.py +44 -0
  69. package/scripts/fig_subplots.py +124 -0
  70. package/scripts/fig_taylor.py +80 -0
  71. package/scripts/fig_venn.py +80 -0
  72. package/scripts/fig_windrose.py +82 -0
  73. package/scripts/font_detector.py +85 -0
  74. package/scripts/gen_figure.py +583 -0
  75. package/scripts/generate_samples.py +322 -0
  76. package/scripts/palette_picker.py +244 -0
  77. package/scripts/palette_pref.py +179 -0
  78. package/scripts/palette_preview.py +334 -0
  79. package/scripts/palettes.py +461 -0
  80. package/scripts/registry.py +138 -0
  81. package/scripts/render_utils.py +233 -0
  82. package/scripts/showcase.py +179 -0
  83. package/scripts/style_manager.py +267 -0
@@ -0,0 +1,6 @@
1
+ {
2
+ "series": {
3
+ "PM2.5": [32, 45, 28, 51, 38, 42, 35, 47, 30, 55, 40, 33, 48, 37, 44, 31, 52, 39, 46, 34],
4
+ "PM10": [78, 102, 65, 118, 92, 88, 74, 110, 70, 125, 95, 82, 105, 90, 108, 76, 120, 96, 112, 84]
5
+ }
6
+ }
@@ -0,0 +1,6 @@
1
+ {
2
+ "time": [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10],
3
+ "event": [1, 1, 0, 1, 1, 0, 1, 1, 0, 1, 0, 1, 1, 1, 0, 1, 1, 0, 1, 0],
4
+ "group": [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1],
5
+ "group_labels": ["Control", "Treatment"]
6
+ }
@@ -0,0 +1,11 @@
1
+ {
2
+ "labels": ["Jan", "Feb", "Mar", "Apr", "May", "Jun"],
3
+ "series": {
4
+ "Revenue": [42, 48, 55, 51, 60, 66],
5
+ "Profit": [12, 15, 18, 16, 21, 24]
6
+ },
7
+ "errors": {
8
+ "Revenue": [3, 2, 4, 3, 2, 3],
9
+ "Profit": [1, 1.5, 2, 1.5, 1, 2]
10
+ }
11
+ }
@@ -0,0 +1,7 @@
1
+ {
2
+ "chr": ["1", "1", "1", "2", "2", "2", "3", "3", "3", "4", "4", "5", "5", "6", "6", "7", "7", "8", "8", "9"],
3
+ "pos": [1000, 5000, 10000, 2000, 8000, 15000, 3000, 7000, 12000, 1500, 9000, 4000, 11000, 2500, 8500, 5000, 13000, 1000, 6000, 9000],
4
+ "pvalue": [0.0001, 0.0005, 0.001, 0.0003, 0.002, 0.01, 0.00005, 0.001, 0.003, 0.0002, 0.005, 0.0008, 0.0015, 0.00001, 0.00003, 0.0001, 0.0006, 0.002, 0.008, 0.03],
5
+ "labels": ["rs001", "rs002", "rs003", "rs004", "rs005", "rs006", "rs007", "rs008", "rs009", "rs010", "rs011", "rs012", "rs013", "rs014", "rs015", "rs016", "rs017", "rs018", "rs019", "rs020"],
6
+ "threshold": 5e-8
7
+ }
@@ -0,0 +1,28 @@
1
+ [
2
+ {
3
+ "type": "bar",
4
+ "data": {"labels": ["A", "B"], "series": {"X": [1, 2], "Y": [3, 4]}},
5
+ "title": "Panel A",
6
+ "xlabel": "Group",
7
+ "ylabel": "Value"
8
+ },
9
+ {
10
+ "type": "scatter",
11
+ "data": {"x": [1, 2, 3, 4], "y": [4, 5, 3, 6]},
12
+ "title": "Panel B",
13
+ "xlabel": "X",
14
+ "ylabel": "Y"
15
+ },
16
+ {
17
+ "type": "box",
18
+ "data": {"labels": ["A", "B"], "series": {"A": [1, 2, 3, 4, 3], "B": [2, 3, 4, 5, 4]}},
19
+ "title": "Panel C"
20
+ },
21
+ {
22
+ "type": "line",
23
+ "data": {"labels": ["Jan", "Feb", "Mar", "Apr"], "series": {"S1": [1, 3, 2, 4]}},
24
+ "title": "Panel D",
25
+ "xlabel": "Month",
26
+ "ylabel": "Value"
27
+ }
28
+ ]
@@ -0,0 +1,12 @@
1
+ {
2
+ "variables": ["PM2.5", "PM10", "SO2", "NO2", "CO", "O3"],
3
+ "samples": [
4
+ [50, 80, 20, 40, 1.2, 90],
5
+ [55, 85, 22, 42, 1.3, 88],
6
+ [48, 78, 18, 38, 1.1, 95],
7
+ [60, 90, 25, 45, 1.4, 80],
8
+ [52, 82, 21, 41, 1.25, 92],
9
+ [45, 75, 17, 36, 1.05, 98]
10
+ ],
11
+ "groups": ["Urban", "Urban", "Urban", "Rural", "Rural", "Rural"]
12
+ }
@@ -0,0 +1,7 @@
1
+ {
2
+ "freq": [0.0, 0.05, 0.1, 0.15, 0.2, 0.25, 0.3, 0.35, 0.4, 0.45, 0.5, 0.55, 0.6, 0.65, 0.7, 0.75, 0.8, 0.85, 0.9, 0.95, 1.0],
3
+ "psd": [0.1, 0.2, 0.5, 1.2, 3.5, 8.0, 15.0, 22.0, 28.0, 30.0, 28.0, 22.0, 15.0, 8.0, 3.5, 1.2, 0.5, 0.2, 0.1, 0.08, 0.06],
4
+ "x_labels": "Frequency (Hz)",
5
+ "ylabel": "PSD",
6
+ "log_scale": false
7
+ }
@@ -0,0 +1,4 @@
1
+ {
2
+ "labels": ["燃煤", "机动车", "工业", "扬尘", "其他"],
3
+ "values": [35, 25, 20, 12, 8]
4
+ }
@@ -0,0 +1,7 @@
1
+ {
2
+ "labels": ["速度", "力量", "精度", "耐力", "敏捷", "柔韧"],
3
+ "series": {
4
+ "运动员A": [90, 75, 85, 80, 88, 70],
5
+ "运动员B": [70, 88, 78, 92, 72, 85]
6
+ }
7
+ }
@@ -0,0 +1,11 @@
1
+ {
2
+ "series": {
3
+ "Normal": [1.0, 1.5, 2.0, 2.5, 3.0, 3.5, 4.0, 4.5, 5.0],
4
+ "Treatment A": [1.2, 1.8, 2.3, 2.8, 3.3, 3.8, 4.3, 4.8, 5.3, 5.8],
5
+ "Treatment B": [0.8, 1.3, 1.8, 2.3, 2.8, 3.3, 3.8, 4.3, 4.8],
6
+ "Control": [1.1, 1.6, 2.1, 2.6, 3.1, 3.6, 4.1, 4.6, 5.1]
7
+ },
8
+ "labels": ["Normal", "Treatment A", "Treatment B", "Control"],
9
+ "bandwidth": 0.3,
10
+ "fill": true
11
+ }
@@ -0,0 +1,6 @@
1
+ {
2
+ "fpr": {"Classifier A": [0.0, 0.1, 0.2, 0.3, 0.4, 0.5, 0.6, 0.7, 0.8, 0.9, 1.0], "Classifier B": [0.0, 0.05, 0.1, 0.2, 0.3, 0.4, 0.5, 0.7, 0.9, 1.0], "Classifier C": [0.0, 0.1, 0.2, 0.3, 0.4, 0.6, 0.8, 1.0]},
3
+ "tpr": {"Classifier A": [0.0, 0.1, 0.25, 0.35, 0.5, 0.6, 0.7, 0.8, 0.9, 0.95, 1.0], "Classifier B": [0.0, 0.05, 0.15, 0.3, 0.45, 0.6, 0.75, 0.9, 0.98, 1.0], "Classifier C": [0.0, 0.15, 0.3, 0.4, 0.55, 0.7, 0.85, 1.0]},
4
+ "labels": ["Classifier A", "Classifier B", "Classifier C"],
5
+ "auc": {"Classifier A": 0.72, "Classifier B": 0.81, "Classifier C": 0.65}
6
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "nodes": ["Coal", "Vehicle", "Industry", "Dust", "Total"],
3
+ "links": [
4
+ {"source": "Coal", "target": "Total", "value": 40},
5
+ {"source": "Vehicle", "target": "Total", "value": 30},
6
+ {"source": "Industry", "target": "Total", "value": 20},
7
+ {"source": "Dust", "target": "Total", "value": 10}
8
+ ]
9
+ }
@@ -0,0 +1,6 @@
1
+ {
2
+ "x": [1.2, 2.3, 3.1, 4.5, 5.0, 2.0, 3.5, 4.0, 1.8, 2.8],
3
+ "y": [5.1, 6.2, 4.8, 7.3, 6.8, 3.2, 4.0, 5.6, 6.4, 4.5],
4
+ "z": [3.2, 4.1, 2.8, 5.5, 4.9, 3.6, 2.4, 4.3, 5.0, 3.0],
5
+ "groups": ["A", "A", "B", "B", "C", "A", "B", "B", "C", "A"]
6
+ }
@@ -0,0 +1,6 @@
1
+ {
2
+ "labels": ["Product A", "Product B", "Product C", "Product D", "Product E"],
3
+ "before": [100, 120, 80, 150, 60],
4
+ "after": [130, 110, 95, 140, 85],
5
+ "x_labels": ["2024", "2025"]
6
+ }
@@ -0,0 +1,12 @@
1
+ {
2
+ "labels": ["监测站1", "监测站2", "监测站3", "监测站4"],
3
+ "series": {
4
+ "燃煤": [20, 25, 30, 18],
5
+ "机动车": [15, 18, 22, 20],
6
+ "工业": [10, 12, 8, 14],
7
+ "扬尘": [8, 6, 10, 9]
8
+ },
9
+ "errors": {
10
+ "燃煤": [2, 3, 2, 2]
11
+ }
12
+ }
@@ -0,0 +1,11 @@
1
+ {
2
+ "x": [1, 2, 3, 4, 5],
3
+ "y": [1, 2, 3, 4, 5],
4
+ "matrix": [
5
+ [0, 1, 2, 3, 4],
6
+ [1, 2, 3, 4, 5],
7
+ [2, 3, 4, 5, 6],
8
+ [3, 4, 5, 6, 7],
9
+ [4, 5, 6, 7, 8]
10
+ ]
11
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "obs_std": 1.0,
3
+ "models": [
4
+ {"name": "M1", "std": 1.1, "corr": 0.85},
5
+ {"name": "M2", "std": 0.95, "corr": 0.92},
6
+ {"name": "M3", "std": 1.25, "corr": 0.78},
7
+ {"name": "M4", "std": 0.8, "corr": 0.6}
8
+ ]
9
+ }
@@ -0,0 +1,18 @@
1
+ {
2
+ "points": [
3
+ [0.5, 0.3, 0.2],
4
+ [0.2, 0.5, 0.3],
5
+ [0.3, 0.2, 0.5],
6
+ [0.4, 0.4, 0.2],
7
+ [0.1, 0.6, 0.3],
8
+ [0.6, 0.2, 0.2],
9
+ [0.25, 0.25, 0.5],
10
+ [0.15, 0.35, 0.5],
11
+ [0.45, 0.35, 0.2],
12
+ [0.35, 0.45, 0.2]
13
+ ],
14
+ "labels": ["Sample 1", "Sample 2", "Sample 3", "Sample 4", "Sample 5", "Sample 6", "Sample 7", "Sample 8", "Sample 9", "Sample 10"],
15
+ "A_label": "Silica",
16
+ "B_label": "Alumina",
17
+ "C_label": "Iron"
18
+ }
@@ -0,0 +1,12 @@
1
+ {
2
+ "regions": {
3
+ "A": 10,
4
+ "B": 8,
5
+ "C": 6,
6
+ "AB": 4,
7
+ "AC": 3,
8
+ "BC": 2,
9
+ "ABC": 2
10
+ },
11
+ "labels": ["Set A", "Set B", "Set C"]
12
+ }
@@ -0,0 +1,9 @@
1
+ {
2
+ "labels": ["对照", "低剂量", "中剂量", "高剂量"],
3
+ "series": {
4
+ "对照": [5, 6, 4, 7, 5, 6, 5, 6, 4, 7],
5
+ "低剂量": [7, 8, 9, 7, 8, 10, 7, 9, 8, 6],
6
+ "中剂量": [10, 11, 12, 10, 13, 11, 12, 10, 11, 9],
7
+ "高剂量": [14, 15, 16, 15, 17, 14, 16, 15, 13, 16]
8
+ }
9
+ }
@@ -0,0 +1,7 @@
1
+ {
2
+ "log2fc": [-3.2, -2.8, -2.1, -1.5, -1.0, -0.5, 0.1, 0.5, 1.0, 1.5, 2.0, 2.5, 3.0, 3.5, 4.0],
3
+ "pvalue": [0.0001, 0.0005, 0.001, 0.01, 0.05, 0.1, 0.3, 0.5, 0.2, 0.02, 0.003, 0.001, 0.0003, 0.00005, 0.00001],
4
+ "labels": ["Gene001", "Gene002", "Gene003", "Gene004", "Gene005", "Gene006", "Gene007", "Gene008", "Gene009", "Gene010", "Gene011", "Gene012", "Gene013", "Gene014", "Gene015"],
5
+ "threshold_fc": 1.0,
6
+ "threshold_p": 0.05
7
+ }
@@ -0,0 +1,5 @@
1
+ {
2
+ "labels": ["Revenue", "COGS", "Gross Margin", "OpEx", "EBIT", "Interest", "Taxes", "Net Income"],
3
+ "values": [500, -300, 200, -150, 50, -20, -15, 15],
4
+ "show_values": true
5
+ }
@@ -0,0 +1,407 @@
1
+ {
2
+ "direction": [
3
+ 235.7,
4
+ 188.6,
5
+ 251.3,
6
+ 257.9,
7
+ 156.7,
8
+ 179.4,
9
+ 229.5,
10
+ 213.9,
11
+ 224.4,
12
+ 195.1,
13
+ 255.8,
14
+ 252.2,
15
+ 227.3,
16
+ 264.5,
17
+ 241.4,
18
+ 194.9,
19
+ 237.9,
20
+ 191.4,
21
+ 255.7,
22
+ 223.3,
23
+ 218.5,
24
+ 201.2,
25
+ 267.8,
26
+ 219.6,
27
+ 210.0,
28
+ 212.7,
29
+ 243.6,
30
+ 237.8,
31
+ 239.4,
32
+ 240.1,
33
+ 300.0,
34
+ 210.8,
35
+ 207.1,
36
+ 196.5,
37
+ 246.6,
38
+ 264.5,
39
+ 221.0,
40
+ 195.6,
41
+ 196.1,
42
+ 247.8,
43
+ 251.0,
44
+ 244.0,
45
+ 201.7,
46
+ 233.1,
47
+ 229.1,
48
+ 232.7,
49
+ 255.5,
50
+ 232.8,
51
+ 248.8,
52
+ 227.4,
53
+ 235.1,
54
+ 247.1,
55
+ 174.0,
56
+ 213.8,
57
+ 208.5,
58
+ 202.6,
59
+ 215.4,
60
+ 277.3,
61
+ 194.7,
62
+ 258.9,
63
+ 166.1,
64
+ 213.3,
65
+ 230.7,
66
+ 245.5,
67
+ 249.9,
68
+ 252.8,
69
+ 212.8,
70
+ 208.8,
71
+ 255.0,
72
+ 218.3,
73
+ 180.4,
74
+ 185.3,
75
+ 192.8,
76
+ 242.4,
77
+ 230.0,
78
+ 249.2,
79
+ 210.0,
80
+ 230.5,
81
+ 246.9,
82
+ 214.2,
83
+ 241.0,
84
+ 201.8,
85
+ 212.3,
86
+ 211.6,
87
+ 183.1,
88
+ 242.0,
89
+ 208.6,
90
+ 225.4,
91
+ 241.8,
92
+ 240.6,
93
+ 290.0,
94
+ 267.0,
95
+ 257.3,
96
+ 267.6,
97
+ 219.4,
98
+ 226.6,
99
+ 230.3,
100
+ 240.1,
101
+ 282.0,
102
+ 242.8,
103
+ 258.7,
104
+ 309.0,
105
+ 259.3,
106
+ 292.1,
107
+ 242.0,
108
+ 263.8,
109
+ 241.5,
110
+ 259.8,
111
+ 295.2,
112
+ 218.2,
113
+ 283.0,
114
+ 277.1,
115
+ 252.2,
116
+ 226.6,
117
+ 272.2,
118
+ 254.1,
119
+ 277.0,
120
+ 270.7,
121
+ 318.1,
122
+ 262.8,
123
+ 239.3,
124
+ 275.4,
125
+ 276.6,
126
+ 310.8,
127
+ 295.1,
128
+ 280.7,
129
+ 313.9,
130
+ 234.3,
131
+ 250.8,
132
+ 242.2,
133
+ 258.3,
134
+ 228.7,
135
+ 289.1,
136
+ 263.3,
137
+ 225.9,
138
+ 239.5,
139
+ 279.4,
140
+ 295.1,
141
+ 329.9,
142
+ 357.4,
143
+ 282.4,
144
+ 240.3,
145
+ 206.0,
146
+ 278.0,
147
+ 245.6,
148
+ 257.5,
149
+ 251.6,
150
+ 265.8,
151
+ 302.0,
152
+ 274.7,
153
+ 353.7,
154
+ 318.6,
155
+ 293.0,
156
+ 340.5,
157
+ 357.8,
158
+ 70.7,
159
+ 5.2,
160
+ 39.3,
161
+ 340.0,
162
+ 312.6,
163
+ 321.4,
164
+ 331.0,
165
+ 85.1,
166
+ 327.1,
167
+ 33.5,
168
+ 323.9,
169
+ 37.3,
170
+ 15.4,
171
+ 353.7,
172
+ 358.4,
173
+ 333.8,
174
+ 17.8,
175
+ 341.8,
176
+ 311.0,
177
+ 308.9,
178
+ 141.0,
179
+ 190.3,
180
+ 140.6,
181
+ 130.8,
182
+ 145.0,
183
+ 180.7,
184
+ 142.7,
185
+ 120.6,
186
+ 173.7,
187
+ 150.0,
188
+ 188.8,
189
+ 141.4,
190
+ 92.1,
191
+ 87.1,
192
+ 192.8,
193
+ 195.3,
194
+ 128.7,
195
+ 121.6,
196
+ 186.2,
197
+ 96.3,
198
+ 103.7,
199
+ 157.5,
200
+ 121.2,
201
+ 134.8,
202
+ 129.3
203
+ ],
204
+ "speed": [
205
+ 4.89,
206
+ 4.23,
207
+ 0.79,
208
+ 2.27,
209
+ 2.21,
210
+ 6.69,
211
+ 4.08,
212
+ 5.32,
213
+ 3.25,
214
+ 5.47,
215
+ 3.63,
216
+ 3.48,
217
+ 4.45,
218
+ 4.23,
219
+ 13.88,
220
+ 2.25,
221
+ 1.38,
222
+ 4.82,
223
+ 2.47,
224
+ 0.71,
225
+ 1.92,
226
+ 12.23,
227
+ 2.21,
228
+ 1.05,
229
+ 11.81,
230
+ 1.87,
231
+ 16.17,
232
+ 3.16,
233
+ 9.9,
234
+ 3.43,
235
+ 5.16,
236
+ 3.68,
237
+ 3.44,
238
+ 4.6,
239
+ 5.27,
240
+ 4.39,
241
+ 4.13,
242
+ 2.48,
243
+ 3.77,
244
+ 9.22,
245
+ 2.41,
246
+ 4.67,
247
+ 7.68,
248
+ 5.3,
249
+ 6.73,
250
+ 1.85,
251
+ 4.68,
252
+ 3.33,
253
+ 3.41,
254
+ 8.8,
255
+ 3.45,
256
+ 4.77,
257
+ 1.06,
258
+ 9.9,
259
+ 6.51,
260
+ 3.85,
261
+ 3.24,
262
+ 5.6,
263
+ 7.63,
264
+ 9.97,
265
+ 6.39,
266
+ 4.17,
267
+ 6.95,
268
+ 6.24,
269
+ 4.17,
270
+ 6.14,
271
+ 6.07,
272
+ 3.84,
273
+ 2.86,
274
+ 5.77,
275
+ 2.0,
276
+ 1.7,
277
+ 4.81,
278
+ 5.68,
279
+ 4.79,
280
+ 5.1,
281
+ 5.63,
282
+ 8.81,
283
+ 6.45,
284
+ 6.34,
285
+ 4.6,
286
+ 4.7,
287
+ 3.65,
288
+ 5.01,
289
+ 1.93,
290
+ 8.84,
291
+ 2.31,
292
+ 6.45,
293
+ 8.22,
294
+ 6.44,
295
+ 12.84,
296
+ 0.83,
297
+ 2.98,
298
+ 8.14,
299
+ 1.65,
300
+ 2.35,
301
+ 5.43,
302
+ 4.13,
303
+ 5.23,
304
+ 4.35,
305
+ 4.59,
306
+ 2.51,
307
+ 4.5,
308
+ 3.11,
309
+ 3.38,
310
+ 6.4,
311
+ 1.59,
312
+ 0.57,
313
+ 6.13,
314
+ 4.5,
315
+ 8.21,
316
+ 2.4,
317
+ 3.76,
318
+ 4.23,
319
+ 2.71,
320
+ 2.2,
321
+ 6.31,
322
+ 1.48,
323
+ 1.95,
324
+ 3.69,
325
+ 6.73,
326
+ 2.83,
327
+ 2.6,
328
+ 3.55,
329
+ 4.95,
330
+ 3.22,
331
+ 7.22,
332
+ 7.4,
333
+ 3.69,
334
+ 10.93,
335
+ 4.17,
336
+ 7.26,
337
+ 4.87,
338
+ 4.82,
339
+ 1.23,
340
+ 1.84,
341
+ 3.32,
342
+ 7.37,
343
+ 4.91,
344
+ 3.34,
345
+ 5.72,
346
+ 7.21,
347
+ 4.02,
348
+ 4.57,
349
+ 4.23,
350
+ 3.86,
351
+ 2.38,
352
+ 2.26,
353
+ 5.7,
354
+ 7.29,
355
+ 3.34,
356
+ 3.29,
357
+ 0.98,
358
+ 0.84,
359
+ 8.36,
360
+ 2.48,
361
+ 13.34,
362
+ 2.78,
363
+ 1.27,
364
+ 4.25,
365
+ 6.27,
366
+ 5.87,
367
+ 6.63,
368
+ 2.06,
369
+ 8.25,
370
+ 8.52,
371
+ 8.73,
372
+ 4.67,
373
+ 3.18,
374
+ 3.0,
375
+ 1.26,
376
+ 2.82,
377
+ 0.53,
378
+ 1.13,
379
+ 4.64,
380
+ 3.41,
381
+ 4.52,
382
+ 5.99,
383
+ 5.02,
384
+ 4.77,
385
+ 3.79,
386
+ 2.42,
387
+ 1.66,
388
+ 2.87,
389
+ 3.83,
390
+ 4.13,
391
+ 6.63,
392
+ 3.62,
393
+ 5.5,
394
+ 1.4,
395
+ 4.68,
396
+ 4.48,
397
+ 8.25,
398
+ 3.41,
399
+ 3.32,
400
+ 6.02,
401
+ 1.75,
402
+ 4.6,
403
+ 1.69,
404
+ 10.33
405
+ ],
406
+ "sectors": 16
407
+ }
package/package.json CHANGED
@@ -1,6 +1,35 @@
1
1
  {
2
2
  "name": "like-sci-figures",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "1.0.1",
4
+ "description": "Publication-quality academic figure generator from JSON/CSV. scienceplots + matplotlib, 40 chart types, 11 journal styles, 34 curated palettes, CJK auto-detect, 300DPI PNG/SVG/PDF. Fully local, data never leaves your machine.",
5
+ "bin": {
6
+ "like-sci-figures": "cli.js"
7
+ },
8
+ "files": [
9
+ "cli.js",
10
+ "scripts/",
11
+ "examples/",
12
+ "requirements.txt",
13
+ "LICENSE"
14
+ ],
15
+ "engines": {
16
+ "node": ">=14"
17
+ },
18
+ "keywords": [
19
+ "scientific-figures",
20
+ "matplotlib",
21
+ "scienceplots",
22
+ "academic-plotting",
23
+ "publication-figure",
24
+ "sci-paper",
25
+ "data-visualization",
26
+ "chart",
27
+ "plotting",
28
+ "research",
29
+ "journal-figure",
30
+ "figure-generator"
31
+ ],
32
+ "license": "SEE LICENSE IN LICENSE",
33
+ "author": "LIKE",
34
+ "preferGlobal": true
35
+ }
@@ -0,0 +1,9 @@
1
+ # like-sci-figures 运行必需依赖
2
+ matplotlib>=3.5
3
+ numpy>=1.21
4
+ scipy>=1.7
5
+ pillow>=9.0
6
+
7
+ # 可选(启用 LaTeX 级期刊风格):pip install scienceplots
8
+ # 若无法安装 scienceplots,内置等效样式可自动后备,不影响基础出图。
9
+ # scienceplots