Skip to content

Commit 4b885de

Browse files
authored
update default color
1 parent 4bd78a1 commit 4b885de

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

hammock/hammock.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ def plot(self,
130130
hi_var: str = None,
131131
hi_value: List[str] = None,
132132
color: List[str] = None,
133-
default_color="blue",
133+
default_color="lightskyblue",
134134
# Manipulating Spacing and Layout
135135
bar_width: float = 1.,
136136
min_bar_width: float = .05,
@@ -218,7 +218,7 @@ def plot(self,
218218
self.hi_value.append(self.missing_data_placeholder)
219219
else:
220220
self.hi_value = [self.missing_data_placeholder]
221-
colors = ["red", "green", "yellow", "lightblue", "orange", "gray", "brown", "olive", "pink", "cyan", "magenta"]
221+
colors = ["red", "green", "yellow", "purple", "orange", "gray", "brown", "olive", "pink", "cyan", "magenta"]
222222
self.color_lst = [color for color in color_lst] if color_lst else (
223223
colors[:len(self.hi_value)] if hi_var else None)
224224
if hi_var:
@@ -325,8 +325,8 @@ def plot(self,
325325
left_center_pts.append(left_coordinate)
326326
right_center_pts.append(right_coordinate)
327327

328-
label_rectangle = True
329-
label_rectangle_default_color = 'lightgreen'
328+
label_rectangle = True if self.label else False
329+
label_rectangle_default_color = default_color
330330
label_rectangle_widths = []
331331
label_rectangle_total_obvs = {}
332332
if label_rectangle:

0 commit comments

Comments
 (0)