NMeshSurfaceSeries contours


Author
Message
Charlie Penny
Charlie Penny
Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)Forum Newbie (0 reputation)
Group: Forum Members
Posts: 0, Visits: 31
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
Nevron Support
Nevron Support
Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)Supreme Being (4.5K reputation)
Group: Administrators
Posts: 3.1K, Visits: 4.2K
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.


Best Regards,
Nevron Support Team


Simon Woolhead
Simon Woolhead
Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)Forum Newbie (1 reputation)
Group: Forum Members
Posts: 1, Visits: 3
We are having the same issue - we want to specify custom contour lines for an NMeshSurfaceSeries. Currently we use an NPalette with a large number of value-color pairs to show a smooth gradient of several colours, but we only want to show a small number of contours. If we only specify the colours at the required contour levels, the colour shading will not be correct. Is there any other way to manually specify the contour line values than by restricting the palette values?
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search