Skip to content

extra label for non-existent tick #5841

Closed

Description

@anntzer

After

rcParams["xtick.direction"] = rcParams["ytick.direction"] = "out"
xlim(4.001, 8)

There is an extra label at x=4.0, but (correctly) no tick there:
extralabel

Probably a rounding issue, e.g. it doesn't appear using xlim(4.005, 8). I understand that some tolerance in floating point comparison is needed, but at least the same should be used for both ticks and labels (i.e. I wouldn't necessarily consider it a bug if both a tick and a label appeared when the lower xlim is e.g. 4+1e-10).

Sadly not solved by #5768.

PS: I guess this is going to be much more visible now that the default style has ticks pointing outwards...

Activity

  1. added this to the milestone on Jan 13, 2016
  2. mdboom commented on Jan 25, 2016

    @mdboom
    Member

    Some rough notes as we go through: See axis.py:253 for where we determine if things appear or not. I suspect we just need to put the label drawing inside of the if midPoint block as well.

  3. anntzer commented on Jan 25, 2016

    @anntzer
    ContributorAuthor

    Your solution seems to work.

  4. tacaswell commented on Feb 1, 2016

    @tacaswell
    Member

    Did a PR for this fix ever get created?

  5. added a commit that references this issue on Feb 1, 2016
    3e69fa5
  6. self-assigned this
    on Feb 1, 2016
  7. modified the milestones: , on Feb 9, 2016
  8. added a commit that references this issue on May 22, 2016
    a048533
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions