Info
This question is closed. Reopen it to edit or answer.
How can I change the drawing order of grid lines and datatips?
1 view (last 30 days)
Show older comments
I noticed that when I do a mesh plot with grid lines and use the data cursor, the grid lines are drawn above the datatip. I see this behaviour in both Matlab 2012a and 2014a.
Here is some example code for creating the figure, add the data cursor by hand:
[XX, YY] = meshgrid(0:0.1:10, 0:0.1:10);
ZZ = sin(XX) + cos(YY);
figure
contour(X,Y,ZZ);
grid on
Is there any way to change the drawing order, such that first the data is drawn, then the grid and then the datatip?
0 Comments
Answers (0)
See Also
Products
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!