|
56 | 56 | <!-- Chart & Data Selection & Tab option box -->
|
57 | 57 | <div class="vp-tab-bar plot" data-level="plot">
|
58 | 58 | <div class="vp-tab-item vp-focus" data-type="data">Data</div>
|
| 59 | + <div class="vp-tab-item" data-type="axes">Axes</div> |
59 | 60 | <div class="vp-tab-item" data-type="info">Info</div>
|
60 | 61 | <div class="vp-tab-item" data-type="style">Style</div>
|
61 |
| - <div class="vp-tab-item" data-type="setting">Setting</div> |
| 62 | + <div class="vp-tab-item" data-type="code">Code</div> |
62 | 63 | </div>
|
63 | 64 | <div class="vp-tab-page-box plot vp-grid-border-box vp-scrollbar">
|
64 | 65 | <div class="vp-tab-page vp-grid-box" data-type="data">
|
|
97 | 98 | </div>
|
98 | 99 | <div class="vp-grid-box sb-option bins">
|
99 | 100 | <label for="bins" class="vp-bold">Bins</label>
|
100 |
| - <input type="text" class="vp-input vp-state" id="bins" placeholder="Type bins" /> |
| 101 | + <input type="number" class="vp-input vp-state" id="bins" placeholder="Type bins" /> |
101 | 102 | </div>
|
102 | 103 | </div>
|
103 | 104 | <label for="userOption" class="vp-bold">User Option</label>
|
104 | 105 | <input type="text" id="userOption" class="vp-input vp-state wp100" placeholder="key=value, ..."/>
|
105 | 106 | </div>
|
| 107 | + <div class="vp-tab-page vp-grid-col-95" data-type="axes" style="display: none;"> |
| 108 | + <!-- SETTING : axis limit / tick interval / rotate tick labels ... --> |
| 109 | + <label for="x_limit_from" class="vp-bold">X Limit</label> |
| 110 | + <div class="vp-grid-col-p50"> |
| 111 | + <input type="text" id="x_limit_from" class="vp-input m vp-state" placeholder="From" /> |
| 112 | + <input type="text" id="x_limit_to" class="vp-input m vp-state" placeholder="To" /> |
| 113 | + </div> |
| 114 | + <label for="y_limit_from" class="vp-bold">Y Limit</label> |
| 115 | + <div class="vp-grid-col-p50"> |
| 116 | + <input type="text" id="y_limit_from" class="vp-input m vp-state" placeholder="From" /> |
| 117 | + <input type="text" id="y_limit_to" class="vp-input m vp-state" placeholder="To" /> |
| 118 | + </div> |
| 119 | + </div> |
106 | 120 | <div class="vp-tab-page vp-grid-box" data-type="info" style="display: none;">
|
107 | 121 | <label for="title" class="vp-bold">Title</label>
|
108 | 122 | <input type="text" id="title" class="vp-input vp-state wp100" placeholder="Title for the chart" />
|
|
151 | 165 | </select>
|
152 | 166 | </div>
|
153 | 167 | </div>
|
154 |
| - <div class="vp-tab-page vp-grid-col-95" data-type="setting" style="display: none;"> |
155 |
| - <!-- SETTING : axis limit / tick interval / rotate tick labels ... --> |
156 |
| - <label for="x_limit_from" class="vp-bold">X Limit</label> |
157 |
| - <div class="vp-grid-col-p50"> |
158 |
| - <input type="text" id="x_limit_from" class="vp-input m vp-state" placeholder="From" /> |
159 |
| - <input type="text" id="x_limit_to" class="vp-input m vp-state" placeholder="To" /> |
160 |
| - </div> |
161 |
| - <label for="y_limit_from" class="vp-bold">Y Limit</label> |
162 |
| - <div class="vp-grid-col-p50"> |
163 |
| - <input type="text" id="y_limit_from" class="vp-input m vp-state" placeholder="From" /> |
164 |
| - <input type="text" id="y_limit_to" class="vp-input m vp-state" placeholder="To" /> |
165 |
| - </div> |
| 168 | + <div class="vp-tab-page vp-grid-box" data-type="code" style="display: none;"> |
| 169 | + <textarea id="userCode1" class="vp-state" placeholder="plt.text(3.0, 2.0, 'Hello Visual Python') |
| 170 | +plt.axvline(x=1, color='b', linestyle='-') |
| 171 | +plt.axhline(y=1, color='r', linestyle='-')"></textarea> |
166 | 172 | </div>
|
167 | 173 | </div>
|
168 | 174 | </div>
|
|
0 commit comments