<div dir="ltr">Dear,<div class="gmail_quote"><div dir="ltr"><div class="gmail_quote"><div dir="ltr"><div>I am interested in plotting a bar chart for the anomaly data (attached). I followed the example in example: <a href="https://www.ncl.ucar.edu/Applications/Scripts/bar_4.ncl" target="_blank">https://www.ncl.ucar.edu/Applications/Scripts/bar_4.ncl</a></div><div>But I am getting the following error on including the gsnYRefLine:</div><div><span style="color:rgb(255,0,0)">f<span style="font-family:monospace">atal:conform_dims: The array to be conformed must have the same number of dimensions as indicated by the length of the last argument.</span></span></div><div>I am unable to understand the error which indicates the plot command. If I comment the gsnYRefLine, it works and gives a simple barchart but it does not have +ve and -ve separation.<br></div><div>Please advise.<br></div><div><br></div><div> <span style="font-family:monospace">inp = asciiread("./inp_anom.txt",(/66,2/),"float")</span></div><div><span style="font-family:monospace"> ycolc0 = inp(:,0)</span></div><div><span style="font-family:monospace"> test_anom = inp(:,1)</span></div><div><span style="font-family:monospace"> ;</span><br></div><div><span style="font-family:monospace"> fwks = gsn_open_wks ("png","panom_bar") <br> res = True <br> res@gsnYRefLine = 0.0 <br> res@gsnXYBarChart = True <br> res@gsnAboveYRefLineColor = "blue" <br> res@gsnBelowYRefLineColor = "red" <br> plot = gsn_csm_xy(fwks,ycol0c,test_anom,res) ; create plot</span></div></div>
</div></div>
</div></div>