[Scilab-users] legend lets disappear my plot

RudiLehn rudolf.lehn at sfz-bw.de
Fri Jun 8 14:08:38 CEST 2018


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



More information about the users mailing list