[Scilab-users] ticks labels with coma instead of dot for decimal separator

grivet grivet at cnrs-orleans.fr
Wed May 18 11:43:59 CEST 2016


Thank you Samuel: your suggestion works like a charm  (and also for 
inserting the correct subject heading).
JP Grivet

> Hello,
>
> As far as i know, gca().ticks_format does not allow to change the decimal separator.
> However, you can post-process default labels with strsubst():
>
> x = linspace(0,2,100);
> plot(x, sin(x))
> ax = gca();
> ax.x_ticks.labels = strsubst(ax.x_ticks.labels,".",",");
> ax.y_ticks.labels = strsubst(ax.y_ticks.labels,".",",");
> ax.font_size = 3;
>
> HTH
> Samuel Gougeon
> _______________________________________________
> users mailing list
> users at lists.scilab.org
> http://lists.scilab.org/mailman/listinfo/users





More information about the users mailing list