We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 44df916 + f7451cb commit 86db7e7Copy full SHA for 86db7e7
geatpy/visualization/PointScatter.py
@@ -87,7 +87,7 @@ def draw(self):
87
elif self.Dimension == 3:
88
if self.fig is None and self.ax is None:
89
self.fig = plt.figure() # 生成一块画布
90
- self.ax = Axes3D(self.fig) # 创建绘图区域
+ self.ax = self.fig.add_subplot(111, projection='3d') # 创建绘图区域
91
self.ax.view_init(elev=30, azim=45) # 旋转
92
for idx, data in enumerate(self.data_set):
93
params = self.params_set[idx]
0 commit comments