Skip to content

Conversation

@PaulWessel
Copy link
Member

@PaulWessel PaulWessel commented Jul 19, 2020

Description of proposed changes

The movie progress indicator f is unlike the other 5 (a-e) in that it needs to call GMT_Call_Module to draw an annotated axis via basemap. However, I noticed that if the movie frame started off with -Xc and/or -Yc then GMT_Call_Module would pick up those settings from gmt.history. Because the module is just building a PostScript function that will be executed by gmt end we do not want to double up on those offsets. Hence, we now pass -X0 -Y0 to ensure nothing is shifted. We also added --GMT_HISTORY=false to prevent any writing, just like we do elsewhere. A separate PR will replace false with readonly. This necessitated a longer cmd[GMT_LEN256] string as well.

Otherwise, we may pick up a previous setting which is not what we want here since the PS function will be run at the very end.
@PaulWessel PaulWessel added bug Something isn't working backport 6.1 Backport this PR to 6.1 branch labels Jul 19, 2020
@PaulWessel PaulWessel requested a review from seisman July 19, 2020 04:16
@PaulWessel PaulWessel merged commit f6cba19 into master Jul 19, 2020
@PaulWessel PaulWessel deleted the no-shift-indicators branch July 19, 2020 04:27
github-actions bot pushed a commit that referenced this pull request Jul 19, 2020
* THe movie indicator f uses Call_Module but must pass -X0 -Y0

Otherwise, we may pick up a previous setting which is not what we want here since the PS function will be run at the very end.

* Update gmt_plot.c
seisman pushed a commit that referenced this pull request Jul 19, 2020
* THe movie indicator f uses Call_Module but must pass -X0 -Y0

Otherwise, we may pick up a previous setting which is not what we want here since the PS function will be run at the very end.

* Update gmt_plot.c

Co-authored-by: Paul Wessel <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport 6.1 Backport this PR to 6.1 branch bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants