On Thursday, September 27, 2012, Pierre Haessig wrote:

> Hi Paul,
>
> Le 26/09/2012 18:14, Paul Tremblay a écrit :
> > I noticed today that when I create a bar graph with zero values that
> > the labels don't align correctly:
>
> When I run your code with defects = [0, 0, 0, 5, 6, 7], I don't notice a
> misalignment of xlabels, but rather a issue with xaxis scaling being
> different (and not very good). So it would be more an issue of xaxis
> autoscaling.
>
> Maybe you can send a link to your saved figure to check we are talking
> of the same thing. I've attached my figures (manual 3 panels composition).
>
> Also, I've noticed that the xscaling issue doesn't come from zero values
> in general, but from defects[0] being zero.
>
> Best,
> Pierre
>

This issue has been mentioned before.  The problem happens for a zero bar
on either end.  Particularly, a bar with zero height does not register a
bbox for determining the axis limits.  We will likely need a slightly
different way of autoscaling for bar()

Ben Root
------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://ad.doubleclick.net/clk;258768047;13503038;j?
http://info.appdynamics.com/FreeJavaPerformanceDownload.html
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to