Commit 13892b33 authored by Kris Vanneste's avatar Kris Vanneste
Browse files

Fixed problem that map was not drawn if 'fig_filespec' argument is specified...

Fixed problem that map was not drawn if 'fig_filespec' argument is specified as "wait" in plot method of LayeredBasemap.

git-svn-id: https://svn.seismo.oma.be/svn/seismo/mapping/layeredbasemap/trunk@6034 40b490c5-b4d9-47cb-8714-9bef99b524d5
parent 3a5af216
......@@ -2169,6 +2169,9 @@ class LayeredBasemap:
#fig = pylab.figure()
#subplot = fig.draw_subplot(111)
#subplot.set_axes(self.ax)
if not self.is_drawn:
self.draw()
if fig_filespec in ("wait", "hold"):
return self
......@@ -2180,9 +2183,6 @@ class LayeredBasemap:
dpi = dpi * (fig_width / default_figsize[0])
if dpi != self.dpi:
self.fig.set_dpi(dpi)
if not self.is_drawn:
self.draw()
#if tight_layout:
# self.fig.tight_layout(pad=0)
......
Supports Markdown
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