Skip to content

Bug or documentation issue: -Xc and -Xf don't work in modern mode #7296

Closed
@seisman

Description

@seisman

Description of the problem
In the following script, I try to shift the plotting origin with different ways. -X10c, -Xa10c and -Xr10c work as expected, but -Xc10c and -Xf10c don't.

gmt begin
for mode in "" "a" "c" "f" "r"; do
	echo "Shift plotting origin with -X${mode}10c"
	gmt figure shift-X${mode}10c png
	gmt basemap -R0/10/0/10 -JX10c -Baf -B+tFrame1
	gmt basemap -R0/10/0/10 -JX10c -Baf -B+tFrame2 -X${mode}10c
	gmt basemap -R0/5/0/5 -JX5c -Baf -B+tFrame3
done
gmt end show

-X10c or -Xr10c
shift-X10c

-Xa10c
shift-Xa10c

-Xc10c
shift-Xc10c

-Xf10c
shift-Xf10c

System information

  • GMT version (gmt --version): 6.5.0_21ae9cb_2023.03.05

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions