8000 BUG: endless loop with MaxNLocator integer kwarg and short axis · Issue #6849 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content
BUG: endless loop with MaxNLocator integer kwarg and short axis #6849
Closed
@efiring

Description

@efiring

In v2.x:

fig, ax = plt.subplots()
ax.plot([0.5, 1.5], [1, 2])
ax.locator_params(axis='x', integer=True)

This leads to an infinite loop in MaxNLocator._raw_ticks.

Metadata

Metadata

Assignees

Labels

Release criticalFor bugs that make the library unusable (segfaults, incorrect plots, etc) and major regressions.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions

    0