Expected behavior of subplot frame annotations #4756
PaulWessel
started this conversation in
Code development discussion
Replies: 4 comments 4 replies
|
I think I should add these scripts to our modern test suite (all passing for now until we make any changes). Pinging @GenericMappingTools/core and @GenericMappingTools/gmt-contributors to comment on this discussion item. |
3 replies
|
Didn't follow them all, but go. |
0 replies
|
Just for the record, I was not accurate above. The MAP_FRAME_AXES default in master at this time is WESNZ. That means if -SC or -SR determine which axes should be annotated, the others should be relegated to the lower-case version of what MAP_FRAME_AXES says, i.e., wesn. Given that, these are the only one that passes: 1.x (all of the ones with no -S), x.2 (all LL panels are correct). The rest fail. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Given we currently have some minor differences between the behavior in master and gmt-themes branch, I wanted to clarify what I think is the desired behavior before we hunt for bugs. Below is what I think was the intent (which may differ from current implementation).
There are four distinct cases depending on the use of -S:
1: No -S:
2: Using -SC:
Each column of panels share the same xmin/xmax range and thus can share axes:
3: Using -SR:
Each row of panels share the same ymin/ymax range and thus can share axes:
**4: Using both -SC and -SR
For each of these cases I see four possible variations:
This yields a total of 16 demonstrations of 2x2 subplot behaviors. I have grouped each subplot category so we can examine each case and its four variants. Note: In master, the default MAP_FRAME_AXES remains WESNZ at this writing so I modify that in the examples. I realize I am not testing lrbt vs wesn below but we will since modern mode has a WrStZ default. Note: The panel override is always for the lower left (LL) panel in all examples.
1: No -S: I think all variants are correct.
2: Using -SC: I think 2.0 is not correct. The three x-axes outside -SC annotation control should be drawn per WESN. 2.1 works for rows but one x-axis drawn missing (should be like 2.2). 2.3 panel OK but otherwise same issue as 2.0
3: Using -SR: Same problems as case 2 but transposed.
**4: Using both -SC and -SR CLoser, but 4.1 shows MAP_FRAME_AXES is not consulted. The rest looks OK
All reactions