Skip to content

Commit a12cb97

Browse files
committed
Fix multibar plotting.
1 parent d4d2e6f commit a12cb97

File tree

2 files changed

+13
-2
lines changed

2 files changed

+13
-2
lines changed

plotify/colors.py

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
import matplotlib.colors as mc
44

55

6+
LIGHT_GRAY = '#D3D3D3'
67
MAUREENSTONE_COLORS = [
78
'#396AB1',
89
'#DA7C30',
@@ -34,7 +35,17 @@
3435
'red': '#CC3311',
3536
'gray': '#BBBBBB',
3637
}
37-
LIGHT_GRAY = '#D3D3D3'
38+
Google = {
39+
'red': '#EA4335',
40+
'yellow': '#FBBC04',
41+
'green': '#34A853',
42+
'blue': '#4285F4',
43+
'gray': '#9AA0A6',
44+
'orange': '#FA7B17',
45+
'pink': '#F439A0',
46+
'purple': '#A142F4',
47+
'cyan': '#24C1E0',
48+
}
3849

3950

4051
def lighten_color(color, amount=0.5):

plotify/plot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -451,7 +451,7 @@ def bar(self, x, y, show_values=False, num_box_sets=None, spacing=1.0, center_ti
451451
color = kwargs.pop('color', None)
452452
if color is None:
453453
color = next(self.colors)
454-
if isinstance(color, Iterable):
454+
if isinstance(color, (tuple, list)):
455455
colors = color
456456
else:
457457
colors = [color, ] * len(y_means)

0 commit comments

Comments
 (0)