Skip to content

Are categorical plots with single letter strings limited to show 10 categories? #9843

Closed
@ImportanceOfBeingErnest

Description

It seems categorical plots are limited to show 10 categories correctly when single letters are used as categories. The eleventh category is shown at the place of the second one.

import matplotlib.pyplot as plt

x = list("ABCDEFGHIJK")
y = range(len(x))
plt.plot(x,y, marker="o")

plt.show()

image

In case at least one of the categories has more letters, x.append("WORD"), the plot is shown correctly:

image

(This issue was brouht up in this Stackoverflow question)
[Produced with python 2.7, matplotlib 2.1, numpy 1.13.0rc2]

Metadata

Metadata

Assignees

No one assigned

    Labels

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

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions