Skip to content

Commit

Permalink
Fixed scale_color_cmap_d, the missing _aesthetics
Browse files Browse the repository at this point in the history
fixes #890
  • Loading branch information
has2k1 committed Nov 21, 2024
1 parent 6cb4c1d commit 1521514
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions doc/changelog.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ title: Changelog
[](:class:`~plotnine.geom_sina`) where data with an index that
did not include 0 led to a crash. ({{< issue 888 >}})

- Fixed `v0.14.0` regression that made [](:class:`~plotnine.scale_color_cmap_d`)
unusable. ({{< issue 890 >}})

## v0.14.1
(2024-11-05)

Expand Down
1 change: 1 addition & 0 deletions plotnine/scales/scale_color.py
Original file line number Diff line number Diff line change
Expand Up @@ -474,6 +474,7 @@ class scale_color_cmap_d(scale_discrete):
`matplotlib.cm.cmap_d.keys()` or see the
`documentation <http://matplotlib.org/users/colormaps.html>`_.
"""
_aesthetics = ["color"]

def __post_init__(self, cmap_name):
from mizani.palettes import cmap_d_pal
Expand Down

0 comments on commit 1521514

Please sign in to comment.