Ich möchte ein mat-file laden und daraus plotten, der plot zeigt aber keine Kurve wobei es auch keine Fehlermeldung gibt:
Code: Alles auswählen
import numpy as np
import scipy.io as sio
import matplotlib
import matplotlib.pyplot as plt
mat_contents = sio.loadmat('file.mat')
var1 = mat_contents['var1']
var2 = mat_contents['var2']
fig = plt.figure()
plt.plot(var1,var2,'k')
plt.show()
Vielen Dank für eure Hilfe