Created
July 24, 2015 21:39
-
-
Save ee08b397/a735227cbcecd88666cc to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from mpl_toolkits.mplot3d import Axes3D | |
import mpl_toolkits.mplot3d.art3d as art3d | |
fig = plt.figure() | |
ax=fig.gca(projection='3d') | |
for i in ["x","y","z"]: | |
circle = Circle((0, 0), 1) | |
circle.set_clip_box(ax.bbox) | |
circle.set_edgecolor('b') | |
circle.set_facecolor('none') # "none" not None | |
ax.add_patch(circle) | |
art3d.pathpatch_2d_to_3d(circle, z=0, zdir=i) | |
plt.scatter(0, 0, s=800, facecolors='none', edgecolors='r') # alternative, looks not bad | |
plt.show() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment