Skip to content

Commit 8926fde

Browse files
yvonnefroehlichseismanmichaelgrund
authored
GMT-Ghostscript incompatibility: Give recommendations and extend examples (#3249)
Co-authored-by: Dongdong Tian <[email protected]> Co-authored-by: Michael Grund <[email protected]>
1 parent 5787a34 commit 8926fde

File tree

3 files changed

+27
-5
lines changed

3 files changed

+27
-5
lines changed

.github/ISSUE_TEMPLATE/4-release_checklist.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ assignees: ''
2323
- [ ] All tests pass in the ["GMT Dev Tests" workflow](https://github.com/GenericMappingTools/pygmt/actions/workflows/ci_tests_dev.yaml)
2424
- [ ] All tests pass in the ["Doctests" workflow](https://github.com/GenericMappingTools/pygmt/actions/workflows/ci_doctests.yaml)
2525
- [ ] Deprecations and related tests are removed for this version by running `grep --include="*.py" -r 'remove_version="vX.Y.Z"' pygmt` from the base of the repository
26+
- [ ] Update warnings in `pygmt.show_versions()` as well as notes in [Common installation issues](https://www.pygmt.org/dev/install.html#not-working-transparency)
27+
and [Testing your install]((https://www.pygmt.org/dev/install.html#testing-your-install) regarding GMT-Ghostscript incompatibility
2628
- [ ] Reserve a DOI on [Zenodo](https://zenodo.org) by clicking on "New Version"
2729
- [ ] Review the ["PyGMT Team" page](https://www.pygmt.org/dev/team.html)
2830
- [ ] Finish up 'Changelog entry for v0.x.x' Pull Request:

README.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,11 +74,14 @@ or a [Jupyter notebook](https://docs.jupyter.org/en/latest/running.html), and tr
7474
``` python
7575
import pygmt
7676
fig = pygmt.Figure()
77-
fig.coast(projection="H10c", region="g", frame=True, land="gray")
77+
fig.coast(projection="N15c", region="g", frame=True, land="tan", water="lightblue")
78+
fig.text(position="MC", text="PyGMT", font="80p,Helvetica-Bold,red@75")
7879
fig.show()
7980
```
8081

81-
For more examples, please have a look at the [Gallery](https://www.pygmt.org/latest/gallery/index.html) and
82+
You should see a global map with land and water masses colored in tan and lightblue, respectively. On top,
83+
there should be the semi-transparent text "PyGMT". For more examples, please have a look at the
84+
[Gallery](https://www.pygmt.org/latest/gallery/index.html) and
8285
[Tutorials](https://www.pygmt.org/latest/tutorials/index.html).
8386

8487
## Contacting us

doc/install.md

Lines changed: 20 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ If you have [PyArrow](https://arrow.apache.org/docs/python/index.html) installed
105105
does have some initial support for `pandas.Series` and `pandas.DataFrame` objects with
106106
Apache Arrow-backed arrays. Specifically, only uint/int/float and date32/date64 dtypes
107107
are supported for now. Support for string Arrow dtypes is still a work in progress.
108-
For more details, see [issue #2800](https://github.com/GenericMappingTools/pygmt/issues/2800).
108+
For more details, see [issue #2800](https://github.com/GenericMappingTools/pygmt/issues/2800).
109109
:::
110110

111111
## Installing GMT and other dependencies
@@ -238,11 +238,17 @@ import pygmt
238238
pygmt.show_versions()
239239

240240
fig = pygmt.Figure()
241-
fig.coast(region="g", frame=True, shorelines=1)
241+
fig.coast(projection="N15c", region="g", frame=True, land="tan", water="lightblue")
242+
fig.text(position="MC", text="PyGMT", font="80p,Helvetica-Bold,red@75")
242243
fig.show()
243244
```
245+
![pygmt-get-started](https://github.com/GenericMappingTools/pygmt/assets/3974108/f7f51484-8640-4b58-ae5b-6c71e7150f7a){.align-center width="70%"}
244246

245-
If you see a global map with shorelines, then you're all set.
247+
You should see a global map with land and water masses colored in tan and lightblue
248+
respectively. On top, there should be the semi-transparent text "PyGMT". If the
249+
semi-transparency does not show up, there is probably an incompatibility between your
250+
GMT and Ghostscript versions. For details, please run `pygmt.show_versions()` and see
251+
[Not working transparency](#not-working-transparency).
246252

247253
## Common installation issues
248254

@@ -284,3 +290,14 @@ jupyter kernelspec list --json
284290

285291
After that, you need to restart Jupyter, open your notebook, select the `pygmt` kernel
286292
and then import pygmt.
293+
294+
295+
### Not working transparency
296+
297+
It is known that some combinations of GMT and Ghostscript versions cause issues,
298+
especially regarding transparency. If the transparency doesn't work in your figures,
299+
please check your GMT and Ghostscript versions (you can run `pygmt.show_versions()`).
300+
We recommend:
301+
302+
- Ghostscript 9.53-9.56 for GMT 6.3.0/6.4.0
303+
- Ghostscript 10.03 or later for GMT 6.5.0

0 commit comments

Comments
 (0)