Re: [Matplotlib-users] dpi

2012-10-19 Thread Pierre Haessig
Hi, Le 19/10/2012 06:48, Jae-Joon Lee a écrit : > Figuring out the dpi of the screen, I have no clue at this moment. > Maybe this is something a gui expert can answer. I'm certainly not a gui expert, but as a PyQt user, I know screen resolution is indeed Python-accessible with PyQt. (I guess other

Re: [Matplotlib-users] dpi

2012-10-18 Thread Jae-Joon Lee
> Yeah, that's what I feared. But in the mean time, are there any best > practices to minimize undesired effects like the one above? For example, > are there any other functions that need special parameters to not raster > their output when writing to a vector format? And is there a way to get > a

Re: [Matplotlib-users] dpi

2012-10-12 Thread Nikolaus Rath
Jae-Joon Lee writes: > On Fri, Oct 12, 2012 at 3:39 AM, Nikolaus Rath > wrote: >> matplotlib actually rescales the raw imshow data when saving to a vector >> format? Why is that? I think it should embed the bitmap with full >> resolution in the vector file and rely on the consumer of the vector

Re: [Matplotlib-users] dpi

2012-10-11 Thread Jae-Joon Lee
On Fri, Oct 12, 2012 at 3:39 AM, Nikolaus Rath wrote: > matplotlib actually rescales the raw imshow data when saving to a vector > format? Why is that? I think it should embed the bitmap with full > resolution in the vector file and rely on the consumer of the vector > file to scale it to whatever

Re: [Matplotlib-users] dpi

2012-10-11 Thread Nikolaus Rath
Damon McDougall writes: > On Thu, Oct 11, 2012 at 4:00 PM, Nikolaus Rath > wrote: >> When saving the figure in some vector graphics format, I >> don't see what the meaning of the dpi is at all. > > Sure, I use `dpi=` all the time for vector formats. Purely because > when you make calls to `imsh

Re: [Matplotlib-users] dpi

2012-10-11 Thread Damon McDougall
On Thu, Oct 11, 2012 at 4:00 PM, Nikolaus Rath wrote: > When saving the figure in some vector graphics format, I > don't see what the meaning of the dpi is at all. Sure, I use `dpi=` all the time for vector formats. Purely because when you make calls to `imshow`, you get a rasterised image embedd

[Matplotlib-users] dpi

2012-10-11 Thread Nikolaus Rath
Hello, I'm confused by the dpi property of figures that can be set in matplotlibrc or passed to pyplot.figure(). It seems to me that dpi is really a property of the backend, not the figure, and the only place to specify it ought to be when saving into a bitmap file. For example, when showing a

Re: [Matplotlib-users] dpi in savefig ignored if imshow uses interpolation='nearest'

2011-04-12 Thread Eric Firing
On 04/12/2011 01:32 PM, Thomas Robitaille wrote: > Hi, > > If I use interpolation='nearest' in an imshow command, when I try and save > the image using savefig, the dpi= argument seems to have no effect. I have > created a bug report on GitHub: > > https://github.com/matplotlib/matplotlib/issue

[Matplotlib-users] dpi in savefig ignored if imshow uses interpolation='nearest'

2011-04-12 Thread Thomas Robitaille
Hi, If I use interpolation='nearest' in an imshow command, when I try and save the image using savefig, the dpi= argument seems to have no effect. I have created a bug report on GitHub: https://github.com/matplotlib/matplotlib/issues/83 Thanks for any help, Tom