Paletted Fill Issues on Surface with Contours

Found a possible bug in LightningChart? Report it here.

Moderator: Queue Moderators

Post Reply
ShawnCG
Posts: 57
Joined: Tue Oct 15, 2013 8:31 pm

Paletted Fill Issues on Surface with Contours

Post by ShawnCG » Sat Dec 07, 2013 1:04 am

Here is a behavior that I have not been able to find a good solution for. Take the following modification to the ExampleSimpleSurfaceGrid3D class in the LightningChart demo.

Code: Select all

// dY = 35.0 + 30.0 * Math.Sin(0.01 * (double)(iNodeX * iNodeZ));
dY = 0.25 + 0.1 * Math.Sin(0.01 * (double)(iNodeX * iNodeZ));
Also, change the contour palette to have the following values: 0.2, 0.25, 0.3, 0.35. And set the min value for the contour palette to 0.15.

If the surface is displayed with Fill=Paletted and ContourLineType = None, I get the following (correct) plot:
PalettedSurface_NoContours (800x434).jpg
PalettedSurface_NoContours (800x434).jpg (187.48 KiB) Viewed 8508 times
If I turn contours on by setting ContourLineType to ColorLine or PalettedLine, I get something like the following:
PalettedSurface_WithContours (800x424).jpg
PalettedSurface_WithContours (800x424).jpg (179.74 KiB) Viewed 8508 times
Is this the correct behavior or a bug? I don't understand why the surface fill becomes different due to the contours being displayed.

User avatar
ArctionPasi
Posts: 1367
Joined: Tue Mar 26, 2013 10:57 pm
Location: Finland
Contact:

Re: Paletted Fill Issues on Surface with Contours

Post by ArctionPasi » Sat Dec 07, 2013 12:43 pm

Thanks for reporting this. It really is a bug, we just haven't noticed ourselves because we have used larger data values. :roll:

There's a workaround: set FastContourZoneHeight = 0. Then palette fill with contour lines work.

We'll fix this in our next maintenance release.
LightningChart Support Team, PT

ShawnCG
Posts: 57
Joined: Tue Oct 15, 2013 8:31 pm

Re: Paletted Fill Issues on Surface with Contours

Post by ShawnCG » Mon Dec 09, 2013 5:21 pm

Thanks! Your workaround worked for me.

Post Reply