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

From: Xin Xie <xiexinyls_at_nyahnyahspammersnyahnyah>
Date: Mon Feb 04 2013 - 19:34:50 MST

Hi, Rick, with "oldps" it works! Really thank you!
Have no idea why the new "ps" is worse than "oldps".
I am using a viewer called "PS_View" that goes with TexLive2012.
It uses ghostscript to render PS file.

Xin

Best,

Xin Xie, PhD Student
School of Marine and Atmospheric Sciences
Stony Brook University
homepage: http://metsci.tk

On Mon, Feb 4, 2013 at 11:31 AM, Rick Brownrigg <brownrig@ucar.edu> wrote:

> 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 19:35:02 2013

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