8000 extra label for non-existent tick · Issue #5841 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content
extra label for non-existent tick #5841
Closed
@anntzer

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...

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0