Message Boards Message Boards

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

Color Scaling in ListDensityPlot

Posted 10 years ago

I am trying to plot a very large list of data but in such a manner that beyond certain limit it should hit the roof and give same color even if the number is much higher then the limit. How can I do it? My list has a structure {{x,y,f}, ... } . Thanks.

POSTED BY: Al Guy
2 Replies
Posted 10 years ago

The simplest way is to plot the rest and use ClippingStyle - > color for your roof.

data = Table[{x = RandomReal[{-1, 1}], y = RandomReal[{-1, 1}],   Exp[10 (-x^2 - y^2)]}, {1000}];

ListDensityPlot[data, PlotRange -> {0, .6}, ClippingStyle -> Red]

enter image description here

POSTED BY: Kuba Podkalicki
Posted 10 years ago

Thanks!

POSTED BY: Al Guy
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