bluesky / bluesky-mpl

ARCHIVED. See instead http://blueskyproject.io/bluesky-widgets
Other
2 stars 3 forks source link

Log vs Linear Norms for LiveImage #12

Open CJ-Wright opened 6 years ago

CJ-Wright commented 6 years ago

It would be nice to have a toggle between log and linear norm for LiveImage.

Expected Behavior

Press button and plot changes scale

Current Behavior

Scale must be set at instantiation

Context

This kind of functionality is available from other software (eg fit2d)

prjemian commented 6 years ago

Doesn't MatPlotLib provide this with a keyboard shortcut?

CJ-Wright commented 6 years ago

I have no idea.

prjemian commented 6 years ago

See https://matplotlib.org/users/navigation_toolbar.html#navigation-keyboard-shortcuts,

goal keyboard shortcut
Toggle x axis scale (log/linear) L or k when mouse is over an axes
-- --
Toggle y axis scale (log/linear) l when mouse is over an axes
CJ-Wright commented 6 years ago

Ah but that is for the x and y axis not the color scale.

prjemian commented 6 years ago

Ah, Live Image. Proof I cannot read and cannot format markdown tables.

I agree. Initial assignment of log axis is extremely reasonable for intensity axes in diffraction science. At X-ray synchrotrons, where signals span so many decades of range, it is the best default choice for representing intensity.