Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Problem clipping with -E*dcw*+c #8379

Open
gd-a opened this issue Feb 23, 2024 · 6 comments
Open

Problem clipping with -E*dcw*+c #8379

gd-a opened this issue Feb 23, 2024 · 6 comments
Labels
bug Something isn't working

Comments

@gd-a
Copy link
Contributor

gd-a commented Feb 23, 2024

This works :

gmt begin test png
gmt coast -EFR+c -JL2/46/45/48/5c
gmt coast -Ggray -Swhite -Wfaint -N1 -A10000
gmt coast -Bafg -Q
gmt end show

This doesn't :

gmt begin test png
gmt coast -Rg -JG0/45/15c -Dc -Wfaint -Glightgray -Bafg
gmt coast -EFR+c -JL2/46/45/48/5c
gmt coast -Ggray -Swhite -Wfaint -N1 -A10000
gmt coast -Bafg -Q
gmt end show
@gd-a gd-a added the bug Something isn't working label Feb 23, 2024
@joa-quim
Copy link
Member

Can you please make this a one-liner? Modern mode scripts are quite hard to debug.

@gd-a
Copy link
Contributor Author

gd-a commented Feb 24, 2024

I’m not sure I can use the clip fonction (-E+c) in one-liner though ?

@joa-quim
Copy link
Member

Yep, probably not. But the idea is to have the minimum set of commands that reproduce the issue. And in this regard modern mode does not help either. Modern mode scripts are a hell do debug.

@gd-a
Copy link
Contributor Author

gd-a commented Feb 24, 2024

I can only imagine… but clipping is specific to modern mode as I understand it, correct ?

@joa-quim
Copy link
Member

Nope. subplots, insets and maybe a few other are modern mode only. Large majority is dual mode. Clipping in this case comes from (ps)coast.

@gd-a
Copy link
Contributor Author

gd-a commented Feb 26, 2024

Well, here's the classic version (not working either) :

gmt pscoast -Rg -JG0/45/15c -Dc -Wfaint -Glightgray -Bafg -K > test.ps
gmt pscoast -EFR+c -JL2/46/45/48/5c -X2.5c -Y2.5c -K -O >> test.ps
gmt pscoast -EFR -JL2/46/45/48/5c -Gdarkbrown -Wfaint -N1 -A10000 -K -O  >> test.ps
gmt pscoast -Q -O >> test.ps

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants