Note
Go to the end to download the full example code.
Plot Sphere#
import numpy as np
import matplotlib.pyplot as plt
from pytransform3d.transformations import plot_transform
from pytransform3d.plot_utils import plot_sphere, remove_frame
ax = plot_sphere(
radius=0.5, wireframe=False, alpha=0.1, color="k", ax_s=0.5)
plot_sphere(ax=ax, radius=0.5, wireframe=True)
plot_transform(ax=ax, A2B=np.eye(4), s=0.3, lw=3)
remove_frame(ax)
plt.show()
Total running time of the script: (0 minutes 0.044 seconds)