On Sat, Mar 22, 2008 at 5:05 PM, Rich Shepard <rsh...@ap...>
wrote:
> It was suggested that a work-around to allow only the left and bottom
> axes
> is to turn off the plot frame and use axhline and axvline instead. When I
> try this, the axes are extended left and below the origin of the lines. I
> don't see a kwarg to turn this off.
>
> Two sample plots are attached.
>
> Having a plot framed on all four sides may be unusual -- in my areas of
> science anyway -- but could be acceptable except when the plotted curves
> are
> trapezoids, and left-/right-shouldered curves. Then the top of the curve
> is
> overlain by the frame and cannot be seen.
>
> Please let me know what magic incantations will allow me to plot curves
> using axhline and axvline as the actual axes (or frame if you will).
>
> Rich
>
> --
> Richard B. Shepard, Ph.D. | Integrity
> Credibility
> Applied Ecosystem Services, Inc. | Innovation
> <http://www.appl-ecosys.com> Voice: 503-667-4517 Fax:
> 503-667-8863
>
I don't have your answer, but for what it's worth, this aspect of not having
a way to have a graph with just the left and bottom axes and no right and
top lines--in fact, not having it as either the default or a very easy flag
to set in making graphs--rather surprised me too when I encountered
matplotlib. Many of the figures I've encountered in biology do not have
this enclosing box around it in this way.
Would it be something that could be added in future editions of matplotlib?
|