<div dir="ltr"><div class="gmail_default" style="font-size:small">I'm not sure exactly what you are trying to plot. The transpose array simply takes a 2D array and swaps its dimensions. It looks like you are passing four 3D arrays to it, which doesn't really make sense.</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">How exactly are you trying to plot c1, c2, c3, and c4? </div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">If you are trying to plot c1 versus c3, and c2 versus c4, then I recommend creating two separate plots and then overlaying them with "overlay". Something like this:</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small"><font face="monospace, monospace">plot1 = gsn_csm_xy(wks,transpose(c1(:,:,0),transpose(c3</font><span style="font-family:monospace,monospace">(:,:,0)</span><span style="font-family:monospace,monospace">),res)</span></div><div class="gmail_default" style="font-size:small"><font face="monospace, monospace">plot2 = gsn_csm_xy(wks,transpose(c2</font><span style="font-family:monospace,monospace">(:,:,0)</span><span style="font-family:monospace,monospace">),transpose(c4</span><span style="font-family:monospace,monospace">(:,:,0)</span><span style="font-family:monospace,monospace">),res)</span></div><div class="gmail_default" style="font-size:small"><font face="monospace, monospace">overlay(plot1, plot2)</font></div><div class="gmail_default" style="font-size:small"><font face="monospace, monospace">draw(plot1)</font></div><div class="gmail_default" style="font-size:small"><font face="monospace, monospace">frame(wks)</font></div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">Note the "(:,:,0)" subscripting is necessary, because these are 3D arrays (360 x 90 x 1)</div><div class="gmail_default" style="font-size:small"><br></div><div class="gmail_default" style="font-size:small">--Mary</div><div class="gmail_default" style="font-size:small"><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Mar 4, 2015 at 3:41 PM, Vanúcia Schumacher <span dir="ltr"><<a href="mailto:vanucia-schumacher@hotmail.com" target="_blank">vanucia-schumacher@hotmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><div dir="ltr"><font face="Calibri,sans-serif" color="#000000" style="font-size:16pt">Hi users,</font><div style="line-height:21.2999992370605px"><font face="Calibri,sans-serif" color="#000000" style="line-height:normal;font-size:16pt"><br style="line-height:30.2933349609375px"></font></div><div style="line-height:21.2999992370605px"><div style="line-height:29.8199996948242px;font-size:21px">I would like to plot a graph of correlation between models (x axis) and reanalysis (y axis), but when I use: plot = gsn_csm_xy (wks,transpose((/c1,c2/)),((/c3,c4/)),res) from example scatter.7.ncl returns the error:</div><div style="line-height:29.8199996948242px;font-size:21px"><br style="line-height:29.8199996948242px"></div><div style="line-height:21.2999992370605px"><div style="line-height:21.2999992370605px"><span style="line-height:29.8199996948242px;font-size:21px">fatal:Number of subscripts do not match number of dimensions of variable,(2) Subscripts used, (3) Subscripts expected</span></div></div><div style="line-height:29.8199996948242px;font-size:21px"><br style="line-height:29.8199996948242px"></div><div style="line-height:29.8199996948242px;font-size:21px">outputs correlations are:</div></div><div style="line-height:29.8199996948242px;font-size:21px"><br style="line-height:29.8199996948242px"></div><div style="line-height:21.2999992370605px"><div style="line-height:21.2999992370605px;color:rgb(68,68,68);font-size:15px;background-color:rgb(255,255,255)"><span style="line-height:29.8199996948242px;font-size:21px">Variable: c1</span></div><div style="line-height:21.2999992370605px;color:rgb(68,68,68);font-size:15px;background-color:rgb(255,255,255)"><span style="line-height:29.8199996948242px;font-size:21px">Type: double</span></div><div style="line-height:21.2999992370605px;color:rgb(68,68,68);font-size:15px;background-color:rgb(255,255,255)"><span style="line-height:29.8199996948242px;font-size:21px">Total Size: 259200 bytes</span></div><div style="line-height:21.2999992370605px;color:rgb(68,68,68);font-size:15px;background-color:rgb(255,255,255)"><span style="line-height:29.8199996948242px;font-size:21px"> 32400 values</span></div><div style="line-height:21.2999992370605px;color:rgb(68,68,68);font-size:15px;background-color:rgb(255,255,255)"><span style="line-height:29.8199996948242px;font-size:21px">Number of Dimensions: 3</span></div><div style="line-height:21.2999992370605px;color:rgb(68,68,68);font-size:15px;background-color:rgb(255,255,255)"><span style="line-height:29.8199996948242px;font-size:21px">Dimensions and sizes:<span style="line-height:29.8199996948242px;white-space:pre-wrap">        </span>[360] x [90] x [1]</span></div><div style="line-height:21.2999992370605px;color:rgb(68,68,68);font-size:15px;background-color:rgb(255,255,255)"><span style="line-height:29.8199996948242px;font-size:21px">Coordinates: </span></div><div style="line-height:21.2999992370605px;color:rgb(68,68,68);font-size:15px;background-color:rgb(255,255,255)"><span style="line-height:29.8199996948242px;font-size:21px">Number Of Attributes: 1</span></div><div style="line-height:21.2999992370605px;color:rgb(68,68,68);font-size:15px;background-color:rgb(255,255,255)"><span style="line-height:29.8199996948242px;font-size:21px"> _FillValue :<span style="line-height:29.8199996948242px;white-space:pre-wrap">        </span>1.000000020040877e+20</span></div><div style="line-height:21.2999992370605px;color:rgb(68,68,68);font-size:15px;background-color:rgb(255,255,255)"><span style="line-height:29.8199996948242px;font-size:21px">(0)<span style="line-height:29.8199996948242px;white-space:pre-wrap">        </span> </span></div><div style="line-height:21.2999992370605px;color:rgb(68,68,68);font-size:15px;background-color:rgb(255,255,255)"><span style="line-height:29.8199996948242px;font-size:21px">(0)<span style="line-height:29.8199996948242px;white-space:pre-wrap">        </span>min=1 max=1</span></div><div style="line-height:21.2999992370605px;color:rgb(68,68,68);font-size:15px;background-color:rgb(255,255,255)"><span style="line-height:29.8199996948242px;font-size:21px"><br style="line-height:29.8199996948242px"></span></div><div style="line-height:21.2999992370605px;color:rgb(68,68,68);font-size:15px;background-color:rgb(255,255,255)"><span style="line-height:29.8199996948242px;font-size:21px">Variable: c2</span></div><div style="line-height:21.2999992370605px;color:rgb(68,68,68);font-size:15px;background-color:rgb(255,255,255)"><span style="line-height:29.8199996948242px;font-size:21px">Type: double</span></div><div style="line-height:21.2999992370605px;color:rgb(68,68,68);font-size:15px;background-color:rgb(255,255,255)"><span style="line-height:29.8199996948242px;font-size:21px">Total Size: 259200 bytes</span></div><div style="line-height:21.2999992370605px;color:rgb(68,68,68);font-size:15px;background-color:rgb(255,255,255)"><span style="line-height:29.8199996948242px;font-size:21px"> 32400 values</span></div><div style="line-height:21.2999992370605px;color:rgb(68,68,68);font-size:15px;background-color:rgb(255,255,255)"><span style="line-height:29.8199996948242px;font-size:21px">Number of Dimensions: 3</span></div><div style="line-height:21.2999992370605px;color:rgb(68,68,68);font-size:15px;background-color:rgb(255,255,255)"><span style="line-height:29.8199996948242px;font-size:21px">Dimensions and sizes:<span style="line-height:29.8199996948242px;white-space:pre-wrap">        </span>[360] x [90] x [1]</span></div><div style="line-height:21.2999992370605px;color:rgb(68,68,68);font-size:15px;background-color:rgb(255,255,255)"><span style="line-height:29.8199996948242px;font-size:21px">Coordinates: </span></div><div style="line-height:21.2999992370605px;color:rgb(68,68,68);font-size:15px;background-color:rgb(255,255,255)"><span style="line-height:29.8199996948242px;font-size:21px">Number Of Attributes: 1</span></div><div style="line-height:21.2999992370605px;color:rgb(68,68,68);font-size:15px;background-color:rgb(255,255,255)"><span style="line-height:29.8199996948242px;font-size:21px"> _FillValue :<span style="line-height:29.8199996948242px;white-space:pre-wrap">        </span>1.000000020040877e+20</span></div><div style="line-height:21.2999992370605px;color:rgb(68,68,68);font-size:15px;background-color:rgb(255,255,255)"><span style="line-height:29.8199996948242px;font-size:21px">(0)<span style="line-height:29.8199996948242px;white-space:pre-wrap">        </span> </span></div><div style="line-height:21.2999992370605px;color:rgb(68,68,68);font-size:15px;background-color:rgb(255,255,255)"><span style="line-height:29.8199996948242px;font-size:21px">(0)<span style="line-height:29.8199996948242px;white-space:pre-wrap">        </span>min=1 max=1</span></div><div style="line-height:21.2999992370605px;color:rgb(68,68,68);font-size:15px;background-color:rgb(255,255,255)"><span style="line-height:29.8199996948242px;font-size:21px"><br style="line-height:29.8199996948242px"></span></div><div style="line-height:21.2999992370605px;color:rgb(68,68,68);font-size:15px;background-color:rgb(255,255,255)"><span style="line-height:29.8199996948242px;font-size:21px">Variable: c3</span></div><div style="line-height:21.2999992370605px;color:rgb(68,68,68);font-size:15px;background-color:rgb(255,255,255)"><span style="line-height:29.8199996948242px;font-size:21px">Type: float</span></div><div style="line-height:21.2999992370605px;color:rgb(68,68,68);font-size:15px;background-color:rgb(255,255,255)"><span style="line-height:29.8199996948242px;font-size:21px">Total Size: 129600 bytes</span></div><div style="line-height:21.2999992370605px;color:rgb(68,68,68);font-size:15px;background-color:rgb(255,255,255)"><span style="line-height:29.8199996948242px;font-size:21px"> 32400 values</span></div><div style="line-height:21.2999992370605px;color:rgb(68,68,68);font-size:15px;background-color:rgb(255,255,255)"><span style="line-height:29.8199996948242px;font-size:21px">Number of Dimensions: 3</span></div><div style="line-height:21.2999992370605px;color:rgb(68,68,68);font-size:15px;background-color:rgb(255,255,255)"><span style="line-height:29.8199996948242px;font-size:21px">Dimensions and sizes:<span style="line-height:29.8199996948242px;white-space:pre-wrap">        </span>[360] x [90] x [1]</span></div><div style="line-height:21.2999992370605px;color:rgb(68,68,68);font-size:15px;background-color:rgb(255,255,255)"><span style="line-height:29.8199996948242px;font-size:21px">Coordinates: </span></div><div style="line-height:21.2999992370605px;color:rgb(68,68,68);font-size:15px;background-color:rgb(255,255,255)"><span style="line-height:29.8199996948242px;font-size:21px">Number Of Attributes: 1</span></div><div style="line-height:21.2999992370605px;color:rgb(68,68,68);font-size:15px;background-color:rgb(255,255,255)"><span style="line-height:29.8199996948242px;font-size:21px"> _FillValue :<span style="line-height:29.8199996948242px;white-space:pre-wrap">        </span>1e+20</span></div><div style="line-height:21.2999992370605px;color:rgb(68,68,68);font-size:15px;background-color:rgb(255,255,255)"><span style="line-height:29.8199996948242px;font-size:21px">(0)<span style="line-height:29.8199996948242px;white-space:pre-wrap">        </span> </span></div><div style="line-height:21.2999992370605px;color:rgb(68,68,68);font-size:15px;background-color:rgb(255,255,255)"><span style="line-height:29.8199996948242px;font-size:21px">(0)<span style="line-height:29.8199996948242px;white-space:pre-wrap">        </span>min=1 max=1</span></div><div style="line-height:21.2999992370605px;color:rgb(68,68,68);font-size:15px;background-color:rgb(255,255,255)"><span style="line-height:29.8199996948242px;font-size:21px"><br style="line-height:29.8199996948242px"></span></div><div style="line-height:21.2999992370605px;color:rgb(68,68,68);font-size:15px;background-color:rgb(255,255,255)"><span style="line-height:29.8199996948242px;font-size:21px">Variable: c4</span></div><div style="line-height:21.2999992370605px;color:rgb(68,68,68);font-size:15px;background-color:rgb(255,255,255)"><span style="line-height:29.8199996948242px;font-size:21px">Type: float</span></div><div style="line-height:21.2999992370605px;color:rgb(68,68,68);font-size:15px;background-color:rgb(255,255,255)"><span style="line-height:29.8199996948242px;font-size:21px">Total Size: 129600 bytes</span></div><div style="line-height:21.2999992370605px;color:rgb(68,68,68);font-size:15px;background-color:rgb(255,255,255)"><span style="line-height:29.8199996948242px;font-size:21px"> 32400 values</span></div><div style="line-height:21.2999992370605px;color:rgb(68,68,68);font-size:15px;background-color:rgb(255,255,255)"><span style="line-height:29.8199996948242px;font-size:21px">Number of Dimensions: 3</span></div><div style="line-height:21.2999992370605px;color:rgb(68,68,68);font-size:15px;background-color:rgb(255,255,255)"><span style="line-height:29.8199996948242px;font-size:21px">Dimensions and sizes:<span style="line-height:29.8199996948242px;white-space:pre-wrap">        </span>[360] x [90] x [1]</span></div><div style="line-height:21.2999992370605px;color:rgb(68,68,68);font-size:15px;background-color:rgb(255,255,255)"><span style="line-height:29.8199996948242px;font-size:21px">Coordinates: </span></div><div style="line-height:21.2999992370605px;color:rgb(68,68,68);font-size:15px;background-color:rgb(255,255,255)"><span style="line-height:29.8199996948242px;font-size:21px">Number Of Attributes: 1</span></div><div style="line-height:21.2999992370605px;color:rgb(68,68,68);font-size:15px;background-color:rgb(255,255,255)"><span style="line-height:29.8199996948242px;font-size:21px"> _FillValue :<span style="line-height:29.8199996948242px;white-space:pre-wrap">        </span>1e+20</span></div><div style="line-height:21.2999992370605px;color:rgb(68,68,68);font-size:15px;background-color:rgb(255,255,255)"><span style="line-height:29.8199996948242px;font-size:21px">(0)<span style="line-height:29.8199996948242px;white-space:pre-wrap">        </span> </span></div><div style="line-height:21.2999992370605px;color:rgb(68,68,68);font-size:15px;background-color:rgb(255,255,255)"><span style="line-height:29.8199996948242px;font-size:21px">(0)<span style="line-height:29.8199996948242px;white-space:pre-wrap">        </span>min=1 max=1</span></div><div><span style="line-height:29.8199996948242px;font-size:21px"><br></span></div></div>                                            </div></div>
<br>_______________________________________________<br>
ncl-talk mailing list<br>
List instructions, subscriber options, unsubscribe:<br>
<a href="http://mailman.ucar.edu/mailman/listinfo/ncl-talk" target="_blank">http://mailman.ucar.edu/mailman/listinfo/ncl-talk</a><br>
<br></blockquote></div><br></div>