Skip to content

Commit e324dda

Browse files
authored
add checking for space=0 and label
1 parent 8ebc2a1 commit e324dda

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

hammock_plot/hammock_plot.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,11 @@ def plot(self,
245245
self.shape = shape
246246
self.same_scale = same_scale
247247

248+
if self.label and self.space == 0:
249+
raise ValueError(
250+
f'space must not be 0 if label = True.'
251+
)
252+
248253
if self.missing:
249254
self.data_df = self.data_df.fillna(self.missing_data_placeholder)
250255
else:

0 commit comments

Comments
 (0)