Can't plot reference line in pcolor-plot with logarithmic y-axis
Show older comments
I have code similar to:
h = pcolor(rand(100, 100));
h.EdgeColor = 'none';
line([30 30], [0 100], 'Color', 'red');
set(gca, 'YScale', 'log');
This should plot some random values and draw a vertical line at x = 30. When i debug the code it works until i scale the y-axis, then the line disappears.
Can anyone help me out?
Accepted Answer
More Answers (0)
Categories
Find more on Graphics in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!