<p>matplotlib's 3d rendering settings are not yet complete (it's meant to be a 2d renderer program). I don't think at this stage it has this option without big hacks to the code locally (i.e. done by yourself). Mathematica offers this setting naturally.</p>

CC BY-SA 4.0
2020-05-29T07:27:13.860Z
2020-05-29T07:27:13.860Z
QGent
<p>In 2d, matplotlib plots all 4 edges(spines) of a figure.</p>

<p><a href="https://i.sstatic.net/xqSsr.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/xqSsr.png" alt="enter image description here"></a></p>

<p>In 3d, matplotlib plots 9 out of 12 edges of a cube.</p>

<p><a href="https://i.sstatic.net/IbLwG.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/IbLwG.png" alt="enter image description here"></a></p>

<p>Is it possible to set visible and color for all 12 edges(spines) of a cube in 3d?</p>

<p>I tried <code>ax.xaxis._axinfo['juggled'] = (2,0,1)</code> and found that is something live move instead of setting visible or color. </p>

<p>I also tried <code>ax.collections</code>, didn't work either.</p>

<p>Any clue?</p>

<3d>
Is it possible to set visible and color for all 12 edges(spines) of the figure (cube) in matplotlib?
JJJohn
# Is it possible to set visible and color for all 12 edges(spines) of the figure (cube) in matplotlib?

(Asked by: username_0 on 2019-10-18)

In 2d, matplotlib plots all 4 edges(spines) of a figure.

[![enter image description here](https://i.sstatic.net/xqSsr.png)](https://i.sstatic.net/xqSsr.png)

In 3d, matplotlib plots 9 out of 12 edges of a cube.

[![enter image description here](https://i.sstatic.net/IbLwG.png)](https://i.sstatic.net/IbLwG.png)

Is it possible to set visible and color for all 12 edges(spines) of a cube in 3d?

I tried `ax.xaxis._axinfo['juggled'] = (2,0,1)` and found that is something live move instead of setting visible or color.

I also tried `ax.collections`, didn't work either.

Any clue?

**Tags:** 3d


---

## 1 answers

### Answer by username_1 on 2020-05-29. Score: 0

matplotlib's 3d rendering settings are not yet complete (it's meant to be a 2d renderer program). I don't think at this stage it has this option without big hacks to the code locally (i.e. done by yourself). Mathematica offers this setting naturally.


---

