Hi

 I'm using the following code for insert a scatter plot in a figure in Qt.

vmin=min(r_time[:])
vmax=max(r_time[:])
valores=np.arange(vmin,vmax+1)
a1=self.ui.axes4.scatter(r_east,r_nort,vmin=vmin,vmax=vmax,c=r_time,edgecolors="none")
b1=self.ui.fig2.colorbar(a1,values=valores,format="%.3f",spacing="uniform")

The plot is ok and and the colors in the colorbar are ok, but for
some reason the  ticks are missing. I tried

b1=self.ui.fig2.colorbar(a1,values=valores,ticks=valores,format="%.3f",spacing="uniform")

but still the ticks doesn't appear.

How can I get the ticks in the colorbar?

Thanks

German

------------------------------------------------------------------------------
ThinkGeek and WIRED's GeekDad team up for the Ultimate 
GeekDad Father's Day Giveaway. ONE MASSIVE PRIZE to the 
lucky parental unit.  See the prize list and enter to win: 
http://p.sf.net/sfu/thinkgeek-promo
_______________________________________________
Matplotlib-users mailing list
Matplotlib-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/matplotlib-users

Reply via email to