New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Unable to run ScrollingPlot example #4552
Comments
The problem is that the I can reproduce this error but am an unclear on when it ever worked as @rgommers Given that this example was last touched at 2010-01-03 15:12:46 and something has rotted underneath it, it should just be removed or refereed to a wx expert. I am closing this as this can be reproduced with no mpl involved at all and is from documentation we (mpl) does not maintain. import wx
class MyFrame(wx.Frame):
def __init__(self, parent, id):
wx.Frame.__init__(self, parent, id, 'scrollable plot',
style=wx.DEFAULT_FRAME_STYLE ^ wx.RESIZE_BORDER,
size=(800, 400))
self.panel = wx.Panel(self, -1)
self.panel.SetScrollbar(wx.HORIZONTAL, 0, 5,
400)
sizer = wx.BoxSizer(wx.VERTICAL)
self.panel.SetSizer(sizer)
self.panel.Fit()
class MyApp(wx.App):
def OnInit(self):
self.frame = MyFrame(parent=None, id=-1)
self.frame.Show()
self.SetTopWindow(self.frame)
return True
if __name__ == '__main__':
app = MyApp()
app.MainLoop() raises
|
Following example http://wiki.scipy.org/Cookbook/Matplotlib/ScrollingPlot?action=show throws following error:
PS: I've opened issue first time on scipy scipy/scipy#4988 but I was suggested to open issue on matplotlib because it looks like matplotlib problem
PPS: The discussion is also on SO http://stackoverflow.com/questions/31001713/plotting-the-data-with-scrollable-x-time-horizontal-axis-on-linux
[TAC added markup]
The text was updated successfully, but these errors were encountered: