Re: why is the edge in raster fill plot so blurred?

From: Rick Brownrigg <brownrig_at_nyahnyahspammersnyahnyah>
Date: Mon Feb 04 2013 - 09:31:28 MST

Hi Xin,

You might try using "oldps" as a workstation type, rather than "ps". Out of curiosity, what are you using to view the postscript files?

Rick

On Feb 3, 2013, at 2:39 PM, Xin Xie <xiexinyls@gmail.com> wrote:

> Hi, I am plotting some "raster filled" 2D plot. After I generate the "ps" file and zoom in and closely look at the edge of the boxes. I found that it is so blurred and not sharp, not reaching the demand of image quality by journals. I wonder if there is a way to have sharp edge. Thanks a lot!
> I give some sample code to reproduce the blurred edge.
>
> Xin
>
> load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_code.ncl"
> load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/gsn_csm.ncl"
> load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/contributed.ncl"
> load "$NCARG_ROOT/lib/ncarg/nclscripts/csm/shea_util.ncl"
>
> begin
>
> nx = 5
> ny = 5
> data = new( (/ny, nx/), float)
>
> do i = 0, nx-1
> do j = 0, ny-1
> data(j,i) = rand()
> end do
> end do
>
> wks = gsn_open_wks( "ps", "./test") ;plotdir+"/"+varname)
>
> res_ct = True
>
> ;set resources for graphics
> res_ct@cnFillOn = True
> res_ct@cnLinesOn = False
> res_ct@cnFillMode = "RasterFill"
>
> res_ct@lbOrientation = "vertical"
>
> res_ct@gsnSpreadColors = True
>
> plot = gsn_csm_contour( wks, data, res_ct)
> end
> _______________________________________________
> ncl-talk mailing list
> List instructions, subscriber options, unsubscribe:
> http://mailman.ucar.edu/mailman/listinfo/ncl-talk

_______________________________________________
ncl-talk mailing list
List instructions, subscriber options, unsubscribe:
http://mailman.ucar.edu/mailman/listinfo/ncl-talk
Received on Mon Feb 4 09:31:38 2013

This archive was generated by hypermail 2.1.8 : Wed Feb 06 2013 - 16:37:01 MST