Skip to content
Snippets Groups Projects
Verified Commit c1cee00b authored by Anton Akhmerov's avatar Anton Akhmerov
Browse files

avoid using deprecated block matrix call

parent 0b51b433
No related branches found
No related tags found
No related merge requests found
......@@ -119,9 +119,12 @@ if mpl_available:
phi = np.linspace(0, pi, 21)
xyz = np.c_[np.cos(phi), np.sin(phi), 0 * phi].T.reshape(-1, 1, 21)
unit_sphere = np.bmat([[xyz[0], xyz[2]], [xyz[1], xyz[0]],
[xyz[2], xyz[1]]])
unit_sphere = np.asarray(unit_sphere)
# TODO: use np.block once we depend on numpy >= 1.13.
unit_sphere = np.vstack([
np.hstack([xyz[0], xyz[2]]),
np.hstack([xyz[1], xyz[0]]),
np.hstack([xyz[2], xyz[1]]),
])
def projected_length(ax, length):
rc = np.array([ax.get_xlim3d(), ax.get_ylim3d(), ax.get_zlim3d()])
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment