[ncl-talk] question about gsn_csm_xy

Dave Allured - NOAA Affiliate dave.allured at noaa.gov
Thu May 26 08:00:55 MDT 2022


Check your settings for xyMarkLineMode and/or xyMarkLineModes.  If either
is set to "MarkLines", then you are drawing lines as well as markers.  This
is one possible explanation for longer run time and apparent increased
density.  In this case, I would suggest just use "Markers" for what I
assume is a rather high density scatter plot.


On Thu, May 26, 2022 at 6:59 AM Dave Allured - NOAA Affiliate <
dave.allured at noaa.gov> wrote:

> My interpretation of the function documentation is that a single "curve"
> will be drawn for 1-D arrays,  and multiple "curves" will be drawn for 2-D
> arrays.  So you are basically comparing two different kinds of plots.
>
> If you are plotting markers only, then I would expect the two plots to be
> about the same.  But there could easily be visible effects that are due to
> minor differences between the two plot modes, such as the way that
> overlapping markers are handled.  I do not have a better explanation for
> your density effect.
>
>
> On Wed, May 25, 2022 at 9:49 AM Manisha Ganeshan via ncl-talk <
> ncl-talk at mailman.ucar.edu> wrote:
>
>> Hello,
>>
>> I have two 2D arrays that I'm plotting as a scatter plot using gsn_csm_xy.
>> If I convert them to 1D arrays using ndtooned, the plotting program runs
>> a bit longer and the markers appear more densely packed. Other than that,
>> the scatter plots appear the same.
>> I'd like to know if I should expect any difference in the plots?
>>
>> Thanks,
>> Nisha
>>
>> --
>> Dr. Manisha Ganeshan
>> Morgan State University
>> Maryland, U.S.A.
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.ucar.edu/pipermail/ncl-talk/attachments/20220526/966eecc6/attachment.htm>


More information about the ncl-talk mailing list