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
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
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
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:
> #-
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
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,
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