Skip to content

Commit

Permalink
Fix colorbars with theme_matplotlib
Browse files Browse the repository at this point in the history
fixes #403
  • Loading branch information
has2k1 committed Jun 30, 2020
1 parent a637265 commit cfef476
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions doc/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ Bug Fixes
only have ``x`` aesthetic and not ``xmin`` and ``xmax``
e.g :class:`plotnine.geoms.geom_text`.

- Fix regression in ``v0.7.0`` where plots with a colorbar
would fail if using :class:`~plotnine.themse.theme_matplotlib`.

v0.7.0
------
(2020-06-05)
Expand Down
Binary file modified plotnine/tests/baseline_images/test_theme/theme_matplotlib.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions plotnine/themes/theme_matplotlib.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ def __init__(self, rc=None, fname=None, use_defaults=True):
dpi=get_option('dpi'),
figure_size=get_option('figure_size'),
legend_key=element_rect(fill='None', colour='None'),
legend_key_size=16,
panel_spacing=0.1,
strip_background=element_rect(
fill='#D9D9D9', color='#D9D9D9', size=1),
Expand Down

0 comments on commit cfef476

Please sign in to comment.