Skip to content

Add integer locators and formatters to SliceWidget #37

Closed
@dstansby

Description

@dstansby

For small data ranges, the x-axis of the slice widget shows floating point numbers:
Screenshot 2022-05-07 at 10 37 24

Since the data only ever falls on integer values, it would be good to set the ticks to be at integer locations, and the tick values to be formatted as integers. See https://matplotlib.org/stable/api/ticker_api.html for more info on how to do this.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions