Skip to content

Dropped tick label for fixedformatter #8779

Closed

Description

@anntzer

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.

Activity

  1. tacaswell commented on Jun 19, 2017

    @tacaswell
    Member

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

  2. anntzer commented on Jun 19, 2017

    @anntzer
    ContributorAuthor

    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.

  3. QuLogic commented on Oct 24, 2019

    @QuLogic
    Member

    This is a duplicate of #7122.

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions