Message Boards Message Boards

0
|
4679 Views
|
2 Replies
|
0 Total Likes
View groups...
Share
Share this post:

Smoothen the contours with InterpolationOrder in ListContourPlot?

Posted 5 years ago

Hi,

In the ListContourPlot example below, I am trying to smoothen the contours by using the function InterpolationOrder with different numerical values, but it is not making any impact on the roughness of the contours.

Will appreciate any help. Thanks

XX = {{0., 0., 14}, {0., 0., 2}, {0.149508, 0.076178, 7}, {0.153488, 
    0.0498713, 7}, {0.156435, 0., 4}, {0.302952, 0.0984348, 
    7}, {0.309017, 0., 4}, {0.444473, 0.144418, 7}, {0.451668, 
    0.0715374, 7}, {0.453991, 0., 4}, {0.574342, 0.186615, 
    8}, {0.584501, 0.0925761, 7}, {0.587786, 0., 4}, {0.689152, 
    0.223919, 8}, {0.702713, 0.111299, 7}, {0.707107, 0., 4}};
ListContourPlot[XX, ColorFunction -> "TemperatureMap", 
 PlotLegends -> 
  Placed[BarLegend[{17, 34, 51, 67}, 
    LegendMargins -> {{0, 0}, {10, 5}}, LegendLabel -> "% output", 
    LegendMarkerSize -> 150, 
    LabelStyle -> {Italic, Bold, FontSize -> 15, 
      FontFamily -> "Helvetica"}], {{0.1, 0.5}, {0.1, 0.1}}], 
 Frame -> False, BoundaryStyle -> {Black, Thick}, 
 InterpolationOrder -> 3]
POSTED BY: S G
2 Replies
  • There is an issue with you data: {{0., 0., 14}, {0., 0., 2}, ... is a contradiction.
  • Apart from this - if you try an interpolation, you get the message:

enter image description here

The same seems to hold for ListContourPlot.

POSTED BY: Henrik Schachner
Posted 4 years ago

Thanks for your response and pointing out the error in data set ! Even after removal of bad data point, I am not able to get any change in roughness by using Interpolation order 1.

Attached picture has my real data and I want to remove this wavy boundary between two regions. How can I do it. Any option other than Interpolationorder function ? Cheers.

Attachments:
POSTED BY: S G
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract