Created
November 7, 2018 21:35
-
-
Save AlexanderFabisch/824983ec48c9dc49bf9e01433edd1cb7 to your computer and use it in GitHub Desktop.
Plot frame without any axis
This file contains 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
import numpy as np | |
from pytransform import rotations as pr | |
from pytransform import plot_utils as pp | |
import matplotlib.pyplot as plt | |
plt.figure(frameon=False) | |
ax = pp.make_3d_axis(1) | |
ax.grid(False) | |
ax.set_xticks([]) | |
ax.set_yticks([]) | |
ax.set_zticks([]) | |
R = pr.matrix_from_euler_xyz([0, 0, -0.5*np.pi]) | |
pr.plot_basis(ax=ax, R=R) | |
ax.view_init(azim=15, elev=45) | |
plt.axis("off") | |
plt.show() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment