New spines capabilities question

Hi,

Congrats on the latest matplotlib release. Looks like there are some really impressive new things in there. I was just looking at the spines docs:

http://matplotlib.sourceforge.net/examples/pylab_examples/spine_placement_demo.html

And I noticed that on spines that are range limited (to the data) in the y direction, the blueish line of the graph is actually cut off near the limit. It is not obvious, but one you see it, you notice it in all the examples (look at the peaks and troughs of the sin curve).

Is this a known issue or can this be prevented?

Cheers,

Brian

I think this happens in all mpl graphs, you just don't see it. The
axis limits are set to -2..2, and the sine is draw from -2..2. The
linewidth extends beyond 2, so it is clipped by the axes clipping to
the bounding rectangle. Normally you don't see this, because visually
it is under the surrounding axes black edge. You can either set the
ylimits wider:

  ax.set_ylim(-2.1, 2.1)

or turn clipping off

  ax.plot(x,y, clip_on=False)

JDH

ยทยทยท

On Thu, Aug 6, 2009 at 1:01 PM, Brian Granger<ellisonbg.net@...149...> wrote:

Hi,

Congrats on the latest matplotlib release. Looks like there are some
*really* impressive new things in there. I was just looking at the spines
docs:

http://matplotlib.sourceforge.net/examples/pylab_examples/spine_placement_demo.html

And I noticed that on spines that are range limited (to the data) in the y
direction, the blueish line of the graph is actually cut off near the
limit. It is not obvious, but one you see it, you notice it in all the
examples (look at the peaks and troughs of the sin curve).

Is this a known issue or can this be prevented?