Skip to content

Missing corner in BG from julia #3539

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

Closed
joa-quim opened this issue Jun 25, 2020 · 11 comments
Closed

Missing corner in BG from julia #3539

joa-quim opened this issue Jun 25, 2020 · 11 comments

Comments

@joa-quim
Copy link
Member

Oddly this misses the LL corner but the same command works well from command line

basemap(region=(0,40,20,60), proj=:merc, figsize=10, frame=(annot=:afg, fill=:lightgreen), savefig="miss_pix.png", show=1, Vd=1)
        psbasemap  -R0/40/20/60 -JM10 -Bpa -B+glightgreen -P -K > C:\TMP\GMTjl_tmp.ps

miss_pix

@PaulWessel
Copy link
Member

The green is painted by a 4-point polygon and then fill it. This cannot be a GMT problem, somehow a issue in psconvert calling gs?

@joa-quim
Copy link
Member Author

No, it's in the PS. Apparently a white square is painted at the corner.
GMTjl_tmp.ps.zip

@PaulWessel
Copy link
Member

Run gmt clear sessions and try again. Still there?

@joa-quim
Copy link
Member Author

This is from Julia classic mode. No sessions.

@PaulWessel
Copy link
Member

If you think we are painting a small white square then you will need to step through and see where that is happening, cause I'm not buying it.

@joa-quim
Copy link
Member Author

Open the ps file in Illustrator

@PaulWessel
Copy link
Member

I am buying there is a white square, I am not buying GMT placed it there.

@PaulWessel
Copy link
Member

You'll have to figure out where it comes from if you want me to fix something.

@seisman
Copy link
Member

seisman commented Jun 25, 2020

Your PS is generated using the following commands:

gmt psbasemap  -R0/40/20/60 -JM10 -Bpa -B+glightgreen -P -K --PS_MEDIA=11900x16840 > map.ps
gmt psxy -T -R0/1/0/1 -JX1 -O >> map.ps

Compare the map.ps and your PS file,

4c4
< %%Title: GMT v6.1.0_012bf5c_2020.06.24 [64-bit] Document from psbasemap
---
> %%Title: GMT v6.1.0_229d4bd_2020.06.22 [64-bit] [MP] Document from psbasemap
8c8
< %%CreationDate: Wed Jun 24 22:59:44 2020
---
> %%CreationDate: Thu Jun 25 03:19:15 2020
672c672
< %@GMT: gmt psbasemap -R0/40/20/60 -JM10 -Bpa -B+glightgreen -P -K --PS_MEDIA=11900x16840
---
> %@GMT: gmt psbasemap -R0/40/20/60 -JM10 -Bpa -B+glightgreen -P -K C:\TMP\GMTjl_tmp.ps --PS_MEDIA=11900x16840
766c766
< %@GMT: gmt psxy -T -R0/1/0/1 -JX1 -O
---
> %@GMT: gmt psxy -T -R0/1/0/1 -JX1 -O >C:\TMP\GMTjl_tmp.ps
771a772,773
> {1 A} FS
> -472 0 0 472 472 0 3 0 0 SP

@joa-quim
Copy link
Member Author

Yes, I do that psxy -T trick to close the ps files and it forces me to use also -R -J. But why is it plotting?

@joa-quim
Copy link
Member Author

Closing as nothing that can really be done other than use a very small -JX. Also indirectly fixed by #3672

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants