Lines vanishing on plot when rescaling axes
1 view (last 30 days)
Show older comments
I am plotting four lines. When they are first plotted, they are all visible. However, after the axes are rescaled, one of the lines disappears. My code and the before and after rescalings can be seen below.
.
plot(xdata, ydata1, 'k')
hold on
plot(xdata, ydata2, '--k')
plot(xdata, ydata3, 'r')
plot(xdata, ydata4, '--r')
legend("1", "2", "3", "4")
xlim([0 0.3])
test1.jpg is before the rescaling, test2.jpg is after the rescaling.
0 Comments
Answers (1)
See Also
Categories
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!