Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TugboatEng on being selected by the Eng-Tips community for having the most helpful posts in the forums last week. Way to Go!

Coloring Contour plots

Status
Not open for further replies.

jeffpr

Materials
Joined
Jul 10, 2005
Messages
2
Location
CA
I have a contour plot in 3D that I want to fill in, so I can use contourslice to display it and chose the number of contour lines, but there are still gaps in the plot, space that I want to fill in. I have my colormap set and caxis set so the corresponding data in the array is assigned the color I want. Increasing the linewidth helps it fill in but it distorts the rest of the plot and doesn't fill in all the gaps.
So I have the lines:

isochrone = contourslice(v1,[],[],[100],125);
set(isochrone,'LineWidth',2);
colormap(colors);
caxis([0 150]);

I want a command like contourf for my data, but it doesn't allow you to display a colormap for the data points, its automatically set by Matlab. Is there some command that I can generate a contour plot with and have the lines filled in, or do some interpolation with my data and have matlab fill in the color between contour lines. Thanks for your help.

Jeff
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top