Repository navigation
Description
Description of the desired feature
[This is a duplicate from a comment buried in a closed issue #3342]
Currently, movie follows standard GMT layout given the size of your paper: Design your layout on the given page. Instead of an actual A4 or letter paper, you have a slightly smaller paper, say 21.6 x 10.8 cm for a 16:9 movie. As with any paper you want to move the plot origin away from the actual lower left corner. This is done with -X and -Y and these have 72 points as default (~2.5 cm). You then use a reasonable fraction of the remaining area to plot. The movie module does not provide much help here: It inherits the standard GMT (72p, 72p) origin offset, and it produces two script variables available to users: MOVIE_WIDTH and MOVIE_HEIGHT. However, as pointed out by @Esteban82, these dimensions are not really suitable as projection dimensions since the plot will be clipped, severely so if you have annotations. You have to decide on the green plot dimensions manually.The figure below indicates the situation:
A possible new way of doing things is illustrated below. Here, we would rely on the movie theme which changes the default origin to (0,0) (and probably set slightly smaller annotation fonts etc given the smaller paper). In addition, it would introduce a new -O option to movie, based on similar option in subplot:
-Ooff | xoff/yoff | woff/eoff/soff/noff
You can then specify a constant margin width, one that differs for x and y, or different margins for all four sides. In addition, MOVIE_WIDTH and MOVIE_HEIGHT will be written out as the actual dimensions of the green rectangle, now suitable for plot dimensions:
The -O option, if not given, sets no margins, i.e., origin remains at (0,0). If -O is given with no arguments we could decide on some sensible defaults, perhaps 7.5%/2.5/5%/5% of the canvas dimensions.
Pro: This scheme would make MOVIE_WIDTH and MOVIE_HEIGHT usable parameters (they are currently not even used by our own animations), and it may be simpler to think about layout in terms of margins. This is how word processors work as well (i.e., set margins). It also hides the use of -X -Y for most simple layouts since the margins sets those implicitly. Unlike plotting in modern mode in general, where there is no paper size at all, a movie actually has a strict paper size, hence a different approach is needed.
Con: This scheme treats movie plot layouts differently than for any other GMT plot. Suddenly, we no longer talk about -X and -Y but of margins! While classic mode people still think of media sizes, the modern crowd do not, hence margins may be a bit odd for them.
In conclusion, I am not sure if this is a good solution, but I think the above at least lays out the issue.


Activity
stale commentedon Aug 22, 2020
This issue has been automatically marked as stale because it has not had activity in the last 90 days. It will be closed if no further activity occurs within 7 days. Thank you for your contributions.
stale commentedon Nov 29, 2020
This issue has been automatically marked as stale because it has not had activity in the last 90 days. It will be closed if no further activity occurs within 7 days. Thank you for your contributions.
Add illustration to movie doc explaining the canvas dimensions
Add illustration to movie doc explaining the canvas dimensions (#4701)