help-octave
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How do you get "indexed contour" / thick contour at intervals among


From: rmt1
Subject: Re: How do you get "indexed contour" / thick contour at intervals among thin contours?
Date: Mon, 26 Aug 2013 02:15:22 -0700 (PDT)

I've kept researching and reverse engineering this from other help forum
solutions, in this case,
http://octave.1599824.n4.nabble.com/contour-plot-still-need-help-td1628551.html#a1628552.
My code now does provide a bolded contour to mark intervals in addition to
fine-lined smaller intervals. Problem is the bolded contour does not match
up in value with those divisions of 60 in the contourf(X,Y,Z,60). How do I
force the 60 to match the v vector?

core=2.0;increment=0.1;
load XYZ;x=XYZ(:,1);y=XYZ(:,2);z=XYZ(:,3);
[X,Y]=meshgrid(-core:increment:core,-core:increment:core);
Z=griddata(x,y,z,X,Y);
v=[-3.00:0.1:+3.00];
hold on;
[C,h]=contourf(X,Y,Z,60);
[c,h]=contour(X,Y,Z,v,'LineWidth',2.0,'k-');
clabel (c, h, v, "fontsize", 12);

<http://octave.1599824.n4.nabble.com/file/n4656808/contourproblem2.jpg> 



--
View this message in context: 
http://octave.1599824.n4.nabble.com/How-do-you-get-indexed-contour-thick-contour-at-intervals-among-thin-contours-tp4656807p4656808.html
Sent from the Octave - General mailing list archive at Nabble.com.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]