[ncl-talk] Question regarding plot going beyond the plot page

Dave Allured - NOAA Affiliate dave.allured at noaa.gov
Tue Feb 20 10:26:23 MST 2024


Andrew, that's great.  Thanks for your follow-up, this may help others who
are looking for a similar solution.

As a side note, here is unsolicited advice.  I recommend retaining PDF or
PS/EPS through all processing stages, and PDF only for final output.  PNG,
JPEG, and other raster formats easily become grainy or pixellated on
magnification.  PDF is a vector format that retains near-infinite
resolution on magnification.  PDF is rendered nicely by all modern
browsers.  Also it looks great in publications and on posters.


On Tue, Feb 20, 2024 at 10:15 AM Andrew Kren - NOAA Federal <
andrew.kren at noaa.gov> wrote:

> I was able to figure it out Dave. I used the vP settings to adjust the
> page. And yes I always start out with eps and then use crop, etc. to
> convert to png.
>
> On Tue, Feb 20, 2024 at 12:13 PM Dave Allured - NOAA Affiliate <
> dave.allured at noaa.gov> wrote:
>
>> Andrew, can you get a 100% correct plot with terrain and reflectivity,
>> when gsnMaximize and gsnPaperOrientation are omitted?  If so, then I
>> suggest this workaround.  Generate the correct plot that way.  For good
>> resolution, generate as PDF or postscript, not jpeg or png.  Then use
>> external utilities to crop, rotate, and resize, as needed.  To debug the
>> other NCL functionality could be difficult.
>>
>>
>> On Mon, Feb 19, 2024 at 3:02 PM Andrew Kren - NOAA Federal via ncl-talk <
>> ncl-talk at mailman.ucar.edu> wrote:
>>
>>> Hi all,
>>>
>>> I sent a help request a few days ago. I am plotting a terrain map via a
>>> netcdf file and am overlaying reflectivity data. I am able to get this
>>> nearly 100% right. However, when I set gsnMaximize to True and
>>> gsnPaperOrientation to Portrait, the plot shows up in the vertical and the
>>> label bar and other text below the image is not shown or cut off (see
>>> example in the email). Does anyone know what could be causing this? When I
>>> did not have the terrain file, it plotted just fine within the pane. I have
>>> gone back and forth with/without maximizing and between portrait and
>>> landscape, and it was not working.
>>>
>>> Thanks much!
>>>
>>> [image: MRS_RG_CRADAR_F000.png]
>>> --
>>>
>>> Andrew Kren
>>> Meteorologist
>>> NOAA's National Weather Service
>>> Raleigh Forecast Office
>>> 1005 Capability Drive, Suite 300
>>> Raleigh, North Carolina 27606
>>> voice: 919-326-1035
>>> mailto: andrew.kren at noaa.govhttp://www.weather.gov/rah
>>>
>>>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.ucar.edu/pipermail/ncl-talk/attachments/20240220/07d75958/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: MRS_RG_CRADAR_F000.png
Type: image/png
Size: 941173 bytes
Desc: not available
URL: <https://mailman.ucar.edu/pipermail/ncl-talk/attachments/20240220/07d75958/attachment-0001.png>


More information about the ncl-talk mailing list