Thanks,

vlines is definitely the better option. By the way, I am using 
the
Enthought python distribution for Windows. I could not get the 
desired
output from the ipython -pylab shell. But the same code when run 
in
SciTe and IDLE gave the desired output.



On Thu, 30 Oct 2008 Michael Droettboom wrote :
>The limits don't get automatically adjusted when using 
>add_patch().
>
>You could do something like:
>
>plt.gca().set_xlim(min([x for x, y in vertices]), max([x for x, y 
>in
vertices]))
>plt.gca().set_ylim(min([y for x, y in vertices]), max([y for x, y 
>in
vertices]))
>
>Again, vlines will do all this for you.
>
>Mike
>



-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to