Skip to content

Plotting duplicated annotated line produces corrupt PS #3530

Closed

Description

@joa-quim

From forum post

data t.dat

> -L-100 -Sqd1.0i
-86.45235040920656 44.56074532391791
-87.15496366731526 44.63460538965384
-87.52203359612746 43.70375243465723
-87.57565650687522 42.81267315180862
-87.46872284091027 42.21696862267483
-87.29959207789203 41.98325754479477
-86.88164979096022 41.9742639278875
-86.56233691428744 42.29261909586023
-86.46591956240054 42.8760163962448
-86.67090781901327 43.41777121767043
-86.7207951116628 43.91664988596499
-86.45235040920656 44.56074532391791
> -L-100 -Sqd1.0i
-86.45235040920656 44.56074532391791
-87.15496366731526 44.63460538965384
-87.52203359612746 43.70375243465723
-87.57565650687522 42.81267315180862
-87.46872284091027 42.21696862267483
-87.29959207789203 41.98325754479477
-86.88164979096022 41.9742639278875
-86.56233691428744 42.29261909586023
-86.46591956240054 42.8760163962448
-86.67090781901327 43.41777121767043
-86.7207951116628 43.91664988596499
-86.45235040920656 44.56074532391791

command

gmt psxy t.dat -R-88.50/41.45/-84.56/46.23r -Jt-86.3855/1:2175000 -P -W0.50p,black -Sqd1.0i:+d+Lh > lixo.ps

Removing the duplicated segment makes it plot correctly.

Activity

  1. PaulWessel commented on Jun 24, 2020

    @PaulWessel
    Contributor

    Related to the segment header. Removing them and I get a plot with duplicated lines. There may be some restrictions on what changes to -Sq can be done via segment headers. WIll have to see in debug what actually happens to give me a SEGV.

  2. joa-quim commented on Jun 24, 2020

    @joa-quim
    MemberAuthor

    Dumb VS2019 no longer systematically crashes in those case, which was extremely useful for it would lead directly to the crashing point.

  3. PaulWessel commented on Jun 24, 2020

    @PaulWessel
    Contributor

    Scary that we must rely on Apple clang...

  4. joa-quim commented on Jun 24, 2020

    @joa-quim
    MemberAuthor

    Yep, have to resort to Julia to when want to make use of that facility.

  5. PaulWessel commented on Jun 24, 2020

    @PaulWessel
    Contributor

    Just thinking out aloud how -S in command line and segment header should work (I am not saying it works this way, but perhaps that is should):

    1. If no -S is given on the command line then any -S in a segment header is completely ignored (you are basically selecting line or polygon mode).
    2. If an unspecified symbol is given on the command line (-S) then the -S in a segment header is fully parsed.
    3. If a complete -S is given on the command line then any -S in a segment header should be ignored.

    I am not sure about the third, but there should be a way to have either the command line (full syntax) or the segment header (-S) be in effect, no? We usually let command line options override defaults, and I guess in this context, settings in the segment header constitute defaults (?).

  6. stale commented on Sep 26, 2020

    @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.

  7. added
    stale
    on Sep 26, 2020
  8. added
    bug
    and removed
    stale
    on Sep 27, 2020
  9. added a commit that references this issue on Apr 27, 2026
    c4a6060
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

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions