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 in plotting XZ and YZ planes in perspective view #529
If my understanding of -p option is correct, -px would plot a YZ plane at x=5 (the center of X axis). However, it seems the YZ plane is plotted at x=2.5. The same happens to -py.
Is this a bug or do I misunderstand the -p option.
Certainly looks like a bug or two. We agree that the -pz option seems to work but not the other two. I am also not sure about the lack of the "5" annotation on the z-axis, especially for the last two plots.
Perhaps @remkos can have a look at this as he implemented this version of -p I think. I am not sure what our intent is with the "z" value in -p when -px or -py are selected. We clearly also have code that seeks to skip the plotting of the z-annotation at the level of the horizontal plane, and that code predates -px and -py as well.
This issue has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed if no further activity occurs within 7 days. Thank you for your contributions.
I will put this one on me. The whole plotting with -px and -py was never implemented robustly, and some things simply cannot work given the way the projection is implemented in PostScript.
However, this is clearly an error and it ought to be corrected.
#7518 Fixed the bad plane location for the second and third cases. However the base of the cube is no longer plotted, though it wasn't anymore before #7518 fix so an unrelated issue.
The original intent when -px -py were implemented was to slap an x-y plot onto one of the "walls". That's why the annotations were taken from the -Rx0/x1/y0/y1.
In the GMT4 times, with all the commands needing individual -R -J, this was kind of logical.
Not so today with the -R -J in the subplot statement.
Activity
PaulWessel commentedon Mar 18, 2019
Certainly looks like a bug or two. We agree that the -pz option seems to work but not the other two. I am also not sure about the lack of the "5" annotation on the z-axis, especially for the last two plots.
PaulWessel commentedon Mar 24, 2019
Perhaps @remkos can have a look at this as he implemented this version of -p I think. I am not sure what our intent is with the "z" value in -p when -px or -py are selected. We clearly also have code that seeks to skip the plotting of the z-annotation at the level of the horizontal plane, and that code predates -px and -py as well.
stale commentedon Apr 23, 2019
This issue has been automatically marked as stale because it has not had activity in the last 30 days. It will be closed if no further activity occurs within 7 days. Thank you for your contributions.
remkos commentedon Apr 30, 2019
I will put this one on me. The whole plotting with
-pxand-pywas never implemented robustly, and some things simply cannot work given the way the projection is implemented in PostScript.However, this is clearly an error and it ought to be corrected.
Open figures using the associated application on Windows (GenericMapp…
Improve Figure.show for displaying previews in Jupyter notebooks and …
joa-quim commentedon Jun 11, 2023
#7518 Fixed the bad plane location for the second and third cases. However the base of the cube is no longer plotted, though it wasn't anymore before #7518 fix so an unrelated issue.
seisman commentedon Jun 12, 2023
After PR #7518 I'm getting this:

The plane locations are correct, but the z-annotation locations are wrong.
joa-quim commentedon Jul 18, 2023
But you were also getting that before #7518 and if no one will fix it, no point in having this issue open.
seisman commentedon Jul 18, 2023
No, the z-annotation locations were correct before #7518.
PaulWessel commentedon Oct 29, 2023
Revisit this with a slightly modified script using subplot:
which gives almost the above plot but OK z-annotations. However, a few bugs is noted:
Clearly, the px and py are still not implemented correctly.
PaulWessel commentedon Nov 7, 2023
If I change the -R so the are different:
Then I get this:
So it always annotates x & y values but I think should switch to y-z for -px and and x-z if -py.
remkos commentedon Nov 8, 2023
The original intent when -px -py were implemented was to slap an x-y plot onto one of the "walls". That's why the annotations were taken from the -Rx0/x1/y0/y1.
In the GMT4 times, with all the commands needing individual -R -J, this was kind of logical.
Not so today with the -R -J in the subplot statement.
Tackle the -px... -py... walls plot option (#9047)
joa-quim commentedon May 31, 2026
#9047 fixed most of this