Skip to content

Commit a2aa684

Browse files
author
Enrico Bothmann
committed
Do not put None as diff y label
1 parent ffda1fa commit a2aa684

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

heppyplotlib/ratioplot.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,8 @@ def ratioplot(files_or_data_objects, rivet_path,
5555
from . import rivetplot
5656
rivetplot.apply_plot_info(rivet_path, axes_list[0], axes_list[1])
5757

58-
plt.ylabel(diff_ylabel)
58+
if diff_ylabel is not None:
59+
plt.ylabel(diff_ylabel)
5960

6061
return axes_list, grid
6162

@@ -64,7 +65,6 @@ def ratioplot_setup_axes(subplot_specs):
6465
"""Returns a figure and two axes on it intended for main and diff plots."""
6566
axes_list = []
6667
axes_list.append(plt.subplot(subplot_specs[0]))
67-
print
6868
for i in range(1, subplot_specs.get_geometry()[0]):
6969
axes_list.append(plt.subplot(subplot_specs[i],
7070
sharex=plt.subplot(subplot_specs[0])))

0 commit comments

Comments
 (0)