Commit cc9b30df authored by Daniel Scheffler's avatar Daniel Scheffler
Browse files

Fixed matplotlib DeprecationWarning.


Signed-off-by: Daniel Scheffler's avatarDaniel Scheffler <danschef@gfz-potsdam.de>
parent 23b8aa63
......@@ -373,9 +373,9 @@ class Cluster_Learner(object):
ax.grid(lw=0.2)
ax.set_ylim(0, 10000)
if ax.is_last_row():
if ax.get_subplotspec().is_last_row():
ax.set_xlabel('wavelength [nm]')
if ax.is_first_col():
if ax.get_subplotspec().is_first_col():
ax.set_ylabel('%s %s\nreflectance [0-10000]' % (self.src_satellite, self.src_sensor))
ax.set_title('Cluster #%s' % lbl)
......
......@@ -436,9 +436,9 @@ class RefCube(object):
ax.grid(lw=0.2)
ax.set_ylim(0, 10000)
if ax.is_last_row():
if ax.get_subplotspec().is_last_row():
ax.set_xlabel('wavelength [nm]')
if ax.is_first_col():
if ax.get_subplotspec().is_first_col():
ax.set_ylabel('%s %s\nreflectance [0-10000]' % (self.satellite, self.sensor))
ax.set_title('Cluster #%s' % lbl)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment