[ncl-talk] Unexpected Results in Scatterplot

Dave Allured - NOAA Affiliate dave.allured at noaa.gov
Mon Aug 12 18:58:49 MDT 2019


The X and Y arguments to gsn_csm_xy should have conforming dimensions.  You
have one as a 1-D array, and the other as 2-D, and twice as many elements
if I am not mistaken.

Also, I believe that res at xyMarkLineModes should also be an array conforming
to the X and Y argument dimensions.  You have only an array of size 2.
There is an exception for a short array, but I don't think that is what you
are trying to do.


On Mon, Aug 12, 2019 at 6:30 PM Zach Rieck via ncl-talk <ncl-talk at ucar.edu>
wrote:

> To Whom it May Concern-
>
> I have a plot that I am trying to generate of 5 different data sets I have
> compiled in other codes. I have reviewed the data, and everything looks
> great, but I think that I am making some sort of mistake that I can't find.
> What I am trying to make is a plot with all 5 data sets in scatterplot,
> fitted with a regression line. I am fairly certain the line will not be a
> great fit, but it looks like the data is getting plotted in columns somehow
> rather than how I had intended.
>
> I realize the focus for this forum is syntax rather than scientific data,
> but I am fairly certain I made an error with my plotting function rather
> than have a set of bad data. I've attached my code and that plot so you can
> see what I'm talking about.
>
> Thanks again for all your help, and if I can clarify anything better
> please let me know!
>
> Respectfully,
>
> -Zach Rieck
> zrr817 at gmail.com
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20190812/9b7c17de/attachment.html>


More information about the ncl-talk mailing list