Skip to content

Commit

Permalink
Correct Button referencing
Browse files Browse the repository at this point in the history
  • Loading branch information
CyclingNinja committed Jul 26, 2024
1 parent c726cda commit 0c1a3c7
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 10 deletions.
2 changes: 1 addition & 1 deletion glue_jupyter/common/state_widgets/viewer_histogram.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def __init__(self, viewer_state):
link_glue_choices(self, viewer_state, 'x_att')

def vue_axis_to_bins(self):
self.glue_state.update_bins_to_view()
self.glue_state.x_axislabel = "Updated Bins"
self.glue_state.update_bins_to_view()
print('Triggered axis to bins')
pass
15 changes: 6 additions & 9 deletions glue_jupyter/common/state_widgets/viewer_histogram.vue
Original file line number Diff line number Diff line change
Expand Up @@ -32,18 +32,15 @@
</template>
<span>cumulative</span>
</v-tooltip>

<v-tooltip bottom>
<template v-slot:activator="{ on }">
<v-btn v-on="on" small value="vue_axis_to_bins">
<v-icon>trending_down</v-icon>
</v-btn>
</template>
<span>resize_axis</span>
</v-tooltip bottom>
</v-btn-toggle>
</div>

<div>
<v-btn icon color="primary" text small @click="axis_to_bins">
<v-icon>Fit Axes to Bins</v-icon>
</v-btn>
</div>

<v-switch v-model="glue_state.show_axes" label="Show axes" hide-details/>
</div>
</template>
Expand Down

0 comments on commit 0c1a3c7

Please sign in to comment.