-
Notifications
You must be signed in to change notification settings - Fork 28
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
Specifying a colourmap on ternary plots with image=true adds a large grey square #952
Comments
Hmm, can't reproduce the gray box issue. These are created in my local machine (Windows) and copied to (SSL certificate expired site) and these are built automatically by GH actions https://www.generic-mapping-tools.org/GMTjl_doc/examples/ternary/ They both are using GMT.jl master (a Conda craziness broke the automatic registration of new GMT.jl versions) but I don't remember to have changed anything that may explain the gray box. See if you happen to have a The |
This issue appears to occur without specifying a non-default colourmap (i.e. the first example I provided) when working in Pluto notebooks, possibly because a non-default cmap is being set elsewhere and is persisting. In a Jupyter notebook I can obtain the grey box by doing (as a minimum working example): using GMT
C = makecpt(cmap=:rainbow);
ternary("@ternary.txt", image=true, frame=(suffix=" %"), show=true) Details: |
OK, can reproduce and found out why. But not sure who's really the culprit. For the time being use this workaround (too late here for a better fix).
|
Thank you so much! That works perfectly! |
If you update to master you won't need to change the |
Sample code from
https://www.generic-mapping-tools.org/GMT.jl/stable/gallery/ternary/ternary/
This produces a large grey square surrounding the ternary diagram
If image=false, then
cmap then has to be specified for the colourmap to be applied. Note that inputting the cmap explicitly as cmap=C in the first example still produces said grey square.
If you have any advice on what may fix this, it would be much appreciated. I've tried the
bg
parameters specified athttps://www.generic-mapping-tools.org/GMT.jl/stable/makecpt/
but these do not seem to have helped.
Many Thanks,
Luc
The text was updated successfully, but these errors were encountered: