-
Notifications
You must be signed in to change notification settings - Fork 340
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Some issues with 3D plots #6741
Comments
What is that 1 doing there? Without it it works fine.
Yeap, this one looks buggy. Here, removing the 1 makes no difference. |
I seem to remember that -p still has some weird behaviors in some corner cases. This works
|
The corner on the xy plane at which the z-axis is drawn. Number from 1 to 4. |
Yes it works because the default is -pz. But I need -px to shift the yz-plane along the x-axis (as the xy-plane is shifted along the z-axis in the first picture). |
Ah, yes. Since I never used those corner options I forgot about them (and pretending to remember all -B varieties is high presumption). |
-p is somehow mixing the dimensions sizes. See this
But now we change the size of the z axis to the same as y, we get the correct plot
|
No, this is still incorrect. Pay attention to the y- and z-axes, they are parallel. |
xref: #529 |
Agree. In your first drawing, the plane is also shifted correctly, only the frame is drawn incorrectly. |
Looking better at this I'm no longer convinced that this is a bug. What it does is the, useless, re-projection of one of the planes on another wall. And not using a cube the plane sides have do the same size as the wall where they are projected and hence we see what we see. But on a more useful exercise, I'm trying to plot an image one the sides of a cube (that way well be the vertical sides of a This one is correct (commands in Julia but with plain GMT generated syntax below)
Now let's try to move it along the latitudinal axis. It wrongly moves it along the zz axis
@remkos do you still remember where is the code that deals with this? |
More work and more comprehension. The above image is not bugged either. It's raised in the xz plane because I first moved it up along lat with the The real problem that I'm facing right now is that the z in |
It was only designed to work on those three planes as illustrated in @joa-quim 's last post. |
Remko, what I did was to compute the missing z feature obedience in terms of And note also that plotting on the North side is not currently possible because it needs that z. Only the South side should work well. |
First, the command
gives an error
If I replace "sw" with "ws" or "s" with "S" in the last -B option, the command works fine. The bug is small but curious.
Second, when shifting the xy plane by zlevel parameter of the -p option, the "+b" flag does not draw the bottom face of the cube
gmt psbasemap -R0/10/0/20/0/30 -JX5c/10c -JZ15c -Bwsenz1+b -pz135/40/10 -P >test1.ps
Also, the manual says
but some of the drawn lines are not foreground.
Third, the command
gmt psbasemap -R0/10/0/20/0/30 -JX5c/10c -JZ15c -Bxa+lx -Bya+ly -Bza+lz -BwsENZ1+b -px135/40/0 -P >test2.ps
produces a result that I find it difficult to interpret. It looks like the z-axis is pointing wrong.
![test2](https://user-images.githubusercontent.com/5275343/170194756-58751358-997c-4330-9c9e-634388dc5474.png)
The text was updated successfully, but these errors were encountered: