NMeshSurfaceSeries contours


https://www.nevron.com/Forum/Topic13128.aspx
Print Topic | Close Window

By Charlie Penny - 4 Years Ago
Hello,

We are using NMeshSurfaceSeries to make contour plots and want to change the number of contours on a given a plot. Unfortunately we can't find an option(s) which will let us control this. Is this something which is currently supported?

Kind Regards,

Charlie
By Nevron Support - 4 Years Ago
Hi Charlie,

The contour lines on the mesh are produced at the palette levels associated with the surface. For example, to generate contour lines at custom specified values you can use a custom palette:

surface.FrameMode = SurfaceFrameMode.Contour;
surface.Palette.Mode = PaletteMode.Custom;
surface.Palette.Add(0, Color.Red);
surface.Palette.Add(0.1, Color.Green);
surface.Palette.Add(0.2, Color.Blue);
surface.Palette.Add(0.3, Color.Yellow);

Alternatively, you can use an automatic palette with a specified number of steps:

surface.FrameMode = SurfaceFrameMode.Contour;
surface.Palette.Mode = PaletteMode.AutoFixedEntryCount;
surface.Palette.PaletteSteps = 10;

We hope this helps - let us know if you have any questions.