Ich nutze als gui unter suse linux wxpython.
Mein script läuft bis zur gui auch einwandfrei.
Starte ich dann aber eine plot unter matplotlib bekomme ich nur den error "segmentation fault" und das script läuft aber einwandfrei durch.
Aber der plot wird nicht angezeigt.
Tippe ich jedoch die relevanten zeilen code per hand in eine shell, dann läuft es einwandfrei.
Der relevante codeteil ist:
Code: Alles auswählen
import os
import wx
import matplotlib.pyplot as plt
import numpy as np
#test für suse linux
det_matrix = [[1,2,3,4],[2,8,19,100],[6,100,65,13],[3,9,12,5]]
np_array_matrix = np.array(det_matrix)
fig = plt.figure()
plt.pcolormesh(np_array_matrix)
plt.axis([0, 128, 0, 960])
plt.colorbar()
plt.show()
hat jemand ne idee woran das liegen könnte?
thx