[Scilab-users] do not manage to show text labels along the x-axis
Heinz Nabielek
heinznabielek at icloud.com
Wed Oct 4 12:37:21 CEST 2017
Neat. Thanks a lot. Heinz
On 04.10.2017, at 11:37, Jean-Yves Baudais wrote:
> Hello,
>
>
> Le 04/10/2017 à 11:16, Heinz Nabielek a écrit :
>> Monte-Carlo simulating blood types in Austria was easy in Scilab, but I do not manage to show text labels along the x-axis. Text would be:
>> blood=['0+' 'A+' 'B+' 'AB+' '0-' 'A-' 'B-' 'AB-']
>> and the diagram should look similar to my attached EXCEL.
>
> To change the axes labels (and location) see "axes properties". For exemple
>
> x=1:8;
> p=[0.3 0.37 0.12 0.05 0.06 0.07 0.02 0.01];
> blood=['0+' 'A+' 'B+' 'AB+' '0-' 'A-' 'B-' 'AB-'];
> scf(0);clf(0),plot(x,p,'-*b')
> f=gca();
> f.x_ticks=tlist(["ticks" "locations", "labels"],x,blood);
>
>
> Jean-Yves
> _______________________________________________
> users mailing list
> users at lists.scilab.org
> http://lists.scilab.org/mailman/listinfo/users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.scilab.org/pipermail/users/attachments/20171004/008e8a04/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PastedGraphic-2.tiff
Type: image/tiff
Size: 33762 bytes
Desc: not available
URL: <https://lists.scilab.org/pipermail/users/attachments/20171004/008e8a04/attachment.tiff>
More information about the users
mailing list