Skip to content

Commit

Permalink
Adding HistogramViewerState to Hist state widgett
Browse files Browse the repository at this point in the history
  • Loading branch information
CyclingNinja committed Jul 26, 2024
1 parent 69e25d5 commit c726cda
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
7 changes: 6 additions & 1 deletion glue_jupyter/common/state_widgets/viewer_histogram.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
from ...state_traitlets_helpers import GlueState
from ...vuetify_helpers import link_glue_choices


__all__ = ['HistogramViewerStateWidget']


Expand All @@ -19,4 +20,8 @@ def __init__(self, viewer_state):

link_glue_choices(self, viewer_state, 'x_att')

def axis_to_bins(self):
def vue_axis_to_bins(self):
self.glue_state.update_bins_to_view()
self.glue_state.x_axislabel = "Updated Bins"
print('Triggered axis to bins')
pass
2 changes: 1 addition & 1 deletion glue_jupyter/common/state_widgets/viewer_histogram.vue
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@

<v-tooltip bottom>
<template v-slot:activator="{ on }">
<v-btn v-on="on" small value="axis_to_bins">
<v-btn v-on="on" small value="vue_axis_to_bins">
<v-icon>trending_down</v-icon>
</v-btn>
</template>
Expand Down

0 comments on commit c726cda

Please sign in to comment.