help with matplotlib.path class

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.

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]))

ยทยทยท

On Thu, 30 Oct 2008 Michael Droettboom wrote :

Again, vlines will do all this for you.

Mike