Skip to main content
replaced http://stackoverflow.com/ with https://stackoverflow.com/
Source Link
URL Rewriter Bot
URL Rewriter Bot

I want to plot data where x axis is long. If I plot the whole x axis then the plot shrinks and it is almost unreadable. I've found thisthis answer on SO which points to following scipy/matplotlib code. But When I try to run the mentioned code I get following error:

Traceback (most recent call last): File "scrollingPlot.py", line 88, in <module> app = MyApp() File "/usr/lib/python2.7/dist-packages/wx-3.0-gtk2/wx/_core.py", line 8628, in __init__ self._BootstrapApp() File "/usr/lib/python2.7/dist-packages/wx-3.0-gtk2/wx/_core.py", line 8196, in _BootstrapApp return _core_.PyApp__BootstrapApp(*args, **kwargs) File "scrollingPlot.py", line 82, in OnInit self.frame = MyFrame(parent=None,id=-1) File "scrollingPlot.py", line 21, in __init__ self.scroll_range) File "/usr/lib/python2.7/dist-packages/wx-3.0-gtk2/wx/_core.py", line 11226, in SetScrollbar return _core_.Window_SetScrollbar(*args, **kwargs) wx._core.PyAssertionError: C++ assertion "sb" failed at ../src/gtk/window.cpp(4754) in SetScrollbar(): this window is not scrollable 

PS: Other solutions are also welcomed (preferably python, R, or something simple and multi platform)

PPS: I've opened the issue for mentioned error

I want to plot data where x axis is long. If I plot the whole x axis then the plot shrinks and it is almost unreadable. I've found this answer on SO which points to following scipy/matplotlib code. But When I try to run the mentioned code I get following error:

Traceback (most recent call last): File "scrollingPlot.py", line 88, in <module> app = MyApp() File "/usr/lib/python2.7/dist-packages/wx-3.0-gtk2/wx/_core.py", line 8628, in __init__ self._BootstrapApp() File "/usr/lib/python2.7/dist-packages/wx-3.0-gtk2/wx/_core.py", line 8196, in _BootstrapApp return _core_.PyApp__BootstrapApp(*args, **kwargs) File "scrollingPlot.py", line 82, in OnInit self.frame = MyFrame(parent=None,id=-1) File "scrollingPlot.py", line 21, in __init__ self.scroll_range) File "/usr/lib/python2.7/dist-packages/wx-3.0-gtk2/wx/_core.py", line 11226, in SetScrollbar return _core_.Window_SetScrollbar(*args, **kwargs) wx._core.PyAssertionError: C++ assertion "sb" failed at ../src/gtk/window.cpp(4754) in SetScrollbar(): this window is not scrollable 

PS: Other solutions are also welcomed (preferably python, R, or something simple and multi platform)

PPS: I've opened the issue for mentioned error

I want to plot data where x axis is long. If I plot the whole x axis then the plot shrinks and it is almost unreadable. I've found this answer on SO which points to following scipy/matplotlib code. But When I try to run the mentioned code I get following error:

Traceback (most recent call last): File "scrollingPlot.py", line 88, in <module> app = MyApp() File "/usr/lib/python2.7/dist-packages/wx-3.0-gtk2/wx/_core.py", line 8628, in __init__ self._BootstrapApp() File "/usr/lib/python2.7/dist-packages/wx-3.0-gtk2/wx/_core.py", line 8196, in _BootstrapApp return _core_.PyApp__BootstrapApp(*args, **kwargs) File "scrollingPlot.py", line 82, in OnInit self.frame = MyFrame(parent=None,id=-1) File "scrollingPlot.py", line 21, in __init__ self.scroll_range) File "/usr/lib/python2.7/dist-packages/wx-3.0-gtk2/wx/_core.py", line 11226, in SetScrollbar return _core_.Window_SetScrollbar(*args, **kwargs) wx._core.PyAssertionError: C++ assertion "sb" failed at ../src/gtk/window.cpp(4754) in SetScrollbar(): this window is not scrollable 

PS: Other solutions are also welcomed (preferably python, R, or something simple and multi platform)

PPS: I've opened the issue for mentioned error

added 102 characters in body
Source Link
Wakan Tanka
  • 8.1k
  • 19
  • 80
  • 135

I want to plot data where x axis is long. If I plot the whole x axis then the plot shrinks and it is almost unreadable. I've found this answer on SO which points to following scipy/matplotlib code. But When I try to run the mentioned code I get following error:

