Re: [Matplotlib-users] y-axis misbehavior

2012-06-07 Thread Jerzy Karczmarczuk
Mark Gurling: > > I have two bar graph scripts (good.py and bad.py). ... > while in good.py the y-axis ends precisely at -30.0, in bad.py the > y-axis ends below -30.0 despite the yticks setting specified on line > 20. Is there an explanation for this behavior? How might I remedy this? What do y

Re: [Matplotlib-users] y-axis misbehavior

2012-06-07 Thread Tony Yu
On Thu, Jun 7, 2012 at 3:44 PM, Mark Gurling wrote: > I am on Ubuntu 11.10 > matplotlib version 1.1.0 > numpy version 1.5.1 > > I have two bar graph scripts (good.py and bad.py). Each generates a graph > that contains two bars: one bar that extends along the positive y-axis and > another bar that

[Matplotlib-users] y-axis misbehavior

2012-06-07 Thread Mark Gurling
I am on Ubuntu 11.10 matplotlib version 1.1.0 numpy version 1.5.1 I have two bar graph scripts (good.py and bad.py). Each generates a graph that contains two bars: one bar that extends along the positive y-axis and another bar that extends along the negative y-axis. The only difference between the

[Matplotlib-users] Possible to clip image with all elements of polycollection?

2012-06-07 Thread Alexander Crosby
Is it possible to clip an image like the matplotlib clip example, but by using a polycollection. I'd like to avoid looping through and creating paths/patches for each element and then combining them all at the end, is that the only way? Cheers, Alex Alexander Crosby RPS ASA 55 Village Square Dr

Re: [Matplotlib-users] ymax

2012-06-07 Thread kamel maths
Thank you very much. It works at last. Kamel 2012/6/7 Tony Yu > > On Thu, Jun 7, 2012 at 12:14 PM, kamel maths wrote: > >> Thanks for your answers. >> >> It is not very clear for me yet. This a script I tested. >> -- >> from pylab import * >> >> fig =

Re: [Matplotlib-users] ymax

2012-06-07 Thread Tony Yu
On Thu, Jun 7, 2012 at 12:14 PM, kamel maths wrote: > Thanks for your answers. > > It is not very clear for me yet. This a script I tested. > -- > from pylab import * > > fig = figure() > ax = fig.add_subplot(111) > ax.axis('equal') > > x = linspace(-2,

Re: [Matplotlib-users] ginput with undefined number of points

2012-06-07 Thread Fabrice Silva
Le jeudi 07 juin 2012 à 14:07 +0100, David Craig a écrit : > Hi, > I trying to define an area in a pcolor plot (several plots) using the > ginput(). However since it is an irregular shape and will be different > in each plot so I cant define how many points there will be before hand, > I've trie

Re: [Matplotlib-users] ginput with undefined number of points

2012-06-07 Thread Benjamin Root
On Thu, Jun 7, 2012 at 9:07 AM, David Craig wrote: > Hi, > I trying to define an area in a pcolor plot (several plots) using the > ginput(). However since it is an irregular shape and will be different in > each plot so I cant define how many points there will be before hand, I've > tried the fo

[Matplotlib-users] ginput with undefined number of points

2012-06-07 Thread David Craig
Hi, I trying to define an area in a pcolor plot (several plots) using the ginput(). However since it is an irregular shape and will be different in each plot so I cant define how many points there will be before hand, I've tried the following but it requires a double click at each point, which