contour plot of existing data

Hi all. How do i draw a contour plot of my existing data. I have x,y,z. One solution is to use Surface Fitting Toolbox, but there i can not add label to the contour. Thanks.

 Accepted Answer

Fangjun Jiang
Fangjun Jiang on 6 Aug 2011
what about contour()?

5 Comments

i want to put labels on contour levels
oh, i could put labels on contour levels, but these labels are so litle and unreadable. how do i can set background color to them??
The background color of the label, or the contour figure?
Get the handle of the label and set the background color.
handle=clabel(...);
get(handle(1),'backgroundcolor');
set(handle(1),'backgroundcolor','green');
You can also specify 'labelspacing' when calling clabel().

Sign in to comment.

More Answers (0)

Categories

Tags

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!