[ncl-talk] Issue with plotting and maximizing space in multi-panel plot on same workstation
Alan Rhoades
alan.m.rhoades at gmail.com
Tue Sep 29 17:43:23 MDT 2015
Hi Adam,
I have a question that builds off of the last one I had a few months ago.
I have attached my NCL script and a *.pdf of the output that it generates.
So, I'm now trying to panel four different panel plots, each with their own
unique color bar and value ranges. I've tried to refrain from setting
gsnPanelLeft and gsnPanelRight (like you suggested previously), but the
white space issue is cropping up again (see attached *.pdf).
I have three questions...
1) How can I get rid of this awkward white spacing
2) How can I move each of the color bars so that they are up against the
rightmost plot boxes?
3) How can I ensure that the last of the date strings are not omitted
(i.e., 2005, 2025, and 2100) in each of the plots?
Thanks in advance!
AR
On Thu, Jul 16, 2015 at 2:35 PM, Alan Rhoades <alan.m.rhoades at gmail.com>
wrote:
> Hi Adam,
>
> I went with your first suggestion (which involved less modification of my
> ncl script) and commented out the gsnPanelRight (and *Left) settings I had
> and the plot sizing/spacing looks much better. I'll make sure to just do
> one gsn_panel call in all my scripts from now on.
>
> Thanks again!
>
> AR
>
> On Thu, Jul 16, 2015 at 2:05 PM, Adam Phillips <asphilli at ucar.edu> wrote:
>
>> Hi Alan,
>> I have 2 suggestions:
>> 1) Only make one gsn_panel call if you can. By making multiple gsn_panel
>> calls and by setting gsnPanelTop/Bottom you are semi-negating setting
>> gsnMaximize = True. You will have to concatenate your gsnPanelFigureStrings
>> calls and merge your graphic arrays. The latter can be accomplished in 1 of
>> two ways:
>> gsn_panel(wks,(/plot_SNOWFALL_avg(0),plot_SNOWFALL_avg(1),../),
>> or
>> plot = new(12,graphic)
>> plot(:2) = plot_SNOWFALL_avg
>> plot(3:5) = plot_SNOWC_avg
>> etc
>> gsn_panel(wks,plot,(/4,3/),resP)
>>
>> 2)Do not set gsnPanelLeft and gsnPanelRight unless you absolutely have to
>> due to conflicts with gsnMaximize.
>>
>> Give those two suggestions a shot and let ncl-talk know if you are still
>> having an issue.
>> Adam
>>
>>
>>
>>
>> On Thu, Jul 16, 2015 at 2:43 PM, Alan Rhoades <alan.m.rhoades at gmail.com>
>> wrote:
>>
>>> Hello,
>>>
>>> I'm having an issue where my current multi panel plot (on the same
>>> workstation) generates too much white space. I've tried several fixes, but
>>> can't seem to track down the right solution. I'd like to decrease the
>>> top/bottom white spacing in between each of my set of panel plots as well
>>> as maximize the panel plot to take up an equal area of the workstation
>>> (i.e., 1/4 of the total space for each set of panel plots). Any guidance
>>> or solutions would be appreciated.
>>>
>>> Please see the attached PDF and ncl script.
>>>
>>> All the best,
>>>
>>> AR
>>>
>>> --
>>>
>>> *Alan Rhoades*
>>> *PhD Student, Atmospheric Science Graduate Group*
>>> *Climate Change Water and Society (CCWAS) NSF IGERT Trainee*
>>> *University of California, Davis*
>>> *LinkedIn <https://www.linkedin.com/pub/alan-rhoades/22/5bb/52a>*
>>> *alan.m.rhoades at gmail.com <alan.m.rhoades at gmail.com> *
>>> *amrhoades at ucdavis.edu <amrhoades at ucdavis.edu>*
>>>
>>> *"It’s all really there. That’s what really gets you. But you gotta stop
>>> and think about it to really get the pleasure about the complexity, the
>>> inconceivable nature of nature."*
>>> *Richard Feynman*
>>>
>>> _______________________________________________
>>> ncl-talk mailing list
>>> ncl-talk at ucar.edu
>>> List instructions, subscriber options, unsubscribe:
>>> http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>>>
>>>
>>
>>
>> --
>> Adam Phillips
>> Associate Scientist, Climate and Global Dynamics Laboratory, NCAR
>> www.cgd.ucar.edu/staff/asphilli/ 303-497-1726
>>
>> <http://www.cgd.ucar.edu/staff/asphilli>
>>
>
>
>
> --
>
> *Alan Rhoades*
> *PhD Student, Atmospheric Science Graduate Group*
> *Climate Change Water and Society (CCWAS) NSF IGERT Trainee*
> *University of California, Davis*
> *LinkedIn <https://www.linkedin.com/pub/alan-rhoades/22/5bb/52a>*
> *alan.m.rhoades at gmail.com <alan.m.rhoades at gmail.com> *
> *amrhoades at ucdavis.edu <amrhoades at ucdavis.edu>*
>
> *"It’s all really there. That’s what really gets you. But you gotta stop
> and think about it to really get the pleasure about the complexity, the
> inconceivable nature of nature."*
> *Richard Feynman*
>
--
*Alan Rhoades*
*PhD Student, Atmospheric Science Graduate Group*
*Climate Change Water and Society (CCWAS) NSF IGERT Trainee*
*University of California, Davis*
*LinkedIn <https://www.linkedin.com/pub/alan-rhoades/22/5bb/52a>*
*alan.m.rhoades at gmail.com <alan.m.rhoades at gmail.com> *
*amrhoades at ucdavis.edu <amrhoades at ucdavis.edu>*
*"It’s all really there. That’s what really gets you. But you gotta stop
and think about it to really get the pleasure about the complexity, the
inconceivable nature of nature."*
*Richard Feynman*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20150929/6568f326/attachment-0001.html
-------------- next part --------------
A non-text attachment was scrubbed...
Name: SN_HOV_RCP85_ALL_DJF.ncl
Type: application/octet-stream
Size: 76935 bytes
Desc: not available
Url : http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20150929/6568f326/attachment-0001.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: SN_HOV_1980-2100_DJF_ALL_VRGCM.pdf
Type: application/pdf
Size: 690769 bytes
Desc: not available
Url : http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20150929/6568f326/attachment-0001.pdf
More information about the ncl-talk
mailing list