Hi there,
i dont know if this is a known problem, but after updating matplotlib and wxpython to the newest versions i have some problems in my code which worked fine before the update.
- When i start my code from the IDE (Spyder) everything is working fine
- When converting to an EXE it crashes at self.axes = self.figure.add_subplot(111) without any error message
- it worked fine in previous versions
Any ideas how to solve this?
import matplotlib.pyplot as plt
from matplotlib.figure import Figure
from matplotlib.backends.backend_wxagg import FigureCanvasWxAgg as FigureCanvas
class WeeklyOrderGraph(wx.Panel):
def __init__(self, parent):
wx.Panel.__init__(self, parent)
self.figure = self.matplotlib_figure = Figure()
self.figure.patch.set_facecolor('#F0F0F0')
print("Until here all fine")
self.axes = self.figure.add_subplot(111)
print("Before this it crashes")
self.canvas = FigureCanvas(self, 1, self.figure)
self.sizer = wx.BoxSizer(wx.VERTICAL)
self.sizer.Add(self.canvas, 1, wx.EXPAND)
self.SetSizer(self.sizer)