Skip to content

Incorrect cropping if the origin of second panel is >12 cm below the first panel #195

Closed

Description

@seisman

Description of the problem

Full script that generated the error

gmt begin map jpg
gmt basemap -JX10c/10c -R0/10/0/5 -Baf
gmt basemap -JX10c/10c -R0/10/0/5 -Baf -Y-13c
gmt end

Output Figure
map

System information

  • Operating system: macOS
  • Version of GMT: 6.0.0_15a9160

Activity

  1. PaulWessel commented on Dec 1, 2018

    @PaulWessel
    Contributor

    In modern mode we basically have an enormous canvas that we clip to the final size. However, if you purposefully move the origin way to the left or down then this will happen. Perhaps we should position the origin at (1 meter, 1 meter) to handle relative innocent shifts like this from still working.

  2. seisman commented on Dec 2, 2018

    @seisman
    MemberAuthor

    Yeah. I think most people like to plot the top left panel first. 1 meter seems enough for most plots.

  3. PaulWessel commented on Dec 2, 2018

    @PaulWessel
    Contributor

    We were using GMT_PAPER_MARGIN ( = 5 inches) for this or ~12.7 cm as you found. I am setting it to 40 inches (a bit over 1 meter) and will submit PR once make check returns without any side-effects.

  4. joa-quim commented on Dec 2, 2018

    @joa-quim
    Member

    Well, we have a 100 m wall don't we? So 1 m may not be that much for people that like to start from top down (but I surely prefer an Y axis positive up).

  5. PaulWessel commented on Dec 2, 2018

    @PaulWessel
    Contributor

    It is 11.55 meters. (32767 points)

  6. seisman commented on Dec 20, 2018

    @seisman
    MemberAuthor

    Reopen this issue due to a bug of ghostscript 9.26. See #229 and #199 for discussions.

  7. stale commented on Jan 23, 2019

    @stale

    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.

  8. added
    stale
    on Jan 23, 2019
  9. removed
    stale
    on Jan 31, 2019
  10. PaulWessel commented on Feb 1, 2019

    @PaulWessel
    Contributor

    Bug has now been fixed in ghostscript repository so we are awaiting the 9.27 release before we can close this issue.

  11. stale commented on Mar 3, 2019

    @stale

    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.

  12. added
    stale
    on Mar 3, 2019
  13. removed
    stale
    on Mar 4, 2019
  14. added
    longterm
    on Mar 4, 2019
  15. maxrjones commented on Jan 21, 2022

    @maxrjones
    Member

    Just an update that I still get the same incorrect cropping with gs 9.55.0.

  16. PaulWessel commented on Jan 21, 2022

    @PaulWessel
    Contributor

    And I see GMT_PAPER_MARGIN is still 5 in 6.3.0. Not sure what happen here - the above says we changed to 1 m. I will again set to 1 m (~40 inches) and we can run tests etc. Unclear to me why this did not stick. I agree setting aside a full meter is fine given the canvas is 11 m.

  17. maxrjones commented on Jan 21, 2022

    @maxrjones
    Member

    And I see GMT_PAPER_MARGIN is still 5 in 6.3.0. Not sure what happen here - the above says we changed to 1 m. I will again set to 1 m (~40 inches) and we can run tests etc. Unclear to me why this did not stick. I agree setting aside a full meter is fine given the canvas is 11 m.

    The increase was reverted in #229 due to a different gs bug discussed in #199. I'll try out the latest PR to see if it's still a problem.

  18. PaulWessel commented on Jan 21, 2022

    @PaulWessel
    Contributor

    Thanks, surely that bug was fixed and we cannot worry about people with gs 9.2x anymore. But please check.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    longterm

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions