From: Neal B. <ndb...@gm...> - 2013-10-23 12:05:12
|
This was using pdfpages (if that matters) Traceback (most recent call last): File "./plot_stuff2.py", line 326, in <module> the_plot.finish (args, opt, time, res) File "./plot_stuff2.py", line 145, in finish self.pdf.savefig (self.fig) File "/home/nbecker/.local/lib/python2.7/site- packages/matplotlib/backends/backend_pdf.py", line 2297, in savefig figure.savefig(self, format='pdf', **kwargs) File "/home/nbecker/.local/lib/python2.7/site-packages/matplotlib/figure.py", line 1421, in savefig self.canvas.print_figure(*args, **kwargs) File "/home/nbecker/.local/lib/python2.7/site- packages/matplotlib/backend_bases.py", line 2220, in print_figure **kwargs) File "/home/nbecker/.local/lib/python2.7/site- packages/matplotlib/backends/backend_pdf.py", line 2340, in print_pdf self.figure.draw(renderer) File "/home/nbecker/.local/lib/python2.7/site-packages/matplotlib/artist.py", line 54, in draw_wrapper draw(artist, renderer, *args, **kwargs) File "/home/nbecker/.local/lib/python2.7/site-packages/matplotlib/figure.py", line 1034, in draw func(*args) File "/home/nbecker/.local/lib/python2.7/site-packages/matplotlib/artist.py", line 54, in draw_wrapper draw(artist, renderer, *args, **kwargs) File "/home/nbecker/.local/lib/python2.7/site-packages/matplotlib/text.py", line 589, in draw self._fontproperties, angle) File "/home/nbecker/.local/lib/python2.7/site- packages/matplotlib/patheffects.py", line 102, in draw_text self._draw_text_as_path(renderer, gc, x, y, s, prop, angle, ismath) File "/home/nbecker/.local/lib/python2.7/site- packages/matplotlib/patheffects.py", line 112, in _draw_text_as_path ismath) File "/home/nbecker/.local/lib/python2.7/site- packages/matplotlib/backend_bases.py", line 526, in _get_text_path_transform path = Path(verts, codes) File "/home/nbecker/.local/lib/python2.7/site-packages/matplotlib/path.py", line 147, in __init__ assert vertices.ndim == 2 AssertionError |
From: Benjamin R. <ben...@ou...> - 2013-10-23 13:32:39
|
Can you provide a code example to reproduce this. I suspect that recent work on path effects might be to blame here. Also, exactly which version of matplotlib and numpy were you using? The assert was placed there about a year ago IIRC to deal with a short-lived numpy bug. |
From: Neal B. <ndb...@gm...> - 2013-10-23 13:51:26
|
Benjamin Root wrote: > Can you provide a code example to reproduce this. I suspect that recent > work on path effects might be to blame here. Also, exactly which version of > matplotlib and numpy were you using? The assert was placed there about a > year ago IIRC to deal with a short-lived numpy bug. The code is large and reads a bunch of data to plot. The line that triggers the error says: self.pdf.savefig (self.fig) Would it be useful to provide a pickled fig (umm,,, pickled figs) |
From: Michael D. <md...@st...> - 2013-10-23 14:29:56
|
On 10/23/2013 09:51 AM, Neal Becker wrote: > Benjamin Root wrote: > >> Can you provide a code example to reproduce this. I suspect that recent >> work on path effects might be to blame here. Also, exactly which version of >> matplotlib and numpy were you using? The assert was placed there about a >> year ago IIRC to deal with a short-lived numpy bug. > The code is large and reads a bunch of data to plot. > > > The line that triggers the error says: > > self.pdf.savefig (self.fig) > > Would it be useful to provide a pickled fig (umm,,, pickled figs) No, we really need a self-contained example that triggers it. We already have a self-contained example that works (multipage_pdf.py in the examples)... So there's something extra that's happening in your context. Maybe start with multipage_pdf.py and add things from your own app until it breaks? Mike -- _ |\/|o _|_ _. _ | | \.__ __|__|_|_ _ _ ._ _ | ||(_| |(_|(/_| |_/|(_)(/_|_ |_|_)(_)(_)| | | http://www.droettboom.com |
From: Michael D. <md...@st...> - 2013-10-23 13:38:56
|
Can you provide a standalone example to reproduce? The multipage_pdf.py example works fine with xkcd switched on. Mike On 10/23/2013 08:01 AM, Neal Becker wrote: > This was using pdfpages (if that matters) > > Traceback (most recent call last): > File "./plot_stuff2.py", line 326, in <module> > the_plot.finish (args, opt, time, res) > File "./plot_stuff2.py", line 145, in finish > self.pdf.savefig (self.fig) > File "/home/nbecker/.local/lib/python2.7/site- > packages/matplotlib/backends/backend_pdf.py", line 2297, in savefig > figure.savefig(self, format='pdf', **kwargs) > File "/home/nbecker/.local/lib/python2.7/site-packages/matplotlib/figure.py", > line 1421, in savefig > self.canvas.print_figure(*args, **kwargs) > File "/home/nbecker/.local/lib/python2.7/site- > packages/matplotlib/backend_bases.py", line 2220, in print_figure > **kwargs) > File "/home/nbecker/.local/lib/python2.7/site- > packages/matplotlib/backends/backend_pdf.py", line 2340, in print_pdf > self.figure.draw(renderer) > File "/home/nbecker/.local/lib/python2.7/site-packages/matplotlib/artist.py", > line 54, in draw_wrapper > draw(artist, renderer, *args, **kwargs) > File "/home/nbecker/.local/lib/python2.7/site-packages/matplotlib/figure.py", > line 1034, in draw > func(*args) > File "/home/nbecker/.local/lib/python2.7/site-packages/matplotlib/artist.py", > line 54, in draw_wrapper > draw(artist, renderer, *args, **kwargs) > File "/home/nbecker/.local/lib/python2.7/site-packages/matplotlib/text.py", > line 589, in draw > self._fontproperties, angle) > File "/home/nbecker/.local/lib/python2.7/site- > packages/matplotlib/patheffects.py", line 102, in draw_text > self._draw_text_as_path(renderer, gc, x, y, s, prop, angle, ismath) > File "/home/nbecker/.local/lib/python2.7/site- > packages/matplotlib/patheffects.py", line 112, in _draw_text_as_path > ismath) > File "/home/nbecker/.local/lib/python2.7/site- > packages/matplotlib/backend_bases.py", line 526, in _get_text_path_transform > path = Path(verts, codes) > File "/home/nbecker/.local/lib/python2.7/site-packages/matplotlib/path.py", > line 147, in __init__ > assert vertices.ndim == 2 > AssertionError > > > ------------------------------------------------------------------------------ > October Webinars: Code for Performance > Free Intel webinars can help you accelerate application performance. > Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from > the latest Intel processors and coprocessors. See abstracts and register > > http://pubads.g.doubleclick.net/gampad/clk?id=60135991&iu=/4140/ostg.clktrk > _______________________________________________ > Matplotlib-devel mailing list > Mat...@li... > https://lists.sourceforge.net/lists/listinfo/matplotlib-devel -- _ |\/|o _|_ _. _ | | \.__ __|__|_|_ _ _ ._ _ | ||(_| |(_|(/_| |_/|(_)(/_|_ |_|_)(_)(_)| | | http://www.droettboom.com |