No symbol in legend when using point
Reported by Anders Sneckenborg
graph.gif (10.25 KB, image/gif)
graph showing the lack of a point in the legend
When making a plot with "point" (no line) no symbol is shown in the legend. If using other symbols (circle, cross etc) they show up in the legend.
The problem can be seen when running the code below.
//-----------------
x=0:0.1:6;
y=sin(x);
px = [ 0.2 1.0 4.0 5.0];
py = [ 0.2 0.7 0.7 -0.4];
plot(x,y,'b-');
plot(px,py,'r.');
legend( 'function', 'points' );
//-----------------
I enclose a graph showing the lack of a point in the legend.
/Anders