You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Bug or documentation issue: -Xc and -Xf don't work in modern mode #7296
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
-Xa10c
-Xc10c
-Xf10c
System information
GMT version (gmt --version): 6.5.0_21ae9cb_2023.03.05
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
Activity
PaulWessel commentedon Mar 6, 2023
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
joa-quim commentedon Mar 6, 2023
Agree and I would even hide c from docs. In the times of
psconvert -Aand walled sized papers it really makes no sense.seisman commentedon Mar 7, 2023
I agree that both make no sense in modern mode.
PaulWessel commentedon Mar 7, 2023
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,
gd-a commentedon Mar 7, 2023
Is it related?
#6291
seisman commentedon Mar 8, 2023
I think these two issues are related.
Do you agree that
-Xcand-Xfdon'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?
gd-a commentedon Mar 8, 2023
@
Will do later today@.Seems to work
gd-a commentedon Mar 8, 2023
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,subplotandinsetare not well-rounded.See this example. Being able to position each part (especially in
movieenvironment) can be a real hassle