[Scilab-users] Legend of markers in Plot3d
linebergmann
enggaard.li at gmail.com
Wed May 15 15:44:26 CEST 2013
I am trying to do a solubility plot of a salt where I have two independent
variables (temperature and pressure). Thus it is a 3d scatter plot. I have
figured out how to make different styles of markers and different colors.
But I would really like to have a legend where the marker was shown next to
the series name.
When I tried legends I got a line and only the first series name. Then I
tried legend, but that does only give me an error:
!--error 10000
legend: No 'Polyline' handle found.
at line 73 of function legend called by :
legend(['error1';'error2'],"in_lower_left");
And I cant figure out what the polyline handle is or how to apply it. Any
ideas?
I have written this
T02=[224 223 253 253 171 167 118 98 98.5 100 149 150 245 245 246 245];
P02=[134 126 124 128 12 8 5 478 492 492 500 500 502 482 106 103];
C02=[71 69 58 57 77 76 84 106 108 113 115 121 88 92 58 62];
T4=[96.5 94.5 95.5 94 96 95 153 153 152.5 152.5 151 152 202 202 203 203
202.5 200 200];
P4=[520 480 500 106 106 92 560 512 492 500 500 505 456 500 507 498 499 470
492];
C4=[324 311 307 260 265 255 530 510 500 530 520 490 690 730 760 690 740 730
640];
plot3d(T02,P02,C02);
e02=gce();
e02.surface_mode = "off";
e02.mark_mode = "on";
e02.mark_size = 5;
e02.mark_style = 14;
e02.mark_foreground = 3;
e02.mark_background =2;
plot3d(T4,P4,C4);
e4=gce();
e4.surface_mode = "off";
e4.mark_mode = "on";
e4.mark_size = 5;
e4.mark_style = 3;
e4.mark_foreground = 6;
e4.mark_background =7;
xlabel(["Temperature";"(Celsius)"]);
ylabel(["Pressure";"(bar)"]);
zlabel(["Concentration";"mikromoles/kg H2O"]);
tight_limits = "on";
set(gca(),"data_bounds",[0,-10,0;300,600,800]);
legend(['error1';'error2'],"in_lower_left");
--
View this message in context: http://mailinglists.scilab.org/Legend-of-markers-in-Plot3d-tp4026703.html
Sent from the Scilab users - Mailing Lists Archives mailing list archive at Nabble.com.
More information about the users
mailing list