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

Add -l to event #6104

Closed
anbj opened this issue Dec 10, 2021 · 6 comments
Closed

Add -l to event #6104

anbj opened this issue Dec 10, 2021 · 6 comments
Labels
feature request Request a new feature

Comments

@anbj
Copy link
Contributor

anbj commented Dec 10, 2021

I dont' understand why the -l option (https://docs.generic-mapping-tools.org/dev/gmt.html#l-full) is not available for events.
events is in many ways similar to plot, and it's useful to have this option to create an easy and quick legend.

@anbj anbj added the feature request Request a new feature label Dec 10, 2021
@PaulWessel
Copy link
Member

It can be added. The thinking was that you would not want to waste CPU time redrawing that legend again and again and that you instead would use -Sf to have a script that makes an overlay.

@anbj
Copy link
Contributor Author

anbj commented Dec 10, 2021

That’s reasonable. Thanks Paul.

@anbj anbj closed this as completed Dec 10, 2021
@anbj
Copy link
Contributor Author

anbj commented Jan 2, 2022

-Sf to make an overlay; which command does this refer to?

@anbj
Copy link
Contributor Author

anbj commented Jan 2, 2022

Maybe having the possibility to use -l in movie would be nice after all. It should be up to the user to decide what he/she wants to spend electricity on. And maybe add a note on the man page with a suggestion on how to do it the smart way?

@PaulWessel
Copy link
Member

In movie, -Sffile means you wish to either (a) run the script file which will produce an PS overlay of the same dimension as the movie frames and it will be overlain on all frames as a constant foreground, or (b) file is a PS overlay of same dimensions and will be overlain on all frames as is. This is usually a good solution if you wish to place some constant legend, labels, and other things that will not change during the movie.

I think movie -l makes no sense since movie does not plot anything - it just runs scripts. So that is not possible. I assume you still meant events -l. But even in that case you should note that events does not plot any data itself - it makes calls to plot, text, meca, coupe or velo depending on other option. So not clear to me how to handle this (yet).

@anbj
Copy link
Contributor Author

anbj commented Jan 2, 2022

Sorry, of course I meant events -l. Thanks for explaining Paul. The point anyway, from a pragmatic point of view, would be to have a -l capability when using events.

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

No branches or pull requests

2 participants