I have the result of some computations made with numpy.matrix
types
import numpy as np
import matplotlib.pyplot as plt
from mpl_toolkits.mplot3d import Axes3D
fig = plt.figure()
ax = Axes3D(fig)
# [...]
# Downsampling for plotting
# type(verts): np.matrix
# verts.shape: (3, 700000)
verts = verts_small[:, ::1000]
ax.plot(verts[0, :], verts[1, :], verts[2, :], 'o')
This has strange behavior. Plots the points all in a line.
If instead:
verts = np.array(verts[:, ::1000])
the 3D-plot works as expected. Is this an intended behavior or is it a bug?