Drawing boundary lines in contour plot
Hi!
I am creating a contour plot which I have attached. The data comes from a matrix named OPT that contains the values that I have plotted over the matrices Vfvec and rvec. The white areas of the plot come from the fact that OPT contains many NaN values, as it should.
What I would like to do is to make it more clear where the boundary of the contour plot is. Basically, I would like to draw a line connecting the ends of the contour lines on each side, so that it becomes very clear which part of the plot contains numerical values and which doesnt. I could also do this by just adding more lines to the plot, but then the contour labels rendered using clabel become messy. The do not appear as integers, and there are way too many of them.
So can someone explain either how can accomplish the first part (connecting the boundaries), or alternatively add more contour lines but controlling clabel properties to be integers and spaced manually?
Any other methods that you know for presenting the data in a proper way would be appreciated.
h=mesh(Vfvecq,rvecq,OPTq); grid off view(2) set(h,'linestyle','none')
[C,h]=contour(Vfvecq, rvecq, OPTq,'Color','k','ShowText','on'); clabel(C,h,... 'FontUnits','points',... 'FontWeight','normal',... 'FontSize',9,... 'FontName','Times')
2 commentaires
Réponses (0)
Voir également
Catégories
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!