Hi,
rather than the previous manual definition of the text postioins, I find a
more general/decent way:
yloc=(cbar.values-cbar.boundaries[0])/(cbar.boundaries[-1]-cbar.boundaries[0])
for l,y in zip(cbar_label,yloc):
cbar.ax.text(1,y,l,transform=cbar.ax.transAxes,ha='left',va='center')
Chao
2012/12/4 Pierre Haessig
> I just edited your file :
> https://gist.github.com/4203760
>
> I made 2 changes:
> * added a call to random.seed to make you code reproductible.
> * altered the call to set_clip_on(False). It should be called on the
> Line2D object returned by plot()
>
> I think it s
On 4 December 2012 17:20, Goyo wrote:
> 2012/12/4 Tristan Strange :
> > - I'd like each of the ticks on the x axis centred beneath each of the
> bars.
> exp(0.1 + np.log(y))
> I'm not sure I understand this. align=center might be what you want.
This is exactly what I was after.
>
> > - I'd li
2012/12/4 Tristan Strange :
> Hi all,
>
> I'm just getting started with matplotlib and am having a few problems
> producing a simple bar graph. The code I'm writing to produce this can be
> found here: http://pastebin.com/T0WA2dh8
>
> The issues I'm having are as follows:
>
> - The bars in my graph
Hi all,
I'm just getting started with matplotlib and am having a few problems
producing a simple bar graph. The code I'm writing to produce this can be
found here: http://pastebin.com/T0WA2dh8
The issues I'm having are as follows:
- The bars in my graph do not show as filled blue after I make th
Hi,
Le 29/11/2012 20:42, Vilson Vieira a écrit :
> I tried the no_clip function but it didn't worked:
> https://gist.github.com/4171341
I just edited your file :
https://gist.github.com/4203760
I made 2 changes:
* added a call to random.seed to make you code reproductible.
* altered the call t