Re: [Matplotlib-users] Difference in Axes.hlines / Axes.vlines

2007-07-18 Thread Ben North
Hi, I wrote: > I was wondering, though, whether there'd be any support for some work > which tidied up the near-duplicate code in axes.py. which produced a couple of replies. I think this is probably more of a matplotlib-devel topic than a -users one, so I'll post a reply over there. Ben.

[Matplotlib-users] Difference in Axes.hlines / Axes.vlines

2007-07-17 Thread Ben North
Hi, There is a difference in the behaviour of Axes.hlines() vs Axes.vlines(), in that vlines() lets you supply scalars for ymin and ymax, whereas hlines() doesn't (for xmin and xmax). The patch below fixes that, and also what looks like a separate bug in vlines. There are also other differences,

[Matplotlib-users] Question about default value for 'emit' in set_[xy]lim()

2007-07-17 Thread Ben North
Hi, The normal rectangular Axes class and the derived PolarAxes class both have set_xlim() and set_ylim() functions, but the rectangular Axes class has a default value of False for the 'emit' argument, whereas the PolarAxes version has True. I had a figure containing three Axes instances, arrange

[Matplotlib-users] Core-dump when (mis)using scale_transform

2007-07-17 Thread Ben North
Hi, I've been using matplotlib for a little while and am finding it very useful. Yesterday, though, I hit a problem: Because I didn't read the docs properly, I tried to use matplotlib.transforms.scale_transform like this: t = scale_transform(1.0, 2.0) but then I got a core-dump when tr