a)
plt.savefig('pylab-grid.png')
plt.savefig('pylab-grid.pdf')
Nicolas
On Oct 30, 2012, at 10:59 , Maciek Dems wrote:
> In reply to message from Nicolas Rougier, dated Tuesday 30 of October 2012,
> on subject "Re: [matplotlib-devel] Misalignment imshow vs. grid
In reply to message from Nicolas Rougier, dated Tuesday 30 of October 2012,
on subject "Re: [matplotlib-devel] Misalignment imshow vs. grid lines"
> You're right. Using 'none' interpolation seems to solve the problem. Good
> to know !
Unfortunately it does
Thanks for making this so easy to reproduce. It is so much easier when
there is a small, self contained, correct example!
Initially I was thinking that the problem was some kind of snapping issue
with the ticks, but it turns out, if you change the interpolation scheme to
"none", you get perfect al
Sorry, I was too fast in my reply.
When I save the figure, the png output is ok while the pdf is displaying some
kind of interpolation with the image.
import numpy as np
import matplotlib
matplotlib.use('Agg')
import matplotlib.pyplot as plt
n = 16
fig = plt.figure(figsize=(6,6))
Z = np.array
You're right. Using 'none' interpolation seems to solve the problem. Good to
know !
One last question, why is the 'none' interpolation restricted to Agg/PS/pdf ?
Nicolas
On Oct 30, 2012, at 6:53 , Jae-Joon Lee wrote:
> On Tue, Oct 30, 2012 at 12:25 AM, Nicolas Rougier
> wrote:
>>
>>
>>
On Tue, Oct 30, 2012 at 12:25 AM, Nicolas Rougier
wrote:
>
>
> Thanks for testing.
>
> If I zoom at any line cross, the lines are definitely at the wrong place for
> me.
As jules hummon commented, I see lines in right places when I zoom in.
> As for screen aliasing I'm not sure since both the
I also see this in mpl 1.1.0, python 2.7.2 with the iPython Qt console
and also with the WXAgg backend
Gary R.
On 30 October 2012 03:16, Nicolas Rougier wrote:
>
>
> matplotlib 1.2.x
> python 2.7.2
> osx10.7.5
>
>
> Nicolas
>
> On Oct 29, 2012, at 16:29 , Benjamin Root wrote:
>
>>
>>
matplotlib 1.2.x
python 2.7.2
osx10.7.5
Nicolas
On Oct 29, 2012, at 16:29 , Benjamin Root wrote:
>
>
> On Mon, Oct 29, 2012 at 11:25 AM, Nicolas Rougier
> wrote:
>
>
> Thanks for testing.
>
> If I zoom at any line cross, the lines are definitely at the wrong place for
> me
On Mon, Oct 29, 2012 at 11:25 AM, Nicolas Rougier
wrote:
>
>
> Thanks for testing.
>
> If I zoom at any line cross, the lines are definitely at the wrong place
> for me.
> As for screen aliasing I'm not sure since both the png and pdf seems to be
> wrong in my case.
> Weird !
>
>
>
Which version o
Thanks for testing.
If I zoom at any line cross, the lines are definitely at the wrong place for me.
As for screen aliasing I'm not sure since both the png and pdf seems to be
wrong in my case.
Weird !
Nicolas
On Oct 29, 2012, at 15:40 , jules hummon wrote:
> Nicolas
>
> I get that too, (
Nicolas
I get that too, (with your script and various things in my work).
But if you zoom in, the lines are in the right place. Is it
some kind of screen aliasing?
Jules
--
The Windows 8 Center - In partnership with So
Hi,I tried to plot a grid over a small image (24x24) and some grid lines are mis-aligned, can anybody confirm the behavior ?Here is a sample script:import numpy as npimport matplotlib.pyplot as pltn = 16fig = plt.figure(figsize=(10,10))Z = np.array(([0,1]*(n//2) + [1,0]*(n//2))*(n//2)).reshape(n,n)
12 matches
Mail list logo