commit | fd38c55779e0d7c80cab60400fee236456cb41c0 | [log] [tgz] |
---|---|---|
author | Javi Merino <javi.merino@arm.com> | Mon Aug 11 17:14:52 2014 +0100 |
committer | Javi Merino <javi.merino@arm.com> | Wed Aug 12 14:52:41 2015 +0100 |
tree | b0f7afb490f6ac96da372d77f4ed8915d4fc905a | |
parent | 86f3bb95097c8353084000ce358583883c84aba9 [diff] [blame] |
plot_utils: use ax.set_title() instead of plt.title() It lets you set title for each subplot
diff --git a/cr2/plot_utils.py b/cr2/plot_utils.py index cfd0a93..1d7aed1 100644 --- a/cr2/plot_utils.py +++ b/cr2/plot_utils.py
@@ -85,7 +85,7 @@ plt.xlabel(xlabel) if title: - plt.title(title) + ax.set_title(title) set_ylim(ax, ylim) set_xlim(ax, xlim)