scikit-hep / uproot-browser

A TUI viewer for ROOT files
BSD 3-Clause "New" or "Revised" License
70 stars 7 forks source link

Plot artifacts #94

Open HDembinski opened 1 year ago

HDembinski commented 1 year ago

There is a plotting artifact in this plot. Note how the second bar starts higher than the first.

image

Also, a proper algorithm is needed to set the axis tick locations. This is a difficult problem, see how matplotlib struggles with this.

henryiii commented 1 year ago

This is an issue with plotext. We just show the results provided. So this needs to either be fixed there, or this sort of auto-resizing plot added to histoprint, or it needs to be added to textual (I think I've heard a bit about something like this being proposed).

henryiii commented 1 year ago

The tick issue is even harder for terminals, since you can't move them to find a nice point, there's a small number of preset location they can exist in.