{"action":"opened","issue":{"url":"https://api.github.com/repos/matplotlib/matplotlib/issues/5907","labels_url":"https://api.github.com/repos/matplotlib/matplotlib/issues/5907/labels{/name}","comments_url":"https://api.github.com/repos/matplotlib/matplotlib/issues/5907/comments","events_url":"https://api.github.com/repos/matplotlib/matplotlib/issues/5907/events","html_url":"https://github.com/matplotlib/matplotlib/issues/5907","id":128568523,"number":5907,"title":"OverflowError: In draw_path: Exceeded cell block limit","user":{"login":"davidrpugh","id":2219562,"avatar_url":"https://avatars.githubusercontent.com/u/2219562?v=3","gravatar_id":"","url":"https://api.github.com/users/davidrpugh","html_url":"https://github.com/davidrpugh","followers_url":"https://api.github.com/users/davidrpugh/followers","following_url":"https://api.github.com/users/davidrpugh/following{/other_user}","gists_url":"https://api.github.com/users/davidrpugh/gists{/gist_id}","starred_url":"https://api.github.com/users/davidrpugh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidrpugh/subscriptions","organizations_url":"https://api.github.com/users/davidrpugh/orgs","repos_url":"https://api.github.com/users/davidrpugh/repos","events_url":"https://api.github.com/users/davidrpugh/events{/privacy}","received_events_url":"https://api.github.com/users/davidrpugh/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-01-25T16:00:06Z","updated_at":"2016-01-25T16:00:06Z","closed_at":null,"body":"I am using `matplotlib` 1.5.1 on MacOSX to plot large datasets (roughly 2 million points) in a Jupyter notebook.  When generating the plot using...\r\n\r\n```python\r\nfig, ax = plt.subplots(1, 1)\r\npanel_data.Gpi2.price.plot(ax=ax, logy=True)\r\n```\r\n...I get the following error...\r\n```python\r\n<matplotlib.axes._subplots.AxesSubplot at 0x13e9b4860>\r\nError in callback <function install_repl_displayhook.<locals>.post_execute at 0x10b6cc950> (for post_execute):\r\n---------------------------------------------------------------------------\r\nOverflowError                             Traceback (most recent call last)\r\n/Users/drpugh/anaconda/lib/python3.4/site-packages/matplotlib/pyplot.py in post_execute()\r\n    145             def post_execute():\r\n    146                 if matplotlib.is_interactive():\r\n--> 147                     draw_all()\r\n    148 \r\n    149             # IPython >= 2\r\n\r\n/Users/drpugh/anaconda/lib/python3.4/site-packages/matplotlib/_pylab_helpers.py in draw_all(cls, force)\r\n    148         for f_mgr in cls.get_all_fig_managers():\r\n    149             if force or f_mgr.canvas.figure.stale:\r\n--> 150                 f_mgr.canvas.draw_idle()\r\n    151 \r\n    152 atexit.register(Gcf.destroy_all)\r\n\r\n/Users/drpugh/anaconda/lib/python3.4/site-packages/matplotlib/backend_bases.py in draw_idle(self, *args, **kwargs)\r\n   2024         if not self._is_idle_drawing:\r\n   2025             with self._idle_draw_cntx():\r\n-> 2026                 self.draw(*args, **kwargs)\r\n   2027 \r\n   2028     def draw_cursor(self, event):\r\n\r\n/Users/drpugh/anaconda/lib/python3.4/site-packages/matplotlib/backends/backend_agg.py in draw(self)\r\n    472 \r\n    473         try:\r\n--> 474             self.figure.draw(self.renderer)\r\n    475         finally:\r\n    476             RendererAgg.lock.release()\r\n\r\n/Users/drpugh/anaconda/lib/python3.4/site-packages/matplotlib/artist.py in draw_wrapper(artist, renderer, *args, **kwargs)\r\n     59     def draw_wrapper(artist, renderer, *args, **kwargs):\r\n     60         before(artist, renderer)\r\n---> 61         draw(artist, renderer, *args, **kwargs)\r\n     62         after(artist, renderer)\r\n     63 \r\n\r\n/Users/drpugh/anaconda/lib/python3.4/site-packages/matplotlib/figure.py in draw(self, renderer)\r\n   1157         dsu.sort(key=itemgetter(0))\r\n   1158         for zorder, a, func, args in dsu:\r\n-> 1159             func(*args)\r\n   1160 \r\n   1161         renderer.close_group('figure')\r\n\r\n/Users/drpugh/anaconda/lib/python3.4/site-packages/matplotlib/artist.py in draw_wrapper(artist, renderer, *args, **kwargs)\r\n     59     def draw_wrapper(artist, renderer, *args, **kwargs):\r\n     60         before(artist, renderer)\r\n---> 61         draw(artist, renderer, *args, **kwargs)\r\n     62         after(artist, renderer)\r\n     63 \r\n\r\n/Users/drpugh/anaconda/lib/python3.4/site-packages/matplotlib/axes/_base.py in draw(self, renderer, inframe)\r\n   2322 \r\n   2323         for zorder, a in dsu:\r\n-> 2324             a.draw(renderer)\r\n   2325 \r\n   2326         renderer.close_group('axes')\r\n\r\n/Users/drpugh/anaconda/lib/python3.4/site-packages/matplotlib/artist.py in draw_wrapper(artist, renderer, *args, **kwargs)\r\n     59     def draw_wrapper(artist, renderer, *args, **kwargs):\r\n     60         before(artist, renderer)\r\n---> 61         draw(artist, renderer, *args, **kwargs)\r\n     62         after(artist, renderer)\r\n     63 \r\n\r\n/Users/drpugh/anaconda/lib/python3.4/site-packages/matplotlib/lines.py in draw(self, renderer)\r\n    756                     gc.set_sketch_params(*self.get_sketch_params())\r\n    757 \r\n--> 758                 drawFunc(renderer, gc, tpath, affine.frozen())\r\n    759                 gc.restore()\r\n    760 \r\n\r\n/Users/drpugh/anaconda/lib/python3.4/site-packages/matplotlib/lines.py in _draw_lines(self, renderer, gc, path, trans)\r\n   1168 \r\n   1169     def _draw_lines(self, renderer, gc, path, trans):\r\n-> 1170         self._lineFunc(renderer, gc, path, trans)\r\n   1171 \r\n   1172     def _draw_steps_pre(self, renderer, gc, path, trans):\r\n\r\n/Users/drpugh/anaconda/lib/python3.4/site-packages/matplotlib/lines.py in _draw_solid(self, renderer, gc, path, trans)\r\n   1193     def _draw_solid(self, renderer, gc, path, trans):\r\n   1194         gc.set_linestyle('solid')\r\n-> 1195         renderer.draw_path(gc, path, trans)\r\n   1196 \r\n   1197     def _draw_dashed(self, renderer, gc, path, trans):\r\n\r\n/Users/drpugh/anaconda/lib/python3.4/site-packages/matplotlib/backends/backend_agg.py in draw_path(self, gc, path, transform, rgbFace)\r\n    164                 self._renderer.draw_path(gc, p, transform, rgbFace)\r\n    165         else:\r\n--> 166             self._renderer.draw_path(gc, path, transform, rgbFace)\r\n    167 \r\n    168     def draw_mathtext(self, gc, x, y, s, prop, angle):\r\n\r\nOverflowError: In draw_path: Exceeded cell block limit\r\n```\r\n...oddly (at least to me) adding a `plt.show()` statement solved the problem...\r\n\r\n```python\r\nfig, ax = plt.subplots(1, 1)\r\npanel_data.Gpi2.price.plot(ax=ax, logy=True)\r\nplt.show()\r\n```\r\n...yields no error."}}