Skip to content

Commit f271f55

Browse files
committed
Adds axis labelling and tick control
1 parent 1eb2a23 commit f271f55

File tree

1 file changed

+17
-5
lines changed

1 file changed

+17
-5
lines changed

glue_jupyter/widgets/glue_axes.vue

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,22 @@
1919
<glue-float-field label="ymax" :value.sync="value.y_max"/>
2020
</v-col>
2121
</v-row>
22-
</div>
23-
<div>
24-
<v-text-field :label="x-label" :value.sync="glue_state.x_axislabel"/>
25-
<v-text-field :label="y-label" :value.sync="glue_state.y_axislabel"/>
22+
<div>
23+
<v-row dense>
24+
<v-text-field label="x-label" v-model="value.x_axislabel"/>
25+
</v-row>
26+
<v-row dense>
27+
<v-text-field label="y-label" v-model="value.y_axislabel"/>
28+
</v-row>
29+
</div>
30+
<div>
31+
<v-subheader class="pl-0 slider-label">x tick size</v-subheader>
32+
<glue-throttled-slider wait="300" min="1" max="20" step="0.01" :value.sync="value.x_ticklabel_size" hide-details />
33+
</div>
34+
<div>
35+
<v-subheader class="pl-0 slider-label">y tick size</v-subheader>
36+
<glue-throttled-slider wait="300" min="1" max="10" step="0.01" :value.sync="value.y_ticklabel_size" hide-details />
37+
</div>
2638
</div>
2739
</template>
2840

@@ -32,6 +44,6 @@
3244
Only when `value` is changed externally, `glue_state` will be update according to the current `value`.
3345
*/
3446
module.exports = {
35-
props: { value: { type: Object, default: () => ({ x_min: 0, x_max: 1, y_min: 0, y_max: 1 }) } },
47+
props: { value: { type: Object, default: () => ({ x_min: 0, x_max: 1, y_min: 0, y_max: 1}) } },
3648
}
3749
</script>

0 commit comments

Comments
 (0)