Skip to content

Commit

Permalink
Allow mapping aesthetic to None
Browse files Browse the repository at this point in the history
closes #791
  • Loading branch information
has2k1 committed Sep 19, 2024
1 parent ca92c8b commit 737611e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions doc/changelog.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,8 @@ title: Changelog
by giving them no shape, now they do not affect the limits of the plot.
({{< issue 814 >}})

- Made it possile to map an aesthetic value to `None`. ({{< issue 791 >}})

### New Features

- [](:class:`~plotnine.geom_text`) has gained new aesthetics
Expand Down
2 changes: 1 addition & 1 deletion plotnine/mapping/evaluation.py
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ def evaluate(
)
raise PlotnineError(msg)
evaled[ae] = col
elif is_known_scalar(col):
elif is_known_scalar(col) or col is None:
if not len(evaled):
col = [col]
evaled[ae] = col
Expand Down

0 comments on commit 737611e

Please sign in to comment.