Re: [Matplotlib-users] drawing horizontal line on bar chart

2013-06-29 Thread mdekauwe
Yes and no. My understanding of stacked bars is the bar stacked on top is always larger than the one below. I am trying to show how much the second bar explains of the first bar. In my case though it is possible the second bar is larger than the first. As a consequence you wouldn't see both bars an

Re: [Matplotlib-users] plot axis and legend without anti-aliased lines

2013-06-29 Thread klo uo
Thanks Paul, that solved the problem. matplotlib.rcParams['axes.linewidth'] = 0.5 matplotlib.rcParams['patch.linewidth'] = 0.5 is what I wanted and I'll put that in matplotlibrc. Previously I thought that this is related to some anti-aliasing setting that would affect all lines drawn. Bu

Re: [Matplotlib-users] plot axis and legend without anti-aliased lines

2013-06-29 Thread Paul Hobson
You need to thin out the default line widths in your matplotlibrc file. Something like: import matplotlib matplotlib.rcParams['axes.linewidth'] = 0.5 matplotlib.rcParams['lines.linewidth'] = 0.5 ...if you don't want to edit your matplotlibrc file. Hope that helps, -paul On Sat, Jun 29, 2013 at

Re: [Matplotlib-users] drawing horizontal line on bar chart

2013-06-29 Thread Benjamin Root
This kind of sounds like stack plots, but I am not quite sure. Cheers! Ben Root On Jun 29, 2013 1:45 AM, "mdekauwe" wrote: > Hi, > > I am plotting overlapping bars in a bar chart. In some places one bar > overlaps the other so I would like to draw a horizontal line to show where > the underlying

[Matplotlib-users] plot axis and legend without anti-aliased lines

2013-06-29 Thread klo uo
This code: import matplotlib.pyplot as plt plt.plot([1,2,5,3,4], label='line') plt.legend() plt.show() shows this image: http://i.imgur.com/KMPywSp.png I want axis and legend box with 1px line, like this: http://i