Le 11/06/2012 22:30, magurling a écrit :
> I just wanted the axis line to end at the last y tick
> I've never used an explicit axis. What will axis('tight') actually do?
In your case plt.axis('tight') will constrain the axes to your plotted
object, no space above, below, or at the right. The "go
Jerzy Karczmarczuk-2 wrote:
>
> What do you really want?
>
I just wanted the axis line to end at the last y tick
> I would suggest using an explicit axis, e.g.
>
> plt.axis([0,0.10,-25,80])
>
> (or between -30 and 100, or 'tight', etc.)
>
I've never used an explicit axis. What will axis
Tony Yu-3 wrote:
>
> `yticks()` just sets the ticks, which shows up correctly in both plots. It
> sounds like what you want to specify is the axis limit. You can add the
> following (e.g. after the call to `yticks`):
>
>plt.ylim(ymin=-30)
>
Thanks Tony for clearing up my misunderstanding
Mark Gurling:
>
> I have two bar graph scripts (good.py and bad.py).
...
> while in good.py the y-axis ends precisely at -30.0, in bad.py the
> y-axis ends below -30.0 despite the yticks setting specified on line
> 20. Is there an explanation for this behavior? How might I remedy this?
What do y
On Thu, Jun 7, 2012 at 3:44 PM, Mark Gurling wrote:
> I am on Ubuntu 11.10
> matplotlib version 1.1.0
> numpy version 1.5.1
>
> I have two bar graph scripts (good.py and bad.py). Each generates a graph
> that contains two bars: one bar that extends along the positive y-axis and
> another bar that
I am on Ubuntu 11.10
matplotlib version 1.1.0
numpy version 1.5.1
I have two bar graph scripts (good.py and bad.py). Each generates a graph
that contains two bars: one bar that extends along the positive y-axis and
another bar that extends along the negative y-axis. The only difference
between the