Traceback (most recent call last): File "scrollingPlot.py", line 88, in <module> app = MyApp() File "/usr/lib/python2.7/dist-packages/wx-3.0-gtk2/wx/_core.py", line 8628, in __init__ self._BootstrapApp() File "/usr/lib/python2.7/dist-packages/wx-3.0-gtk2/wx/_core.py", line 8196, in _BootstrapApp return _core_.PyApp__BootstrapApp(*args, **kwargs) File "scrollingPlot.py", line 82, in OnInit self.frame = MyFrame(parent=None,id=-1) File "scrollingPlot.py", line 21, in __init__ self.scroll_range) File "/usr/lib/python2.7/dist-packages/wx-3.0-gtk2/wx/_core.py", line 11226, in SetScrollbar return _core_.Window_SetScrollbar(*args, **kwargs) wx._core.PyAssertionError: C++ assertion "sb" failed at ../src/gtk/window.cpp(4754) in SetScrollbar(): this window is not scrollable 

PS: Other solutions are also welcomed (preferably python, R, or something simple and multi platform)

PPS: I've opened the issue for mentioned error

I want to plot data where x axis is long. If I plot the whole x axis then the plot shrinks and it is almost unreadable. I've found this answer on SO which points to following scipy/matplotlib code. But When I try to run the mentioned code I get following error:

Traceback (most recent call last): File "scrollingPlot.py", line 88, in <module> app = MyApp() File "/usr/lib/python2.7/dist-packages/wx-3.0-gtk2/wx/_core.py", line 8628, in __init__ self._BootstrapApp() File "/usr/lib/python2.7/dist-packages/wx-3.0-gtk2/wx/_core.py", line 8196, in _BootstrapApp return _core_.PyApp__BootstrapApp(*args, **kwargs) File "scrollingPlot.py", line 82, in OnInit self.frame = MyFrame(parent=None,id=-1) File "scrollingPlot.py", line 21, in __init__ self.scroll_range) File "/usr/lib/python2.7/dist-packages/wx-3.0-gtk2/wx/_core.py", line 11226, in SetScrollbar return _core_.Window_SetScrollbar(*args, **kwargs) wx._core.PyAssertionError: C++ assertion "sb" failed at ../src/gtk/window.cpp(4754) in SetScrollbar(): this window is not scrollable 

PS: Other solutions are also welcomed (preferably python, R, or something simple and multi platform)

I want to plot data where x axis is long. If I plot the whole x axis then the plot shrinks and it is almost unreadable. I've found this answer on SO which points to following scipy/matplotlib code. But When I try to run the mentioned code I get following error:

Traceback (most recent call last): File "scrollingPlot.py", line 88, in <module> app = MyApp() File "/usr/lib/python2.7/dist-packages/wx-3.0-gtk2/wx/_core.py", line 8628, in __init__ self._BootstrapApp() File "/usr/lib/python2.7/dist-packages/wx-3.0-gtk2/wx/_core.py", line 8196, in _BootstrapApp return _core_.PyApp__BootstrapApp(*args, **kwargs) File "scrollingPlot.py", line 82, in OnInit self.frame = MyFrame(parent=None,id=-1) File "scrollingPlot.py", line 21, in __init__ self.scroll_range) File "/usr/lib/python2.7/dist-packages/wx-3.0-gtk2/wx/_core.py", line 11226, in SetScrollbar return _core_.Window_SetScrollbar(*args, **kwargs) wx._core.PyAssertionError: C++ assertion "sb" failed at ../src/gtk/window.cpp(4754) in SetScrollbar(): this window is not scrollable 

PS: Other solutions are also welcomed (preferably python, R, or something simple and multi platform)

PPS: I've opened the issue for mentioned error

Source Link
Wakan Tanka
  • 8.1k
  • 19
  • 80
  • 135

Plotting the data with scrollable x (time/horizontal) axis on Linux

I want to plot data where x axis is long. If I plot the whole x axis then the plot shrinks and it is almost unreadable. I've found this answer on SO which points to following scipy/matplotlib code. But When I try to run the mentioned code I get following error:

Traceback (most recent call last): File "scrollingPlot.py", line 88, in <module> app = MyApp() File "/usr/lib/python2.7/dist-packages/wx-3.0-gtk2/wx/_core.py", line 8628, in __init__ self._BootstrapApp() File "/usr/lib/python2.7/dist-packages/wx-3.0-gtk2/wx/_core.py", line 8196, in _BootstrapApp return _core_.PyApp__BootstrapApp(*args, **kwargs) File "scrollingPlot.py", line 82, in OnInit self.frame = MyFrame(parent=None,id=-1) File "scrollingPlot.py", line 21, in __init__ self.scroll_range) File "/usr/lib/python2.7/dist-packages/wx-3.0-gtk2/wx/_core.py", line 11226, in SetScrollbar return _core_.Window_SetScrollbar(*args, **kwargs) wx._core.PyAssertionError: C++ assertion "sb" failed at ../src/gtk/window.cpp(4754) in SetScrollbar(): this window is not scrollable 

PS: Other solutions are also welcomed (preferably python, R, or something simple and multi platform)