|
From: Benjamin R. <ben...@ou...> - 2012-09-27 12:07:29
|
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 |