Commit e844382e authored by Kris Vanneste's avatar Kris Vanneste
Browse files

Set dpi before map is drawn in plot method of LayeredBasemap.

git-svn-id: https://svn.seismo.oma.be/svn/seismo/mapping/layeredbasemap/trunk@6035 40b490c5-b4d9-47cb-8714-9bef99b524d5
parent 13892b33
......@@ -2169,12 +2169,6 @@ 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
if dpi:
if fig_filespec:
default_figsize = pylab.rcParams['figure.figsize']
......@@ -2183,6 +2177,12 @@ 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 fig_filespec in ("wait", "hold"):
return self
#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