-
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
Different outcomes on specifying legends #1406
Comments
The answer tho those goes back into GMT itself. In GMT (not the wrapper) we have the classic mode and the modern mode (man pages explain in depth the differences). In GMT.jl whenever we directly use On the other hand, in GMT.jl most of cases (those that do not use So, maybe a can fix that, but in your first example you should control the font size as mentioned in the legend manual. That is
The second case is more obscure for me now. For me on Windows that example (the Basically, I do not use much the |
Thanks for your explanation. |
If you try the master version case 1 is solved (now looks like 3). In you case 2 example you are calling But with some convoluted gymnastics I made case 2 work too (also in master only for now) as long as it's called as |
Hm, I can confirm the second issue but not the first. For me it plots the annotations. I don't see what it wouldn't as that is explicitly set in |
This is weird. It can be reproduced under both Linux and macOS with the master version. Is there any way I could output more information for diagnostic? |
You can add
You can also add
|
Indeed strange. It works for me on WSL too. |
I tried the following code snippet:
If running it in Julia REPL, it works and plots the annotations. But if running it in Jupyter notebook, it doesn't work and outputs:
|
Yes, can confirm this too. The reason lies on what caused this messages to print
This makes no sense because we are not asking for a PS (PostScript) output, but somehow that request is sneaking in. And, BTW, the |
Thanks very much! I tested with the master version and the showfig() issue is gone. |
I hope I've solved the First issue too, but this guy proved to be much more tricky than anticipated so side effects may arise. |
It works in the master version now! Cheers! |
Released that all in 1.12.2 |
I've tested with 1.12.2, all above cases are handled charmingly except for setting font size for legend label via the following two ways:
and
|
It was not only the font size that could not be changed but all parameters set in the |
Thanks. It works now! The legend!(...) call is really cool! |
All solved, I think. |
I tried three ways to specify legend, but got three different appearances.
First:
Second:
Third:
The first way gives warning as
The second way gives warning as
Only the third method can set correct font size for the labels in legend.
BTW, the appearance of the figure produced by the first method is very different from that from the other two methods, it seems they use different settings.
The text was updated successfully, but these errors were encountered: