3d Plots - change axis intersection // inverse axis

I have a 3d plot:

using Plots

x = [0,0,0,1,1,1,2,2,2]
z = 10*rand(9) .+ 2*collect(1:9)

plot(x,y,z, st=:surface,camera = (60,15))

axes intersect at:

How can I change it so:
z and y on min z and max y. y and x at min y and min z

plot(x,y,z, st=:surface,camera = (60,15), yflip = true)

flips whole graph, not just axis, while axes are connected at the same points.

Iā€™m not sure what you are trying to do, but I think you want to rotate the plot more, so that the axes go behind the plot. Just playing around in Pluto, I found that the plot would not update angles beyond (0, 90). In the GIF below, I tried pushing the angle to -10 or 100:

Dec-02-2020 23-24-36

Is that your issue?

1 Like

Nope, I want to inverse Y axis:
YZ intersection would be (z = 0, y = 2)
YX intersection would be (y = 0, x = 0)

You want to change the origin of the axes?

Yes. Specifically of Y axis

So you want the axes to not intersect at the same point?

I want Y and X have origin in the same point (0,0,min(z))

1 Like

Oh I see now! A nice scketch is worth a thousand words! Not sure you can do that if yflip does not work. have you tried flipping your data and the tick labels manually?

I could make data negative, and make ticks as strings (without minus). But this must be simplier.

x =- [0,0,0,1,1,1,2,2,2]
y=  [0,1,2,0,1,2,0,1,2]
z = 10*rand(9) .+ 2*collect(1:9)

plot(x,y,z, st=:surface,camera = (85,15),xticks = ([-2,-1,0], [2,1,0]) )

This works, but I am disappointed.