[ncl-talk] Panel Plot Bottom Row Narrower than the rest

Parish, Helen hparish at epss.ucla.edu
Mon Feb 9 23:03:57 MST 2015


Unfortunately setting resP at gsnPanelScalePlotIndex to 6 or 7 does not seem to work in this case. The result is that the earlier plots in the second column have their y-axis labels cut off, but the last 2 plots still remain the same size. In this particular case, the last 2 plots do not differ in the size of their y-axis text, as in example panel_24.ncl, but in the fact that they actually have x-axis text and labels whilst the earlier plots do not have any x-axis text or labels at all. Perhaps this makes a difference ?.

I am attaching the new plot generated and the modified script.

Any ideas what to do here ?.

Thanks,
Helen.

[cid:e0a9ce31-4453-4a86-a61c-46e2e6e80669 at em.ucla.edu]




On Feb 9, 2015, at 8:14 PM, Mary Haley wrote:

Helen,

The issue here appears to be with paneling plots that are different sizes.  The plots on the bottom are larger than the other plots, because they contain labels on the bottom axis.

If you have plots that are larger than the top leftmost plot, then you need to tell the gsn_panel routine to base the scaling of each plot on the plot that's the largest (the default is to base it on the first plot).

Do by by setting resP at gsnPanelScalePlotIndex to 6 or 7 to indicate that the scaling of each plot should be based on plot # 6 or #7, and not plot #0.

For an example of this, see panel_24.ncl at:

http://www.ncl.ucar.edu/Applications/panel.shtml#ex24

As a side, your main title is quite large.  You may want to resize it by setting resP at txFontHeightF to something smaller, like 0.03 or smaller.

--Mary


On Mon, Feb 9, 2015 at 7:51 PM, Parish, Helen <hparish at epss.ucla.edu<mailto:hparish at epss.ucla.edu>> wrote:
Does anyone know how to prevent the bottom row of a panel plot from being narrower than the other rows ?. In this kind of panel plot only the bottom row has axis labels and x-axis titles. However, I do not see why this should make the bottom row narrower. Does anyone know how to correct this ?.

I enclose a copy of the NCL script and the image it produces.

Thanks,
Helen.



[cid:96a9ad46-3b74-49eb-abd2-9a6657b9e9ca at em.ucla.edu]

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk



-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20150210/cf27233b/attachment-0001.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pangeotimenew.jpg
Type: image/jpg
Size: 155017 bytes
Desc: pangeotimenew.jpg
Url : http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20150210/cf27233b/attachment-0002.jpg 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pangeotime.jpg
Type: image/jpg
Size: 177598 bytes
Desc: pangeotime.jpg
Url : http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20150210/cf27233b/attachment-0003.jpg 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pangeotime.ncl
Type: application/octet-stream
Size: 37220 bytes
Desc: pangeotime.ncl
Url : http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20150210/cf27233b/attachment-0001.obj 


More information about the ncl-talk mailing list