Skip to content

Remove a MatplotlibDeprecationWarning #129

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft
wants to merge 1 commit into
base: 5.x
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 16 additions & 7 deletions geomdl/visualization/VisMPL.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,8 @@ def render(self, **kwargs):

# Draw control points polygon and the 3D curve
fig = plt.figure(figsize=self.vconf.figure_size, dpi=self.vconf.figure_dpi)
ax = Axes3D(fig)
ax = Axes3D(fig, auto_add_to_figure=False)
fig.add_axes(ax)

# Start plotting
for plot in self._plots:
Expand Down Expand Up @@ -331,7 +332,8 @@ def animate(self, **kwargs):

# Start plotting of the surface and the control points grid
fig = plt.figure(figsize=self.vconf.figure_size, dpi=self.vconf.figure_dpi)
ax = Axes3D(fig)
ax = Axes3D(fig, auto_add_to_figure=False)
fig.add_axes(ax)

# Start plotting
surf_count = 0
Expand Down Expand Up @@ -428,7 +430,9 @@ def render(self, **kwargs):

# Start plotting of the surface and the control points grid
fig = plt.figure(figsize=self.vconf.figure_size, dpi=self.vconf.figure_dpi)
ax = Axes3D(fig)
ax = Axes3D(fig, auto_add_to_figure=False)
fig.add_axes(ax)


surf_count = 0
# Start plotting
Expand Down Expand Up @@ -562,7 +566,9 @@ def render(self, **kwargs):

# Start plotting of the surface and the control points grid
fig = plt.figure(figsize=self.vconf.figure_size, dpi=self.vconf.figure_dpi)
ax = Axes3D(fig)
ax = Axes3D(fig, auto_add_to_figure=False)
fig.add_axes(ax)


# Start plotting
for plot in self._plots:
Expand Down Expand Up @@ -671,7 +677,8 @@ def render(self, **kwargs):

# Start plotting of the surface and the control points grid
fig = plt.figure(figsize=self.vconf.figure_size, dpi=self.vconf.figure_dpi)
ax = Axes3D(fig)
ax = Axes3D(fig, auto_add_to_figure=False)
fig.add_axes(ax)

# Start plotting
for plot in self._plots:
Expand Down Expand Up @@ -778,7 +785,8 @@ def render(self, **kwargs):

# Start plotting of the surface and the control points grid
fig = plt.figure(figsize=self.vconf.figure_size, dpi=self.vconf.figure_dpi)
ax = Axes3D(fig)
ax = Axes3D(fig, auto_add_to_figure=False)
fig.add_axes(ax)

# Start plotting
for plot in self._plots:
Expand Down Expand Up @@ -863,7 +871,8 @@ def render(self, **kwargs):

# Start plotting of the surface and the control points grid
fig = plt.figure(figsize=self.vconf.figure_size, dpi=self.vconf.figure_dpi)
ax = Axes3D(fig)
ax = Axes3D(fig, auto_add_to_figure=False)
fig.add_axes(ax)

# Start plotting
for plot in self._plots:
Expand Down