# Move Spines in 3d Pyplot

**URL:** <https://discourse.julialang.org/t/move-spines-in-3d-pyplot/40888>\
**Category:** New to Julia\
**Tags:** question\
**Created:** [June 6, 2020, 7:46pm UTC](https://discourse.julialang.org/t/move-spines-in-3d-pyplot/40888 "2020-06-06T19:46:59Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jojo\_Dad](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/jojo_dad/32/8620_2.png) [@Jojo\_Dad](https://discourse.julialang.org/u/Jojo_Dad)\
**Post date:** [June 6, 2020, 7:46pm UTC](https://discourse.julialang.org/t/move-spines-in-3d-pyplot/40888/1 "2020-06-06T19:46:59Z")

</div>

The following code is translated from Python where the last three lines move the spines:

```julia
t = 0:0.1:2π
x = sin.(t);
y = cos.(t);

fig=figure()
using3D()
ax = fig.add_subplot(111,projection="3d")

ax.plot(x,y,t);

ax.xaxis._axinfo["juggled"] = (0,0,0)
ax.yaxis._axinfo["juggled"] = (1,1,1)
ax.zaxis._axinfo["juggled"] = (2,0,1)

```

In Julia, the Spines don’t change. What am I doing wrong?

---

<div class="post-metadata">

**Author:** ![stevengj](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/stevengj/32/71_2.png) [@stevengj](https://discourse.julialang.org/u/stevengj)\
**Post date:** [June 6, 2020, 8:04pm UTC](https://discourse.julialang.org/t/move-spines-in-3d-pyplot/40888/2 "2020-06-06T20:04:13Z")

</div>

Use

```julia
using PyCall
set!(ax."xaxis"."_axinfo", "juggled", (0,0,0))

```

to prevent `ax.zaxis._axinfo` from being converted to a native Julia object before assignment.
