help with matplotlib.path class


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


plt.gca().set_ylim(min([y for x, y in vertices]), max([y for x, y in



On Thu, 30 Oct 2008 Michael Droettboom wrote :

Again, vlines will do all this for you.