NOAA-PMEL / Ferret

The Ferret program from NOAA/PMEL
https://ferret.pmel.noaa.gov/Ferret/
The Unlicense
55 stars 20 forks source link

add option for thickening lines to gksm2ps #865

Open karlmsmith opened 6 years ago

karlmsmith commented 6 years ago

Reported by @AnsleyManke on 26 Aug 2008 23:10 UTC (See Andrew's shell script ps_thicken which uses sed to do this to a postcript file already written by gksm2ps.) To thicken by a factor of 3 the relevant addition is to change this line in the header

/lw {3000 div setlinewidth} def

to this line:

/lw {3 mul 3000 div setlinewidth} def

We can change the default output to :

/lw {1 mul 3000 div setlinewidth} def

and then if the user gives a thickening factor write that factor instead of the 1.

Migrated-From: http://dunkel.pmel.noaa.gov/trac/ferret/ticket/1593

karlmsmith commented 6 years ago

Comment by @AnsleyManke on 14 Apr 2014 18:16 UTC In this message,

http://www.pmel.noaa.gov/maillists/tmap/ferret_users/fu_2014/msg00132.html, long-time user Ryo Furue suggests another addition to the postscript that gksm2ps:

  1 setlinejoin

somewhere after the comment "% begin the plot".

I see no downside to this. Even with pyFerret superseding Ferret's metafiles and gksm2ps conversion, this seems worth adding.

In addition, add an option to gksm2ps,

-t n ! to thicken all lines by an integer factor n

To discuss before releasing this: should the default be to thicken lines by, say, a factor of 2? I think not: now that there will be an obvious way to get thicker lines, I'm inclined to leave the thickness alone by default.