Skip to content

Add integer locators and formatters to SliceWidget #37

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
dstansby opened this issue May 7, 2022 · 0 comments · Fixed by #174
Closed

Add integer locators and formatters to SliceWidget #37

dstansby opened this issue May 7, 2022 · 0 comments · Fixed by #174
Assignees
Labels
good first issue Good for newcomers New feature New feature or request

Comments

@dstansby
Copy link
Member

dstansby commented May 7, 2022

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.

@dstansby dstansby added New feature New feature or request good first issue Good for newcomers labels May 7, 2022
@dstansby dstansby self-assigned this Jun 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers New feature New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant