Skip to content

Issue with custom axis annotations: primary annotations ignored while secondary plotted twice. #8955

Closed

Description

@mkononets

There's an issue with plotting primary and secondary custom axis annotations in one plotting call. The result is that secondary annotations are plotted twice: both as primary and secondary. Primary annotation specs disregarded. Example:

cat << EOF > x_sannots.txt
0	ig	A
40	ig	B
80	ig
EOF

cat << EOF > x_pannots.txt
0	ig 1
10	ig 2
20	ig 3
30	ig 4
40	ig 1
50	ig 2
60	ig 3
70	ig 4
80	ig
EOF

gmt basemap -R0/80/0/80 -JX6c/6c -Bpycx_pannots.txt -Bsycx_sannots.txt -Bpxcx_pannots.txt -Bsxcx_sannots.txt -png quick

quick.png:

Image

The desired result requires two separate basemap calls, one for primary, the other for secondary annotations:

cat << EOF > x_sannots.txt
0	ig	A
40	ig	B
80	ig
EOF

cat << EOF > x_pannots.txt
0	ig 1
10	ig 2
20	ig 3
30	ig 4
40	ig 1
50	ig 2
60	ig 3
70	ig 4
80	ig
EOF

gmt begin quick3 png
gmt basemap -R0/80/0/80 -JX6c -Bpycx_pannots.txt -Bpxcx_pannots.txt
gmt basemap -Bsxcx_sannots.txt -Bsycx_sannots.txt
gmt end show

quick3.png:

Image
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