<div dir="ltr"><div>The following approach should make an approximation of your sample plot.</div><div><br></div><div>1.  Compute a local density score for each point in your scatter plot.  For a first try, simply loop through all the points.  For each point, count the number of other points within overlapping distance in X/Y plot space from the current point.  My initial guess on the distance would be 1/2 marker diameter, i.e. 1 radius, but perhaps a little larger.  This will need a little experimentation.</div><div><br></div><div>2.  Make the scatter plot in the usual way, except color each marker according to its density score.  Start by selecting a color scale similar to that sample plot.</div><div><br></div><div>Caveat, use only solid color markers.  If your markers have fixed color outlines, a normal feature of some NCL markers, the outline color will defeat this density coloring scheme.  If you are stuck with dual colored markers, just make the outline color the same as the interior.</div><div><br></div><div>--Dave</div><div><br></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Aug 16, 2019 at 4:13 PM MELISSA KAZEMI RAD via ncl-talk <<a href="mailto:ncl-talk@ucar.edu">ncl-talk@ucar.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div style="font-family:georgia,serif">Hi Rick,</div><div style="font-family:georgia,serif"><br></div><div style="font-family:georgia,serif">I don't have any problem  plotting the scatter plot or changing the translucency of the points. However, it doesn't have the desired visual effect that I want, plus I am asked to overlay a heatmap contour plot of the density of the point by journal reviewer, and that's what I couldn't figure out how to do.</div><div style="font-family:georgia,serif"><br></div><div style="font-family:georgia,serif"> I appreciate your help.</div><div style="font-family:georgia,serif"><br></div><div style="font-family:georgia,serif">Melissa</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Aug 16, 2019 at 5:26 PM Rick Brownrigg <<a href="mailto:brownrig@ucar.edu" target="_blank">brownrig@ucar.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div>Hi Melissa,</div><div><br></div><div>You might try making the markers somewhat translucent to reduce their overall visual impact.See the resource gsMarkerOpacityF at:</div><div><br></div><div><a href="http://ncl.ucar.edu/Document/Graphics/Resources/gs.shtml" target="_blank">http://ncl.ucar.edu/Document/Graphics/Resources/gs.shtml</a></div><div><br></div><div>I might start with a value of 0.5 and decrease or increase to get the right effect.</div><div><br></div><div>Hope that helps...</div><div>Rick<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, Aug 16, 2019 at 2:48 PM MELISSA KAZEMI RAD via ncl-talk <<a href="mailto:ncl-talk@ucar.edu" target="_blank">ncl-talk@ucar.edu</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div style="font-family:georgia,serif">Hi,</div><div style="font-family:georgia,serif"><br></div><div style="font-family:georgia,serif">I'd like to overlay a contour over a scatter plot that reflects density of respective data points, something like a heatmap. The scatter plot that I have is so dense that it's almost impossible to have a sense of how scattered the data points actually are.</div><div style="font-family:georgia,serif">I looked for examples, but none were what I am looking for. I am looking for something like the attached plot.</div><div style="font-family:georgia,serif"><br></div><div style="font-family:georgia,serif">Thanks,</div><div style="font-family:georgia,serif">Melissa</div></div></blockquote></div></blockquote></div></blockquote></div></div>