×
INTELLIGENT WORK FORUMS
FOR ENGINEERING PROFESSIONALS

Log In

Come Join Us!

Are you an
Engineering professional?
Join Eng-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Eng-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

Coloring Contour plots

Coloring Contour plots

Coloring Contour plots

(OP)
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

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Eng-Tips Forums free from inappropriate posts.
The Eng-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Eng-Tips forums is a member-only feature.

Click Here to join Eng-Tips and talk with other members!


Resources