Skip to content

Commit 0e1ec56

Browse files
authored
Figure.psconvert: Add a new alias gs_path (-G) (#2076)
1 parent 817b28a commit 0e1ec56

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

pygmt/figure.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,7 @@ def region(self):
130130
C="gs_option",
131131
E="dpi",
132132
F="prefix",
133+
G="gs_path",
133134
I="resize",
134135
N="bb_style",
135136
T="fmt",
@@ -142,7 +143,7 @@ def psconvert(self, icc_gray=False, **kwargs):
142143
Convert [E]PS file(s) to other formats.
143144
144145
Converts one or more PostScript files to other formats (BMP, EPS, JPEG,
145-
PDF, PNG, PPM, SVG, TIFF) using GhostScript.
146+
PDF, PNG, PPM, SVG, TIFF) using Ghostscript.
146147
147148
If no input files are given, will convert the current active figure
148149
(see :func:`pygmt.Figure`). In this case, an output name must be given
@@ -163,9 +164,11 @@ def psconvert(self, icc_gray=False, **kwargs):
163164
creating very small images where the difference of one pixel
164165
might matter. If ``verbose`` is used we also report the
165166
dimensions of the final illustration.
167+
gs_path : str
168+
Full path to the Ghostscript executable.
166169
gs_option : str
167170
Specify a single, custom option that will be passed on to
168-
GhostScript as is.
171+
Ghostscript as is.
169172
dpi : int
170173
Set raster resolution in dpi. Default is 720 for PDF, 300 for
171174
others.

0 commit comments

Comments
 (0)