Skip to content

Instantly share code, notes, and snippets.

@AlexanderFabisch
Created November 7, 2018 21:35
Show Gist options
  • Save AlexanderFabisch/824983ec48c9dc49bf9e01433edd1cb7 to your computer and use it in GitHub Desktop.
Save AlexanderFabisch/824983ec48c9dc49bf9e01433edd1cb7 to your computer and use it in GitHub Desktop.
Plot frame without any axis
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