How do I offset the origin of one axis in PyPlot Plot3D


#1

I am doing a 3D plot with Plot3D

using PyPlot

< code that computes x1, x2, x3 >

plot3D(x1,x2,x3)
xlim(6378237-1000,6378237+1000)
ylim(-1000,1000)
zlim(0,1000)

Instead of setting the limits of the x-axis with xlim() I would like to set the origin of the x-axis to be 6378237. Which Julia PyPlot command does this?

(It is surprisingly difficult to find the answer on the web)


#2

This SO thread may be of help to you if I understood your question correctly:

Every command you type in matplotlib/pyplot should work as it is with PyPlot.jl. If it doesn’t, you can open an issue on GitHub.