Ryan Krauss wrote:
I think this line in the rc file is the trick
#savefig.dpi : 100
nope. I think all that does is set the default dpi for savefig. I don't
want any default, I want it to use the same dpi that is being used for
display, and I don't know ahead of time what that is, I
I guess you could read the rcParams value that corresponds to the
screen display and set rcParams['savefig.dpi'] to that value (this
might work):
mydpi = rcParams['figure.dpi']
rcParams['savefig.dpi'] = mydpi
But that seems slightly hackish and maybe not much more elegant than
what you are
Hi all,
I want to save a figure just like it is displayed i.e. the same dpi
(wxAgg). However, the default Figure.savefig uses a different dpi
setting than the figure as displayed, so I'm doing:
dpi = Fig.get_dpi()
Fig.savefig(str(path), dpi=dpi)
which seems to work, but seems more awkward
I think this line in the rc file is the trick
#savefig.dpi : 100
On Wed, Mar 26, 2008 at 6:16 PM, Christopher Barker
[EMAIL PROTECTED] wrote:
Hi all,
I want to save a figure just like it is displayed i.e. the same dpi
(wxAgg). However, the default Figure.savefig uses a different dpi