Skip to content

Commit

Permalink
Add option to remove axes from the figures
Browse files Browse the repository at this point in the history
  • Loading branch information
Onur R. Bingol committed Feb 16, 2018
1 parent 6b1301f commit b6f28a4
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions geomdl/visualization/VisMPL.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,10 @@ def render(self):
if self._config.display_legend:
plt.legend(legend_proxy, legend_names)

# Remove axes
if not self._config.display_axes:
plt.axis('off')

# Display 2D plot
plt.show()

Expand Down Expand Up @@ -120,6 +124,10 @@ def render(self):
if self._config.display_legend:
ax.legend(legend_proxy, legend_names, numpoints=1)

# Remove axes
if not self._config.display_axes:
plt.axis('off')

# Display the 3D plot
plt.show()

Expand Down Expand Up @@ -165,6 +173,10 @@ def render(self):
if self._config.display_legend:
ax.legend(legend_proxy, legend_names, numpoints=1)

# Remove axes
if not self._config.display_axes:
plt.axis('off')

# Display the 3D plot
plt.show()

Expand Down Expand Up @@ -210,6 +222,10 @@ def render(self):
if self._config.display_legend:
ax.legend(legend_proxy, legend_names, numpoints=1)

# Remove axes
if not self._config.display_axes:
plt.axis('off')

# Display the 3D plot
plt.show()

Expand Down Expand Up @@ -255,6 +271,10 @@ def render(self):
if self._config.display_legend:
ax.legend(legend_proxy, legend_names, numpoints=1)

# Remove axes
if not self._config.display_axes:
plt.axis('off')

# Display the 3D plot
plt.show()

Expand Down Expand Up @@ -300,5 +320,9 @@ def render(self):
if self._config.display_legend:
ax.legend(legend_proxy, legend_names, numpoints=1)

# Remove axes
if not self._config.display_axes:
plt.axis('off')

# Display the 3D plot
plt.show()

0 comments on commit b6f28a4

Please sign in to comment.