I'm using python3.X.
I came across some very strange behavior in matplotlib on a numpy matrix element as an ilustration I wanted to plot a simple sinc() function:
import numpy as np
import matplotlib.pyplot as plt
t=np.matrix(np.linspace(-10,10,1024))
x=np.sinc(t)
plt.plot(t,x,color='blue', linestyle='solid', linewidth=2)
plt.show()
The above piece of code generates:

While replacing the plt.plot(...) with:
plt.plot(t,x,'-ob')
generates:
I could not figure out the reason for this behavior, would appreciate some help

plt.plotis interpreting your input as 1024 data sets and plotting each of them individually. Replace witht.Tandx.T( transpose your arrays) and it works fine