glue-viz / glue-plotly

Experimental plot.ly plugin for glue
BSD 3-Clause "New" or "Revised" License
2 stars 8 forks source link

Log axes for viewers #88

Closed Carifio24 closed 1 month ago

Carifio24 commented 1 month ago

This PR enables using log axes for the viewers. The implementation here is mostly straightforward using the type="log" option of Plotly's x and y axes. The only sublety is that we need the log updates to be high priority so that the axis updates happen before the limit resets in the histogram viewer. Additionally, this updates the scatter and histogram viewer state widgets to add switches for toggling the x/y log axes. These widgets are based on the glue-jupyter widgets, but we need our own versions here as this option isn't implemented for the bqplot viewers.