[Scilab-users] Changing ticks, location, and labels of a colorbar in a sgrayplot

Samuel Gougeon sgougeon at free.fr
Wed Aug 14 21:58:35 CEST 2013


Le 14/08/2013 15:25, matacosta a écrit :
> .../...
> colorbar(cmin,cmax,,fmt="%.0f"); //actually I am not familiar neither with
> the fmt formatting
>
> fig = gcf();
>      a1 = fig.children(1); //is this ok?
after colorbar(..), you may rather use:
cb = gce();
and then work with the cb handle.
>      a1.font_size = 4; //this works fine
>      a1.auto_ticks(3)="off"; //here I am not sure if I should take the
> colorbar as the z axis?
no, it is the y axis
>      a1.z_ticks=tlist(["ticks","locations","labels"]) //starting from here I
> always get errors since I am not familiar how to finish the tlist
cb.y_ticks =  tlist(["ticks","locations","labels"], YL, TL)

where YL is a column vector of positions (Z values), and TL is a column
vector of texts: the respective labels.

HTH

Samuel



More information about the users mailing list