-
-
Notifications
You must be signed in to change notification settings - Fork 118
Expand file tree
/
Copy pathchart.html
More file actions
290 lines (290 loc) · 16.8 KB
/
chart.html
File metadata and controls
290 lines (290 loc) · 16.8 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
<body>
<div class="vp-option-page">
<!-- Import option -->
<div class="vp-accordian-container">
<div class="vp-accordian vp-close">
<span class="vp-indicator"></span>
<span class="vp-accordian-caption">Import Options</span>
</div>
<div class="vp-accordian-box">
<div class="vp-import-box">
<div>
<label for="vp_plFigureWidth" class="">Figure size</label>
<input type="number" id="vp_plFigureWidth" class="vp-input" placeholder="width" value="12">
<input type="number" id="vp_plFigureHeight" class="vp-input" placeholder="height" value="8">
</div>
<div>
<label for="vp_plStyle" class="">Style sheet</label>
<input type="text" class="vp-input" id="vp_plStyle" placeholder="style name" value="">
</div>
<div>
<label for="vp_plFontName" class="">System font</label>
<input type="text" class="vp-input" id="vp_plFontName" placeholder="font name" value="">
</div>
<div>
<label for="vp_plFontSize" class="">Font size</label>
<input type="number" id="vp_plFontSize" class="vp-input" placeholder="size" value="10">
<input type="button" id="vp_plImportRun" class="vp-button activated vp-pl-import-run" value="Run">
</div>
</div>
</div>
</div>
<!-- -->
<div class="vp-accordian-container">
<div class="vp-accordian-box">
<input type="hidden" class="vp-input input-single vp-state" id="i0" value="plt" />
<div class="vp-thead vp-orange-text">
Chart Type</div><select id="kind" class="vp-select option-select vp-state"></select>
<div id="vp_plotKind" class="vp-plot-kind">
<div class="vp-plot-item" data-kind="plot" data-show-text="Line">
<div class="vp-plot-thumb plot"></div>
<div class="vp-plot-name">Line</div>
</div>
<div class="vp-plot-item" data-kind="bar" data-show-text="Bar 1">
<div class="vp-plot-thumb bar"></div>
<div class="vp-plot-name">Bar 1</div>
</div>
<div class="vp-plot-item" data-kind="barh" data-show-text="Bar 2">
<div class="vp-plot-thumb barh"></div>
<div class="vp-plot-name">Bar 2</div>
</div>
<div class="vp-plot-item" data-kind="hist" data-show-text="Histogram">
<div class="vp-plot-thumb hist"></div>
<div class="vp-plot-name">Histogram</div>
</div>
<div class="vp-plot-item" data-kind="boxplot" data-show-text="Box">
<div class="vp-plot-thumb boxplot">
</div>
<div class="vp-plot-name">Box</div>
</div>
<div class="vp-plot-item" data-kind="stackplot" data-show-text="Stack">
<div class="vp-plot-thumb stackplot"></div>
<div class="vp-plot-name">Stack
</div>
</div>
<div class="vp-plot-item" data-kind="pie" data-show-text="Pie">
<div class="vp-plot-thumb pie"></div>
<div class="vp-plot-name">Pie</div>
</div>
<div class="vp-plot-item" data-kind="scatter" data-show-text="Scatter">
<div class="vp-plot-thumb scatter">
</div>
<div class="vp-plot-name">Scatter</div>
</div>
<div class="vp-plot-item" data-kind="hexbin" data-show-text="Hexbin">
<div class="vp-plot-thumb hexbin"></div>
<div class="vp-plot-name">Hexbin
</div>
</div>
<div class="vp-plot-item" data-kind="contour" data-show-text="Contour">
<div class="vp-plot-thumb contour"></div>
<div class="vp-plot-name">Contour</div>
</div>
<div class="vp-plot-item" data-kind="imshow" data-show-text="Image">
<div class="vp-plot-thumb imshow">
</div>
<div class="vp-plot-name">Image</div>
</div>
<div class="vp-plot-item" data-kind="errorbar" data-show-text="Error Bar">
<div class="vp-plot-thumb errorbar"></div>
<div class="vp-plot-name">Error
Bar</div>
</div>
</div>
<table class='vp-option-vertical-table-layout vp-plot-setting-table'>
<colgroup>
<col width='15%' />
<col width='*' />
</colgroup>
<tbody>
<tr>
<th class="vp-orange-text">X Value</th>
<td>
<input type="text" class="vp-input vp-state" id="x" />
</td>
</tr>
<tr>
<th class="vp-orange-text">Y Value</th>
<td>
<input type="text" class="vp-input vp-state" id="y" required="true"/>
</td>
</tr>
<tr>
<th class="vp-orange-text">Z Value</th>
<td>
<input type="text" class="vp-input vp-state" id="z" placeholder="[[2-dimension]]" />
</td>
</tr>
<tr>
<th class="vp-orange-text">Bins</th>
<td><input type="number" class="vp-input vp-state" id="bins" value="10" step="5" /></td>
</tr>
<tr>
<th>X, Y Extent</th>
<td><input type="text" class="vp-input vp-state" id="extent" placeholder="[xmin, xmax, ymin, ymax]" /></td>
</tr>
<tr>
<th>Origin</th>
<td><input type="text" class="vp-input vp-state" id="origin" value="lower" /></td>
</tr>
<tr>
<th>Color Map</th>
<td><select id="cmap" class="vp-select vp-state"></select>
<div class="vp-plot-cmap-wrapper">
<div id="vp_plotCmap" , class="vp-plot-cmap"><span id="vp_selectedCmap" class="vp-multilang"
data-caption-id="nothing_selected">none</span></div>
<div id="vp_plotCmapSelector" class="vp-plot-cmap-selector"></div>
</div>
</td>
</tr>
<tr>
<th>Chart Label</th>
<td><input type="text" class="vp-input vp-state" id="label" /></td>
</tr>
<tr>
<th>Color</th>
<td><input type="checkbox" class="vp-input vp-state" id="useColor" /><label for="useColor">use
color</label><br /><input type="color" class="vp-input vp-state" id="color" /></td>
</tr>
<tr>
<th>Marker</th>
<td><select id="markerSelector" class="vp-select option-select vp-state">
<option value="">Select option...</option>
<option value="." data-img="m00.png" data-caption-id="point">.</option>
<option value="," data-img="m01.png" data-caption-id="pixel">,</option>
<option value="o" data-img="m02.png" data-caption-id="circle">o</option>
<option value="v" data-img="m03.png" data-caption-id="triangle_down">▼</option>
<option value="^" data-img="m04.png" data-caption-id="triangle_up">▲</option>
<option value="<" data-img="m05.png" data-caption-id="triangle_left">◀</option>
<option value=">" data-img="m06.png" data-caption-id="triangle_right">▶</option>
<option value="1" data-img="m07.png" data-caption-id="tri_down">┬</option>
<option value="2" data-img="m08.png" data-caption-id="tri_up">┵</option>
<option value="3" data-img="m09.png" data-caption-id="tri_left">┤</option>
<option value="4" data-img="m10.png" data-caption-id="tri_right">├</option>
<option value="8" data-img="m11.png" data-caption-id="octagon">octagon</option>
<option value="s" data-img="m12.png" data-caption-id="square">square</option>
<option value="p" data-img="m13.png" data-caption-id="pentagon">pentagon</option>
<option value="P" data-img="m23.png" data-caption-id="plus (filled)">filled plus</option>
<option value="*" data-img="m14.png" data-caption-id="star">star</option>
<option value="h" data-img="m15.png" data-caption-id="hexagon1">hexagon1</option>
<option value="H" data-img="m16.png" data-caption-id="hexagon2">hexagon2</option>
<option value="+" data-img="m17.png" data-caption-id="plus">plus</option>
<option value="x" data-img="m18.png" data-caption-id="x">x</option>
<option value="X" data-img="m24.png" data-caption-id="x (filled)">filled x</option>
<option value="D" data-img="m19.png" data-caption-id="diamond">diamond</option>
<option value="d" data-img="m20.png" data-caption-id="thin_diamond">thin diamond</option>
</select><br />
<input type="text" id="marker" class="vp-input vp-state" style="display:none;"/></td>
</tr>
<tr>
<th>Line Style</th>
<td><select id="linestyle" class="vp-select option-select vp-state">
<option value="">Select option...</option>
<option value="-">solid</option>
<option value="--">dashed</option>
<option value=":">dotted</option>
<option value="-.">
dash-dot</option>
</select></td>
</tr>
<tr>
<th>User Option</th>
<td><input id="vp_userOption" type="text" class="vp-input vp-state" placeholder="key=value, key=value ..." />
</td>
</tr>
</tbody>
</table>
</div>
</div>
<!-- Additional Options -->
<div class="vp-accordian-container">
<div class="vp-accordian vp-open">
<span class="vp-indicator"></span>
<span class="vp-accordian-caption">Additional Options</span>
</div>
<div class="vp-accordian-box">
<table class="vp-option-vertical-table-layout">
<colgroup>
<col width='15%' />
<col width='*' />
</colgroup>
<tbody>
<tr>
<th>Title</th>
<td><input type="text" class="vp-input vp-state" id="title" /></td>
</tr>
<tr>
<th>X Label</th>
<td><input type="text" class="vp-input vp-state" id="xlabel" /></td>
</tr>
<tr>
<th>Y Label</th>
<td><input type="text" class="vp-input vp-state" id="ylabel" /></td>
</tr>
<tr>
<th>X Limit</th>
<td>
<input type="number" class="vp-input vp-state" id="xlimit_min" placeholder="Minimum limit" />
<input type="number" class="vp-input vp-state" id="xlimit_max" placeholder="Maximum limit" />
<input type="text" class="vp-hidden vp-state" id="xlim"/>
</td>
</tr>
<tr>
<th>Y Limit</th>
<td>
<input type="number" class="vp-input vp-state" id="ylimit_min" placeholder="Minimum limit" />
<input type="number" class="vp-input vp-state" id="ylimit_max" placeholder="Maximum limit" />
<input type="text" class="vp-hidden vp-state" id="ylim"/>
</td>
</tr>
<tr>
<th></th>
<td>
<hr style="margin:0" />
</td>
</tr>
<tr>
<th>Legend Title</th>
<td><input type="text" class="vp-input vp-state" id="legendTitle" /></td>
</tr>
<tr>
<th>Legend Labels</th>
<td><input type="text" class="vp-input vp-state" id="legendLabel" /></td>
</tr>
<tr>
<th>Legend Position</th>
<td><select class="vp-select vp-state" id="legendLoc">
<option value="">Select option...</option>
<option value="best">best</option>
<option value="upper right">upper right</option>
<option value="upper left">upper left</option>
<option value="lower left">lower left</option>
<option value="lower right">lower right
</option>
<option value="center left">center left</option>
<option value="center right">
center right</option>
<option value="lower center">lower center</option>
<option value="upper center">upper center</option>
<option value="center">center</option>
<option value="center">center</option>
</select></td>
</tr>
<tr>
<th></th>
<td>
<hr style="margin:0" />
</td>
</tr>
<tr>
<th>Save Figure</th>
<td><input type="text" class="vp-input vp-state" id="savefigpath" placeholder="file.png" />
<div id="vp_openFileNavigationBtn" class="vp-file-browser-button"></div>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</body>