-
-
Notifications
You must be signed in to change notification settings - Fork 118
Expand file tree
/
Copy pathseaborn.html
More file actions
313 lines (305 loc) · 21.5 KB
/
seaborn.html
File metadata and controls
313 lines (305 loc) · 21.5 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
<body>
<!-- Creating Subplots : Hide for next version -->
<!-- <div>
<div>
<label class="vp-bold">
Creating Subplots
<input type="checkbox" class="vp-state" id="createSubplots"/>
<span style="height: 15px;"></span>
</label>
<span id="chartSetting" class="vp-chart-setting vp-no-selection">
<i class="fa fa-gear"></i> Setting
</span>
</div>
<div id="subplotBox" class="vp-grid-border-box vp-grid-col-p50" style="display: none;">
<div class="vp-grid-col-p50">
<div>
<label class="vp-bold" for="figWidth">Figure Size</label><div></div>
<input type="number" class="vp-input sm vp-state" id="figWidth" placeholder="Width"/>
<input type="number" class="vp-input sm vp-state" id="figHeight" placeholder="Height"/>
</div>
<div>
<label class="vp-bold vp-orange-text" for="figRow">Number of subplots</label><div></div>
<input type="number" class="vp-input sm vp-state" id="figRow" placeholder="Row"/>
<input type="number" class="vp-input sm vp-state" id="figColumn" placeholder="Column"/>
</div>
</div>
<div>
<div>
<label class="vp-bold">Sharing axes?</label>
</div>
<div>
<label><input type="checkbox" class="vp-state" id="shareX" checked/><span>Share X-axis</span></label>
<label><input type="checkbox" class="vp-state" id="shareY" checked/><span>Share Y-axis</span></label>
<button class="vp-button activated vp-create-subplot-btn" id="createSubplotsBtn">Create</button>
</div>
</div>
</div>
</div> -->
<!-- <div class="vp-chart-body" style="margin-top:10px;"> -->
<div class="vp-chart-body" >
<div class="vp-chart-left-box">
<div class="vp-tab-bar figure" data-level="figure">
<div class="vp-tab-item vp-focus" data-type="1">Plot</div>
<!-- Hide for next version -->
<!-- <div class="vp-tab-item" data-type="2">Plot 2</div>
<div class="vp-tab-item" data-type="3">Plot 3</div> -->
<!-- Temporary position : Change its position after enabling Subplots -->
<span id="chartSetting" class="vp-chart-setting vp-no-selection">
Setting
</span>
</div>
<div class="vp-tab-page-box figure vp-grid-border-box vp-scrollbar">
<div class="vp-tab-page" data-type="1">
<div class="vp-chart-plot-box">
<!-- Chart & Data Selection & Tab option box -->
<div class="vp-tab-bar plot" data-level="plot">
<div class="vp-tab-item vp-focus" data-type="data">Data</div>
<div class="vp-tab-item" data-type="axes">Axes</div>
<div class="vp-tab-item" data-type="info">Info</div>
<div class="vp-tab-item" data-type="style">Style</div>
<div class="vp-tab-item" data-type="code">Code</div>
</div>
<div class="vp-tab-page-box plot vp-grid-border-box vp-scrollbar">
<div class="vp-tab-page vp-grid-box" data-type="data">
<div class="vp-italic">
<span class="vp-orange-text">NOTE: </span>Options selected from this tab only apply to subplot 1.
</div>
<label for="chartType" class="vp-bold vp-orange-text">Chart Type</label>
<select id="chartType" class="vp-select vp-state wp100">
</select>
<label class="vp-bold">Data</label>
<div class="vp-grid-col-p50">
<input type="text" id="data" class="vp-input vp-state"/>
<label><input type="checkbox" id="setXY" class="vp-state"><span>Set X and Y individually</span></label>
</div>
<div class="vp-grid-col-p50">
<div class="vp-grid-box">
<label for="x" class="vp-bold">X-axis Value</label>
<select id="x" class="vp-select vp-state">
</select>
</div>
<div class="vp-grid-box">
<label for="y" class="vp-bold">Y-axis Value</label>
<select id="y" class="vp-select vp-state">
</select>
</div>
</div>
<div class="vp-grid-col-p50">
<div class="vp-grid-box">
<label for="hue" class="vp-bold">Hue</label>
<select id="hue" class="vp-select vp-state">
</select>
</div>
<div class="vp-grid-box sb-option">
<label for="bins" class="vp-bold">Bins</label>
<input type="number" class="vp-input vp-state" id="bins" placeholder="Type bins" step="5" min="0" />
</div>
<div class="vp-grid-box sb-option">
<label for="orient" class="vp-bold">Orient</label>
<select id="orient" class="vp-select vp-state">
<option value="">Select option...</option>
<option value="'v'">Vertical</option>
<option value="'h'">Horizontal</option>
</select>
</div>
<div class="vp-grid-box sb-option">
<label for="kde" class="vp-bold">Kde</label>
<select id="kde" class="vp-select vp-state">
<option value="">Select option...</option>
<option value="True">True</option>
<option value="False">False</option>
</select>
</div>
<div class="vp-grid-box sb-option">
<label for="stat" class="vp-bold">Stat</label>
<select id="stat" class="vp-state">
<!-- Auto-create -->
</select>
</div>
<div class="vp-grid-box sb-option">
<label for="annot" class="vp-bold">Annot</label>
<select id="annot" class="vp-state">
<option value="">Select option...</option>
<option value="True">True</option>
<option value="False">False</option>
</select>
</div>
<div class="vp-grid-box sb-option" style="grid-column-start: 1;grid-column-end: 3;">
<hr style="margin:5px;"/>
<label class="vp-tab-group-title">Sort</label>
<div class="vp-grid-col-p50">
<div class="vp-grid-col-95">
<label for="sortType">Order</label>
<select id="sortType" class="vp-state vp-select m">
<option value="">No sorting</option>
<option value="descending">Sort in descending order</option>
<option value="ascending">Sort in ascending order</option>
</select>
</div>
<div class="vp-grid-col-95">
<label for="sortBy">Sort by</label>
<select id="sortBy" class="vp-state vp-select m">
<option value="y">y axis</option>
<option value="x">x axis</option>
</select>
</div>
</div>
<div class="vp-grid-col-95 sb-option">
<label for="sortHue">Hue condition</label>
<div>
<input type="text" id="sortHue" class="vp-input vp-state" placeholder="Type hue condition"/>
<label><input type="checkbox" id="sortHueText" class="vp-state" checked/><span>Text</span></label>
</div>
</div>
<hr style="margin:5px;"/>
</div>
</div>
<label for="userOption" class="vp-bold">User Option</label>
<input type="text" id="userOption" class="vp-input vp-state wp100" placeholder="key=value, ..."/>
</div>
<div class="vp-tab-page vp-grid-box" data-type="axes" style="display: none;">
<!-- SETTING : axis limit / tick interval / rotate tick labels ... -->
<div class="vp-grid-col-95">
<label for="x_limit_from" class="vp-bold">X Limit</label>
<div class="vp-grid-col-p50">
<input type="text" id="x_limit_from" class="vp-input m vp-state" placeholder="From" />
<input type="text" id="x_limit_to" class="vp-input m vp-state" placeholder="To" />
</div>
</div>
<div class="vp-grid-col-95">
<label for="y_limit_from" class="vp-bold">Y Limit</label>
<div class="vp-grid-col-p50">
<input type="text" id="y_limit_from" class="vp-input m vp-state" placeholder="From" />
<input type="text" id="y_limit_to" class="vp-input m vp-state" placeholder="To" />
</div>
</div>
<hr style="margin:5px;"/>
<label for="xticks" class="vp-tab-group-title">X ticks</label>
<div class="vp-grid-col-95">
<label>Ticks</label>
<div class="vp-grid-col-p50">
<input type="text" id="xticks" class="vp-input vp-state" placeholder="X ticks location: [0,1,2]" />
<input type="text" id="xticks_label" class="vp-input vp-state"
placeholder="X ticks label: ['a','b','c']"
title="Enter ticks location to use label option" readonly/>
</div>
</div>
<div class="vp-grid-col-95">
<label for="xticks_rotate">Rotation</label>
<input type="number" id="xticks_rotate" class="vp-input vp-state" placeholder="45" step="5" />
</div>
<div>
<label><input type="checkbox" id="removeXticks" class="vp-state"/><span>Remove X ticks</span></label>
</div>
<label for="yticks" class="vp-tab-group-title">Y ticks</label>
<div class="vp-grid-col-95">
<label>Ticks</label>
<div class="vp-grid-col-p50">
<input type="text" id="yticks" class="vp-input vp-state" placeholder="Y ticks location: [0,1,2]" />
<input type="text" id="yticks_label" class="vp-input vp-state"
placeholder="Y ticks label: ['a','b','c']"
title="Enter ticks location to use label option" readonly/>
</div>
</div>
<div class="vp-grid-col-95">
<label for="yticks_rotate">Rotation</label>
<input type="number" id="yticks_rotate" class="vp-input vp-state" placeholder="45" step="5" />
</div>
<div>
<label><input type="checkbox" id="removeYticks" class="vp-state"/><span>Remove Y ticks</span></label>
</div>
</div>
<div class="vp-tab-page vp-grid-box" data-type="info" style="display: none;">
<label for="title" class="vp-bold">Title</label>
<input type="text" id="title" class="vp-input vp-state wp100" placeholder="Title for the chart" />
<div class="vp-grid-col-p50">
<div class="vp-grid-box">
<label for="x_label" class="vp-bold">X Label</label>
<input type="text" id="x_label" class="vp-input vp-state" placeholder="Type X Label" />
</div>
<div class="vp-grid-box">
<label for="y_label" class="vp-bold">Y Label</label>
<input type="text" id="y_label" class="vp-input vp-state" placeholder="Type Y Label" />
</div>
</div>
<div class="vp-grid-box sb-option">
<hr style="margin:5px;"/>
<label class="vp-tab-group-title">Show values</label>
<div>
<label class="vp-orange-text vp-italic">NOTE:</label> <label class="vp-gray-text vp-italic">This function needs Seaborn package upper than v0.12</label>
</div>
<label><input type="checkbox" id="showValues" class="vp-state"/><span>Show values on the top of bar</span></label>
<div class="vp-grid-col-95">
<label for="showValuesPrecision">Decimal place</label>
<input type="number" id="showValuesPrecision" class="vp-state" placeholder="Type decimal places(0~5)" min="0" max="5"/>
</div>
</div>
<div class="vp-grid-box sb-option">
<hr style="margin:5px;"/>
<label class="vp-bold">Errorbar</label>
<input type="text" id="errorbar" class="vp-input vp-state" placeholder="('ci', 95)"/>
<hr style="margin:5px;"/>
</div>
<label for="useLegend" class="vp-bold">Legend</label>
<div class="vp-grid-col-p50">
<select id="legendPos" class="vp-select vp-state">
<!-- Legend Position FIXME: -->
</select>
</div>
</div>
<div class="vp-tab-page vp-grid-box" data-type="style" style="display: none;">
<!-- STYLE: grid / marker / color -->
<label for="color" class="vp-bold">Color</label>
<div>
<label><input type="checkbox" id="useColor" class="vp-state"/><span>Use Color</span></label>
<input type="color" id="color" class="vp-state" disabled/>
</div>
<hr style="margin:5px;"/>
<label for="useGrid" class="vp-bold">Grid</label>
<div>
<select id="useGrid" class="vp-select vp-state">
<option value="">Select option...</option>
<option value="True">True</option>
<option value="False">False</option>
</select>
<input type="color" id="gridColor" class="vp-state"/>
</div>
<hr style="margin:5px;"/>
<label for="useMarker" class="vp-bold">Marker</label>
<div class="vp-grid-col-p50">
<select id="markerStyle" class="vp-select vp-state">
<!-- TODO: -->
<option></option>
</select>
</div>
</div>
<div class="vp-tab-page vp-grid-box" data-type="code" style="display: none;">
<textarea id="userCode1" class="vp-state" placeholder="plt.text(3.0, 2.0, 'Hello Visual Python')
plt.axvline(x=1, color='b', linestyle='-')
plt.axhline(y=1, color='r', linestyle='-')"></textarea>
</div>
</div>
</div>
</div>
</div>
</div>
<div class="vp-chart-right-box">
<div class="vp-bold">
<span class="vp-chart-preview-title">Chart Preview</span>
<span class="vp-chart-preview-option vp-no-selection">
<label><input type="checkbox" id="useSampling" class="vp-state" checked><span>Sampling</span></label>
<select id="sampleCount" class="vp-select s vp-state">
</select>
<label style="margin-left:10px;"><input type="checkbox" id="autoRefresh" class="vp-state" checked><span>Auto Refresh</span></label>
<span id="previewRefresh" class="vp-cursor vp-icon-refresh">
<!-- <img src="${vp_base}/img/refresh.svg"/> -->
</span>
</span>
</div>
<div class="vp-chart-preview-box vp-grid-border-box">
<div id="chartPreview" class="vp-chart-preview-content vp-center"></div>
</div>
</div>
</div>
</body>