Re: [Matplotlib-users] Prevent matplotlib (imshow) from interpolating at all

2012-07-25 Thread Rutger Kassies
Great tip, alot simpler than i expected. Although you still need to specify the correct dimensions of the axes, otherwise it wil be interpolated after all. If in my example i increase the figsize by a factor of 2, the image stretches along with it. Thanks! Rutger On 25 July 2012 19:11, Benjam

Re: [Matplotlib-users] Modifying lasso_demo.py

2012-07-25 Thread Eric Firing
On 2012/07/25 12:45 PM, Scott Henderson wrote: > Thanks for the response. To be more specific, if I run the modified > script in an ipython --pylab terminal: > > In [1]: %run lasso_demo.py > > In [2]: > > The function returns, and the lasso manager is garbage collected as > you say. In other words,

Re: [Matplotlib-users] Modifying lasso_demo.py

2012-07-25 Thread Scott Henderson
Thanks for the response. To be more specific, if I run the modified script in an ipython --pylab terminal: In [1]: %run lasso_demo.py In [2]: The function returns, and the lasso manager is garbage collected as you say. In other words, the plot shows up, but I can't draw a lasso and select poin

Re: [Matplotlib-users] Modifying lasso_demo.py

2012-07-25 Thread Tony Yu
On Wed, Jul 25, 2012 at 5:11 PM, Scott Henderson wrote: > Hello, I'm trying to incorporate some matplotlib widgets into my scripts > that generate plots. I'm unsure why, but if I wrap the figure creation > lines in lasso_demo.py with a function the demo does not work. Why? > > #Original: > #-

[Matplotlib-users] Modifying lasso_demo.py

2012-07-25 Thread Scott Henderson
Hello, I'm trying to incorporate some matplotlib widgets into my scripts that generate plots. I'm unsure why, but if I wrap the figure creation lines in lasso_demo.py with a function the demo does not work. Why? #Original: # if __name__ == '__main__': data = [Datum(*xy) for xy i

Re: [Matplotlib-users] Prevent matplotlib (imshow) from interpolating at all

2012-07-25 Thread Benjamin Root
On Wednesday, July 25, 2012, Rutger Kassies wrote: > Dear list, > > I am trying to plot an image using imshow for which i want to have full > control of the interpolation taking place. I would rather not have any > interpolation at all, but if the input image is very small, it may be > interpolate

[Matplotlib-users] Prevent matplotlib (imshow) from interpolating at all

2012-07-25 Thread Rutger Kassies
Dear list, I am trying to plot an image using imshow for which i want to have full control of the interpolation taking place. I would rather not have any interpolation at all, but if the input image is very small, it may be interpolated (nearest neighbor) with an integer factor of my choice (2x,3x