Skip to content

Commit

Permalink
Fix multibar plotting.
Browse files Browse the repository at this point in the history
  • Loading branch information
seba-1511 committed Aug 5, 2023
1 parent d4d2e6f commit a12cb97
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
13 changes: 12 additions & 1 deletion plotify/colors.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import matplotlib.colors as mc


LIGHT_GRAY = '#D3D3D3'
MAUREENSTONE_COLORS = [
'#396AB1',
'#DA7C30',
Expand Down Expand Up @@ -34,7 +35,17 @@
'red': '#CC3311',
'gray': '#BBBBBB',
}
LIGHT_GRAY = '#D3D3D3'
Google = {
'red': '#EA4335',
'yellow': '#FBBC04',
'green': '#34A853',
'blue': '#4285F4',
'gray': '#9AA0A6',
'orange': '#FA7B17',
'pink': '#F439A0',
'purple': '#A142F4',
'cyan': '#24C1E0',
}


def lighten_color(color, amount=0.5):
Expand Down
2 changes: 1 addition & 1 deletion plotify/plot.py
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,7 @@ def bar(self, x, y, show_values=False, num_box_sets=None, spacing=1.0, center_ti
color = kwargs.pop('color', None)
if color is None:
color = next(self.colors)
if isinstance(color, Iterable):
if isinstance(color, (tuple, list)):
colors = color
else:
colors = [color, ] * len(y_means)
Expand Down

0 comments on commit a12cb97

Please sign in to comment.