-
Notifications
You must be signed in to change notification settings - Fork 337
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
Modern mode: specify paper size and not cropping the figure #106
Comments
Hm, I print PDF figures all the time. The printer knows its paper size and off it goes. I can even scale the figure if I want to or let it be exactly as is. it tends to center the figure on the paper. Anyway, what you got is probably not what we want but I think you are trying to defeat how GMT is doing things. |
Now I understand why GMT tends to center the figure on the paper in modern mode. I once thought that following codes should work.
However, the plot is still not at the lower left corner of the paper. Why does basemap ignore MAP_ORIGIN_X and MAP_ORIGIN_Y? |
I've not tested the modern mode much on Win and suspect there are issues in it. Just to check, do you also get this error?
|
@joa-quim I think the correct one-line command should be:
Please note the dash symbol before |
Note this gives what you want but PS:
|
Right. You can see that have not been practicing modernity. But it respects the X,Y origin. I mean, origin is at 2,2 inch |
Two solutions I just find.
|
Sorry, don't get what is the problem. These both work as intended
|
Try MAP_ORIGIN_X|Y instead... |
MAP_ORIGIN_X and MAP_ORIGIN_Y don't work because they only works for a new plot. For an overlay, the default offset is always zero. |
This issue has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed if no further activity occurs within 7 days. Thank you for your contributions. |
@seisman any update on this issue? |
Close this issue, since I've found two solutions. |
Missing aliases and more extensive documentation and tests. Defines the new `gmt/modules.py` file.
In modern mode, figures are by default cropped to the minimum required by the image contents, using
psconvert -A
.Sometimes, we may want to plot a figure on A4 paper for printing. In this case, we need to specify paper size and set
psconvert
to not crop the figure.This is what I try:
However, you'll see that the right part of the figure is missing. It seems that the origins for the plot are somehow in the middle of the paper, different from the behavior in classic mode. Is it desired or a bug?
The text was updated successfully, but these errors were encountered: