Skip to content

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

Closed

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

Activity

  1. added
    bug
    on Mar 6, 2023
  2. PaulWessel commented on Mar 6, 2023

    @PaulWessel
    Contributor

    Just so I understand, those work OK in classic? I can see why they may not be appropriate in modern mode so perhaps the easy way out is to

    1. State in the documentation that -Xc|f are for classic only
    2. Actually disallow those settings in modern.
  3. joa-quim commented on Mar 6, 2023

    @joa-quim
    Member

    Agree and I would even hide c from docs. In the times of psconvert -A and walled sized papers it really makes no sense.

  4. seisman commented on Mar 7, 2023

    @seisman
    MemberAuthor

    Just so I understand, those work OK in classic? I can see why they may not be appropriate in modern mode so perhaps the easy way out is to

    1. State in the documentation that -Xc|f are for classic only
    2. Actually disallow those settings in modern.

    I agree that both make no sense in modern mode.

  5. PaulWessel commented on Mar 7, 2023

    @PaulWessel
    Contributor

    Implementing the new check on -Xc and -Xf yields 5-6 failures as those scripts used -Xc I think. Will need to run without to see if any issues,

  6. gd-a commented on Mar 7, 2023

    @gd-a
    Contributor

    Is it related?

    #6291

  7. seisman commented on Mar 8, 2023

    @seisman
    MemberAuthor

    Is it related?

    #6291

    I think these two issues are related.

    Do you agree that -Xc and -Xf don't make sense in modern mode?

    Could you please check if you still have the problem in #6291 after Paul's PR #7304 is merged into master?

  8. gd-a commented on Mar 8, 2023

    @gd-a
    Contributor

    Could you please check if you still have the problem

    @Will do later today@.
    Seems to work

  9. gd-a commented on Mar 8, 2023

    @gd-a
    Contributor

    Do you agree that -Xc and -Xf don't make sense in modern mode?

    I don't.
    Now that I switched to modern mode for most of my scripts, being flexible with positioning is a big plus ... At least, it is as long as figure, subplot and inset are not well-rounded.

    See this example. Being able to position each part (especially in movie environment) can be a real hassle

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