Skip to content

Dropped tick label for fixedformatter #8779

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
anntzer opened this issue Jun 19, 2017 · 3 comments
Closed

Dropped tick label for fixedformatter #8779

anntzer opened this issue Jun 19, 2017 · 3 comments

Comments

@anntzer
Copy link
Contributor

anntzer commented Jun 19, 2017

master but also present on 1.5.3

imshow(rand(5, 5)); gca().set_xticklabels(["foo", "bar"])

results in
figure_1
Almost certain this is due to the xticks internally including a tick at the position "just left of bounds". Seems related (not directly, though) to the issue discussed in #7042.

@tacaswell
Copy link
Member

It is not safe to use FixedFormatter with a non-fixed locator.

@anntzer
Copy link
Contributor Author

anntzer commented Jun 19, 2017

I agree it is not really suitable, but locators should really do an effort to return only ticks that are actually going to be drawn.

If FixedFormatter cannot safely be used with a non-fixed locator this should trigger a warning (perhaps at draw time, so that one can change the formatter before the locator in the code).

xref #5560.

@QuLogic
Copy link
Member

QuLogic commented Oct 24, 2019

This is a duplicate of #7122.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants