Napari: Figure out best printing format for status bar

Created on 16 Jan 2019  路  2Comments  路  Source: napari/napari

Over in #90, @sofroniewn, @kne42, and I were discussing the formatting of numbers in the Napari status bar. No format string produces satisfactory results for all input types, so we need to write a function that picks the right format string for the right situation. See https://github.com/Napari/napari-gui/pull/90#discussion_r247782298

feature question

All 2 comments

As noted by @royerloic in #372 - when changing the dims sliders

The status bar should display something like:

[3, 5, :, :], layer_name, value ...

where 3 or 5 are changing depending on the dim slider being moved.
the ':' are there because we are not hovering over a pixel, so in some sense
we have nothing relevant to give there.

With #485 this has been dramatically improved. We now have a consolidated all our status formatting to one function inside the utils folder that can be tested / improved independently.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jni picture jni  路  3Comments

tlambert03 picture tlambert03  路  3Comments

tlambert03 picture tlambert03  路  3Comments

VolkerH picture VolkerH  路  3Comments

kevinyamauchi picture kevinyamauchi  路  4Comments