MATLAB: Am I not able to see all of the markers when I use PLOT

markerMATLABplotvisible

I create a line with two points, and markers. For certain combinations, I am unable to see one of the markers. For example, consider the plots produced by:
figure;
plot([0,0],[0,30],'o-');
figure;
plot([0,0],[0,300],'o-');
I am unable to see both markers in the first plot, but not the second.
In the first plot, axes are scaled so that both markers are visible, in the second only one marker is visible.

Best Answer

We have verified that there is a bug in MATLAB 7.0 and earlier versions related to how MATLAB determines which markers to draw when they are located at the edge of an axes.
As a workaround, specify slightly larger axes limits after plotting the line, so the marker is visible:
figure;
plot([0,0],[0,300],'o-');
set(gca,'YLim',[-1 301]);