Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/python-3.x/15.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 3.x 如何在三维绘图中进行离网_Python 3.x_Matplotlib_3d - Fatal编程技术网

Python 3.x 如何在三维绘图中进行离网

Python 3.x 如何在三维绘图中进行离网,python-3.x,matplotlib,3d,Python 3.x,Matplotlib,3d,我有一个3d绘图脚本: import matplotlib.pyplot as plt from mpl_toolkits.mplot3d import Axes3D import numpy as np fig = plt.figure(figsize=[5,3]) ax = fig.gca(projection = '3d') ax.set_ylim(0,3) ax.set_zlim(0,2) 我读到了 会有帮助的。如何应用 我试过: fig = plt.figure(figsize=[

我有一个3d绘图脚本:

import matplotlib.pyplot as plt
from mpl_toolkits.mplot3d import Axes3D
import numpy as np

fig = plt.figure(figsize=[5,3])
ax = fig.gca(projection = '3d')
ax.set_ylim(0,3)
ax.set_zlim(0,2)
我读到了

会有帮助的。如何应用

我试过:

fig = plt.figure(figsize=[5,3])
ax = fig.gca(projection = '3d')
ax[:set_axis_off]()
ax.set_ylim(0,3)
ax.set_zlim(0,2)
有一个错误:

/usr/lib/python3.6/_collections_abc.py:841: MatplotlibDeprecationWarning: 
The text.latex.unicode rcparam was deprecated in Matplotlib 3.0 and will be removed in 3.2.
  self[key] = other[key]
Traceback (most recent call last):
  File "axes.py", line 16, in <module>
    ax[:set_axis_off]()
NameError: name 'set_axis_off' is not defined
/usr/lib/python3.6/\u collections\u abc.py:841:MatplotlibDeprecationWarning:
Matplotlib 3.0中不推荐使用text.latex.unicode rcparam,并将在3.2中删除。
自[键]=其他[键]
回溯(最近一次呼叫最后一次):
文件“axes.py”,第16行,在
ax[:设置轴关闭]()
名称错误:未定义名称“设置轴关闭”
的,用于Julia编程语言


这方面的Python语法不同:
ax.set\u axis\u off()

谢谢,确实存在一个命令,可以完全删除砂砾,而不仅仅隐藏砂砾?
ax.set\u zticks
,请参阅。
/usr/lib/python3.6/_collections_abc.py:841: MatplotlibDeprecationWarning: 
The text.latex.unicode rcparam was deprecated in Matplotlib 3.0 and will be removed in 3.2.
  self[key] = other[key]
Traceback (most recent call last):
  File "axes.py", line 16, in <module>
    ax[:set_axis_off]()
NameError: name 'set_axis_off' is not defined