On Thu, Aug 6, 2009 at 1:01 PM, Brian Granger<ellisonbg....@gmail.com> 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?
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 ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Matplotlib-devel mailing list Matplotlib-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-devel