[Scilab-users] legend lets disappear my plot

Jonas jonas.vieira.de.souza at gmail.com
Fri Jun 8 14:13:35 CEST 2018


Put your legend(...)  after plot2d(...)

.

Jonas Vieira de Souza ** Graduating in electronic engineering*

jonas.vieira.de.souza at gmail.com

+55(48)9.9944-3117


Em sex, 8 de jun de 2018 às 09:09, RudiLehn <rudolf.lehn at sfz-bw.de>
escreveu:

> Hi friends with scilab,
> in many plots I can without problems put a legend in my graphic. But now I
> made plot, which doesn't accept anymore the legend? I make from my
> complicate math a subset with a very simple result and show here the
> program
> with the legend problem:
>
> clear; // Variablen löschen
> clf(); // bisherige Grafik löschen
> alpha = [0: %pi/100 : %pi/2]
> // Teilterme
> sina = sin(alpha)^2;
> // Legende zum Schaubild
> legend("$R_p \cdot R_p^*$",2);
> a = gca();
> a.grid = [1,1];
> a.x_location = "origin";
> a.y_location = "origin";
> a.auto_scale="off";
> a.data_bounds = [0,0; %pi/2, 0.5];
>
> Rp2 = sin(alpha) * 0.1;
> plot2d(alpha,Rp2)
>
> What could be wrong with the script?
>
> Thanks for help
>
> Regards
> Rudi
>
>
>
> --
> Sent from:
> http://mailinglists.scilab.org/Scilab-users-Mailing-Lists-Archives-f2602246.html
> _______________________________________________
> 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/20180608/7b87c399/attachment.htm>


More information about the users mailing list