[ncl-talk] 12-panel plot is 28Mb

Mary Barth barthm at ucar.edu
Thu Oct 29 17:22:14 MDT 2015


Hi Rick,

After plotting all lines in the same call for each panel, and adding 
error bars via gsn_polyline, I was able to reduce the size the of ps 
file to < 1 Mb. Lesson learned is to not use gsn_csm_xy for each line in 
the plot, but to take advantage of the multiple curves option and 
polyline function/procedure.

Mary



On 10/29/15 11:01 AM, Rick Brownrigg wrote:
> I'm not sure offhand.  Are you able to share your dataset?  Or perhaps 
> a snapshot?
>
> Rick
>
> On Thu, Oct 29, 2015 at 9:52 AM, Mary Barth <barthm at ucar.edu 
> <mailto:barthm at ucar.edu>> wrote:
>
>     Thanks, Rick.
>     I just ran it, assigning wks to "oldps". It created an 18 Mb file.
>     They are just line plots, with lines being assigned "red", "blue",
>     "black", "forestgreen". Maybe there's too much extra of plot axes,
>     etc., since I'm plotting each line individually and plotting
>     standard deviations individually too, instead of plotting all
>     lines with one call.
>
>     Do you agree? If so, then what's the best way to include the
>     standard deviation lines?
>     -- Mary
>
>
>
>
>     On 10/29/15 9:38 AM, Rick Brownrigg wrote:
>>     Hi Mary,
>>
>>     If your script does not make use of the newer color model (ex:
>>     transparency or >256 colors, per-contour map colortables, etc),
>>     then you might have better luck using the original postscript
>>     driver, which is accessed as "oldps".
>>
>>     Rick
>>
>>
>>     On Thu, Oct 29, 2015 at 9:21 AM, Mary Barth <barthm at ucar.edu
>>     <mailto:barthm at ucar.edu>> wrote:
>>
>>         Hi there,
>>
>>         I have created a 12-panel plot, which looks great for my
>>         paper, but is 28 Mb in size as a *ps file. Is there anything
>>         I can do in my ncl script to make it smaller? The script is
>>         attached.
>>
>>         BTW, running ps2pdf afterwards converted the ps file to a 5.4
>>         Mb pdf file.
>>
>>         Thanks!
>>         Mary
>>
>>
>>         _______________________________________________
>>         ncl-talk mailing list
>>         ncl-talk at ucar.edu <mailto:ncl-talk at ucar.edu>
>>         List instructions, subscriber options, unsubscribe:
>>         http://mailman.ucar.edu/mailman/listinfo/ncl-talk
>>
>>
>
>     -- 
>     ^--^--^--^--^--^--^--^--^--^--^--^--^--^--^--^--^--^--^--^--^--^
>     Mary Barth                  Phone:303-497-8186 <tel:303-497-8186>
>     NCAR                        FAX:303-497-1400 <tel:303-497-1400>    
>     Atmospheric Chemistry and Mesoscale and Microscale Meteorology
>     P.O. Box 3000
>     Boulder, CO 80307           email:barthm at ucar.edu <mailto:barthm at ucar.edu>    
>
>     https://staff.ucar.edu/users/barthm   
>     DC3 Main Page:http://www.eol.ucar.edu/projects/dc3/
>     +--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+
>
>

-- 
^--^--^--^--^--^--^--^--^--^--^--^--^--^--^--^--^--^--^--^--^--^
Mary Barth                  Phone:  303-497-8186
NCAR                        FAX:    303-497-1400
Atmospheric Chemistry and Mesoscale and Microscale Meteorology
P.O. Box 3000
Boulder, CO 80307           email: barthm at ucar.edu

https://staff.ucar.edu/users/barthm
DC3 Main Page:  http://www.eol.ucar.edu/projects/dc3/
+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+--+

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mailman.ucar.edu/pipermail/ncl-talk/attachments/20151029/c8d5c12b/attachment.html 


More information about the ncl-talk mailing list