Skip to content

Line not plotted in polar projection for some rare cases #878

Closed

Description

@seisman

Description of the problem

The line is not plotted in the following example.

gmt plot -JP10c -R0/360/0/10 -Baf -W2p -png polar << EOF
0 0
0 20
EOF

But if I change the input data points to any of the following, the line is plotted correctly.

0 0.0001
0 20

or

0 0 
0 5
0 20

or

0 0 
0 9

Activity

  1. stale commented on Sep 8, 2019

    @stale

    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.

  2. added
    stale
    on Sep 8, 2019
  3. removed
    stale
    on Sep 8, 2019
  4. added
    bug
    longterm
    on Sep 8, 2019
  5. PaulWessel commented on Sep 8, 2019

    @PaulWessel
    Contributor

    The problem is that we assign (in gmt_map.c) the wesn_crossing function which is not appropriate for polar, where "south" is the inner radius and "north" is the other. The logic fails because the test is backwards. We also assign several other function pointers (map_wesn_overlap, map_wesn_clip) but we do use a map_polar_outside. The solution is to write and supply map_polar_overlap, map_polar_crossing, and map_polar_clip functions. This will take more time to implement and test that can be done for 6.0, so adding longterm label.

  6. added 2 commits that reference this issue on Apr 16, 2026
    62754b1
    ac580b2
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

    buglongterm

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions