Hi Everyone,
First I must cryout a little bit Why colorbar is always so tricky ???
I’m trying to fine tune the colorbar of my contour plots.
I would like to do the following things:
- remove the box around it
- hide the xticks
- make the lines with the indicating colors with custom widths
so far I succeeded only with task 2 !
here is what I did:
cs=axs[4].contour(x,y,phcr1t,linestyles=‘solid’,cmap=cm.jet_r)
a=fig.colorbar(cs,ax=axs[4],orientation=‘horizontal’)
ticks = a.ax.get_xticklines()
#print getp(a.ax)
for tick in ticks:
setp(tick,alpha=0)
Would be great if someone could tell me how to do the 2 other things …
Many thanks
···
–
Oz Nahum
Graduate Student
Zentrum für Angewandte Geologie
Universität Tübingen
Imagine there’s no countries
it isn’t hard to do
Nothing to kill or die for
And no religion too
Imagine all the people
Living life in peace