FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Integer Categorical Values Not Getting Mapped Correctly · Issue #9336 · matplotlib/matplotlib · GitHub

Repository navigation

Integer Categorical Values Not Getting Mapped Correctly #9336

Closed

Description

As @anntzer described in #9318, integer categoricals (even when strings) aren't using the unit mapping and so are being handled incorrectly:

fig, ax = plt.subplots()
ax.set_xlim([-1,2])
ax.set_ylim([0,2])
ax.plot(["!", "0"], [1, 2])

ETA: Ok, so the bug is that it's doing an inplace substitution, and casting into a string:

vals[vals=='!'] = 0 # casts into string
vals=='0' # matches everything

Activity

  1. added
    Release criticalFor bugs that make the library unusable (segfaults, incorrect plots, etc) and major regressions.
    on Oct 9, 2017
  2. added this to the milestone on Oct 9, 2017
  3. added a commit that references this issue on Oct 9, 2017
  4. added a commit that references this issue on Nov 13, 2017
  5. modified the milestones: v2.1.1, on Dec 6, 2017
  6. tacaswell commented on Feb 12, 2018

    Member

    Closed by #9783

  7. modified the milestones: , v2.2.0 on Feb 12, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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


      Back | FazBrowse Home | New Git URL