[Matplotlib-users] Missing bar when last value is 0

2012-09-19 Thread Adam Davis
If I do: bar(range(3), [1,0,2]) ... then I get 2 bars of a suitable width for a 3 bar chart, with a gap in between where the middle bar would be if not equal to 0. Yet if I do: bar(range(3), [1,2,0]) ... then I get two bars of equal width. Is there a way to preserve the space for the

[Matplotlib-users] Offsetting tick labels

2012-09-19 Thread Adam Davis
I am trying to get alternating tick labels to move completely above and completely below the x axis. If I call: set_ha('top') ... then the number appears fully below the x axis. However, when I call: set_ha('bottom') ... then the number appears roughly vertically centered on the axis.

Re: [Matplotlib-users] Missing bar when last value is 0

2012-09-19 Thread Adam Davis
Yes, that works. Many thanks. On Thu, Sep 20, 2012 at 1:12 AM, Benjamin Root ben.r...@ou.edu wrote: On Wednesday, September 19, 2012, Adam Davis wrote: If I do: bar(range(3), [1,0,2]) ... then I get 2 bars of a suitable width for a 3 bar chart, with a gap in between where

[Matplotlib-users] Axes frame lineweights

2011-09-09 Thread Adam Davis
Is there a way to reduce the lineweight of the axes frame edge? Alternatively, is there a way to hide the edge of the frame without turning the frame off? Thanks, Adam -- Why Cloud-Based Security and Archiving Make

[Matplotlib-users] Using imshow() and plot() in the same figure

2011-09-04 Thread Adam Davis
I have a figure with a number of plots that analyze a source image. I wish to show the plots along side the image. Unfortunately whichever method I call last clobbers (leaves blank axes) for the previously called method. To illustrate: fig, axs = pylab.subplots(10, 4, sharex=True, sharey=True)

Re: [Matplotlib-users] Using imshow() and plot() in the same figure

2011-09-04 Thread Adam Davis
, Adam Davis wrote: I have a figure with a number of plots that analyze a source image. I wish to show the plots along side the image. Unfortunately whichever method I call last clobbers (leaves blank axes) for the previously called method. To illustrate: fig, axs = pylab.subplots(10