Re: [matplotlib-devel] xkcd doesn't seem to work in MacOSX backend
Like I said, it works fine when I select the QT backend. So I have a workaround. I was just wondering wether it was supposed to work with the MacOSX backend. Does anybody know? If so, I'll file a bug report. Mark On Tue, Nov 18, 2014 at 6:55 PM, Phil Elson wrote: > Isn't the XKCD stuff baked into the Agg backend. Is it even possible to > produce XKCD svg or PDFs? > > On 18 November 2014 17:01, Jens Nielsen wrote: > >> I can reproduce it with the following traceback. Can you please open a >> bug report on Github for this issue? >> >> ``` >> Traceback (most recent call last): >> File "/usr/local/lib/python2.7/site-packages/matplotlib/artist.py", >> line 59, in draw_wrapper >> draw(artist, renderer, *args, **kwargs) >> File "/usr/local/lib/python2.7/site-packages/matplotlib/figure.py", >> line 1079, in draw >> func(*args) >> File "/usr/local/lib/python2.7/site-packages/matplotlib/artist.py", >> line 59, in draw_wrapper >> draw(artist, renderer, *args, **kwargs) >> File "/usr/local/lib/python2.7/site-packages/matplotlib/axes/_base.py", >> line 2092, in draw >> a.draw(renderer) >> File "/usr/local/lib/python2.7/site-packages/matplotlib/artist.py", >> line 59, in draw_wrapper >> draw(artist, renderer, *args, **kwargs) >> File "/usr/local/lib/python2.7/site-packages/matplotlib/lines.py", line >> 712, in draw >> drawFunc(renderer, gc, tpath, affine.frozen()) >> File "/usr/local/lib/python2.7/site-packages/matplotlib/lines.py", line >> 1067, in _draw_lines >> self._lineFunc(renderer, gc, path, trans) >> File "/usr/local/lib/python2.7/site-packages/matplotlib/lines.py", line >> 1107, in _draw_solid >> renderer.draw_path(gc, path, trans) >> File >> "/usr/local/lib/python2.7/site-packages/matplotlib/patheffects.py", line >> 115, in draw_path >> rgbFace) >> File >> "/usr/local/lib/python2.7/site-packages/matplotlib/patheffects.py", line >> 217, in draw_path >> renderer.draw_path(gc, tpath, affine, rgbFace) >> File >> "/usr/local/lib/python2.7/site-packages/matplotlib/backends/backend_macosx.py", >> line 58, in draw_path >> gc.draw_path(path, transform, linewidth, rgbFace) >> AttributeError: GraphicsContextBase instance has no attribute 'draw_path' >> ``` >> >> best >> Jens >> >> On Tue, Nov 18, 2014 at 4:12 PM, Mark Bakker wrote: >> >>> Sorry, forgot to mention that: 1.4.0 >>> >>> On Tue, Nov 18, 2014 at 5:00 PM, Benjamin Root wrote: >>> Which version of matplotlib are you using? On Tue, Nov 18, 2014 at 10:55 AM, Mark Bakker wrote: > Hello list, > > I don't seem to get xkcd to work in the MacOSX backend. When I try to > make a plot I get a nice white figure with nothing on it. Here's what I > did: > > import matplotlib.pyplot as plt > %matplotlib # responds with Using matplotlib backend: MacOSX > plt.plot([1,2,3]) # gives white figure with nothing on it > > When I do a kernel restart and specify the qt backend it works fine > (so I have a workaround), but I presume it should work, right? > > Thanks, > > Mark > > > > -- > Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server > from Actuate! Instantly Supercharge Your Business Reports and > Dashboards > with Interactivity, Sharing, Native Excel Exports, App Integration & > more > Get technology previously reserved for billion-dollar corporations, > FREE > > http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk > ___ > Matplotlib-devel mailing list > Matplotlib-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/matplotlib-devel > > >>> >>> >>> -- >>> Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server >>> from Actuate! Instantly Supercharge Your Business Reports and Dashboards >>> with Interactivity, Sharing, Native Excel Exports, App Integration & more >>> Get technology previously reserved for billion-dollar corporations, FREE >>> >>> http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk >>> ___ >>> Matplotlib-devel mailing list >>> Matplotlib-devel@lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/matplotlib-devel >>> >>> >> >> >> -- >> Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server >> from Actuate! Instantly Supercharge Your Business Reports and Dashboards >> with Interactivity, Sharing, Native Excel Exports, App Integration & more >> Get technology previously reserved for billion-dollar corporations, FREE >> >> http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clk
Re: [matplotlib-devel] xkcd doesn't seem to work in MacOSX backend
On Tue, Nov 18, 2014 at 9:55 AM, Phil Elson wrote: > Isn't the XKCD stuff baked into the Agg backend. Is it even possible to > produce XKCD svg or PDFs? > I wouldn't be surprised -- that's some pretty fancy stuff! To the OP -- maybe you can use the cocoaagg back-end... -CHB > On 18 November 2014 17:01, Jens Nielsen wrote: > >> I can reproduce it with the following traceback. Can you please open a >> bug report on Github for this issue? >> >> ``` >> Traceback (most recent call last): >> File "/usr/local/lib/python2.7/site-packages/matplotlib/artist.py", >> line 59, in draw_wrapper >> draw(artist, renderer, *args, **kwargs) >> File "/usr/local/lib/python2.7/site-packages/matplotlib/figure.py", >> line 1079, in draw >> func(*args) >> File "/usr/local/lib/python2.7/site-packages/matplotlib/artist.py", >> line 59, in draw_wrapper >> draw(artist, renderer, *args, **kwargs) >> File "/usr/local/lib/python2.7/site-packages/matplotlib/axes/_base.py", >> line 2092, in draw >> a.draw(renderer) >> File "/usr/local/lib/python2.7/site-packages/matplotlib/artist.py", >> line 59, in draw_wrapper >> draw(artist, renderer, *args, **kwargs) >> File "/usr/local/lib/python2.7/site-packages/matplotlib/lines.py", line >> 712, in draw >> drawFunc(renderer, gc, tpath, affine.frozen()) >> File "/usr/local/lib/python2.7/site-packages/matplotlib/lines.py", line >> 1067, in _draw_lines >> self._lineFunc(renderer, gc, path, trans) >> File "/usr/local/lib/python2.7/site-packages/matplotlib/lines.py", line >> 1107, in _draw_solid >> renderer.draw_path(gc, path, trans) >> File >> "/usr/local/lib/python2.7/site-packages/matplotlib/patheffects.py", line >> 115, in draw_path >> rgbFace) >> File >> "/usr/local/lib/python2.7/site-packages/matplotlib/patheffects.py", line >> 217, in draw_path >> renderer.draw_path(gc, tpath, affine, rgbFace) >> File >> "/usr/local/lib/python2.7/site-packages/matplotlib/backends/backend_macosx.py", >> line 58, in draw_path >> gc.draw_path(path, transform, linewidth, rgbFace) >> AttributeError: GraphicsContextBase instance has no attribute 'draw_path' >> ``` >> >> best >> Jens >> >> On Tue, Nov 18, 2014 at 4:12 PM, Mark Bakker wrote: >> >>> Sorry, forgot to mention that: 1.4.0 >>> >>> On Tue, Nov 18, 2014 at 5:00 PM, Benjamin Root wrote: >>> Which version of matplotlib are you using? On Tue, Nov 18, 2014 at 10:55 AM, Mark Bakker wrote: > Hello list, > > I don't seem to get xkcd to work in the MacOSX backend. When I try to > make a plot I get a nice white figure with nothing on it. Here's what I > did: > > import matplotlib.pyplot as plt > %matplotlib # responds with Using matplotlib backend: MacOSX > plt.plot([1,2,3]) # gives white figure with nothing on it > > When I do a kernel restart and specify the qt backend it works fine > (so I have a workaround), but I presume it should work, right? > > Thanks, > > Mark > > > > -- > Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server > from Actuate! Instantly Supercharge Your Business Reports and > Dashboards > with Interactivity, Sharing, Native Excel Exports, App Integration & > more > Get technology previously reserved for billion-dollar corporations, > FREE > > http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk > ___ > Matplotlib-devel mailing list > Matplotlib-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/matplotlib-devel > > >>> >>> >>> -- >>> Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server >>> from Actuate! Instantly Supercharge Your Business Reports and Dashboards >>> with Interactivity, Sharing, Native Excel Exports, App Integration & more >>> Get technology previously reserved for billion-dollar corporations, FREE >>> >>> http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk >>> ___ >>> Matplotlib-devel mailing list >>> Matplotlib-devel@lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/matplotlib-devel >>> >>> >> >> >> -- >> Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server >> from Actuate! Instantly Supercharge Your Business Reports and Dashboards >> with Interactivity, Sharing, Native Excel Exports, App Integration & more >> Get technology previously reserved for billion-dollar corporations, FREE >> >> http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk >> ___ >> Matplotlib-devel mailing lis
Re: [matplotlib-devel] xkcd doesn't seem to work in MacOSX backend
Isn't the XKCD stuff baked into the Agg backend. Is it even possible to produce XKCD svg or PDFs? On 18 November 2014 17:01, Jens Nielsen wrote: > I can reproduce it with the following traceback. Can you please open a bug > report on Github for this issue? > > ``` > Traceback (most recent call last): > File "/usr/local/lib/python2.7/site-packages/matplotlib/artist.py", line > 59, in draw_wrapper > draw(artist, renderer, *args, **kwargs) > File "/usr/local/lib/python2.7/site-packages/matplotlib/figure.py", line > 1079, in draw > func(*args) > File "/usr/local/lib/python2.7/site-packages/matplotlib/artist.py", line > 59, in draw_wrapper > draw(artist, renderer, *args, **kwargs) > File "/usr/local/lib/python2.7/site-packages/matplotlib/axes/_base.py", > line 2092, in draw > a.draw(renderer) > File "/usr/local/lib/python2.7/site-packages/matplotlib/artist.py", line > 59, in draw_wrapper > draw(artist, renderer, *args, **kwargs) > File "/usr/local/lib/python2.7/site-packages/matplotlib/lines.py", line > 712, in draw > drawFunc(renderer, gc, tpath, affine.frozen()) > File "/usr/local/lib/python2.7/site-packages/matplotlib/lines.py", line > 1067, in _draw_lines > self._lineFunc(renderer, gc, path, trans) > File "/usr/local/lib/python2.7/site-packages/matplotlib/lines.py", line > 1107, in _draw_solid > renderer.draw_path(gc, path, trans) > File "/usr/local/lib/python2.7/site-packages/matplotlib/patheffects.py", > line 115, in draw_path > rgbFace) > File "/usr/local/lib/python2.7/site-packages/matplotlib/patheffects.py", > line 217, in draw_path > renderer.draw_path(gc, tpath, affine, rgbFace) > File > "/usr/local/lib/python2.7/site-packages/matplotlib/backends/backend_macosx.py", > line 58, in draw_path > gc.draw_path(path, transform, linewidth, rgbFace) > AttributeError: GraphicsContextBase instance has no attribute 'draw_path' > ``` > > best > Jens > > On Tue, Nov 18, 2014 at 4:12 PM, Mark Bakker wrote: > >> Sorry, forgot to mention that: 1.4.0 >> >> On Tue, Nov 18, 2014 at 5:00 PM, Benjamin Root wrote: >> >>> Which version of matplotlib are you using? >>> >>> On Tue, Nov 18, 2014 at 10:55 AM, Mark Bakker wrote: >>> Hello list, I don't seem to get xkcd to work in the MacOSX backend. When I try to make a plot I get a nice white figure with nothing on it. Here's what I did: import matplotlib.pyplot as plt %matplotlib # responds with Using matplotlib backend: MacOSX plt.plot([1,2,3]) # gives white figure with nothing on it When I do a kernel restart and specify the qt backend it works fine (so I have a workaround), but I presume it should work, right? Thanks, Mark -- Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from Actuate! Instantly Supercharge Your Business Reports and Dashboards with Interactivity, Sharing, Native Excel Exports, App Integration & more Get technology previously reserved for billion-dollar corporations, FREE http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk ___ Matplotlib-devel mailing list Matplotlib-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-devel >>> >> >> >> -- >> Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server >> from Actuate! Instantly Supercharge Your Business Reports and Dashboards >> with Interactivity, Sharing, Native Excel Exports, App Integration & more >> Get technology previously reserved for billion-dollar corporations, FREE >> >> http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk >> ___ >> Matplotlib-devel mailing list >> Matplotlib-devel@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/matplotlib-devel >> >> > > > -- > Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server > from Actuate! Instantly Supercharge Your Business Reports and Dashboards > with Interactivity, Sharing, Native Excel Exports, App Integration & more > Get technology previously reserved for billion-dollar corporations, FREE > > http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk > ___ > Matplotlib-devel mailing list > Matplotlib-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/matplotlib-devel > > -- Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from Actuate! Instantly Supercharge Your Business Reports and Dashboard
Re: [matplotlib-devel] xkcd doesn't seem to work in MacOSX backend
I can reproduce it with the following traceback. Can you please open a bug report on Github for this issue? ``` Traceback (most recent call last): File "/usr/local/lib/python2.7/site-packages/matplotlib/artist.py", line 59, in draw_wrapper draw(artist, renderer, *args, **kwargs) File "/usr/local/lib/python2.7/site-packages/matplotlib/figure.py", line 1079, in draw func(*args) File "/usr/local/lib/python2.7/site-packages/matplotlib/artist.py", line 59, in draw_wrapper draw(artist, renderer, *args, **kwargs) File "/usr/local/lib/python2.7/site-packages/matplotlib/axes/_base.py", line 2092, in draw a.draw(renderer) File "/usr/local/lib/python2.7/site-packages/matplotlib/artist.py", line 59, in draw_wrapper draw(artist, renderer, *args, **kwargs) File "/usr/local/lib/python2.7/site-packages/matplotlib/lines.py", line 712, in draw drawFunc(renderer, gc, tpath, affine.frozen()) File "/usr/local/lib/python2.7/site-packages/matplotlib/lines.py", line 1067, in _draw_lines self._lineFunc(renderer, gc, path, trans) File "/usr/local/lib/python2.7/site-packages/matplotlib/lines.py", line 1107, in _draw_solid renderer.draw_path(gc, path, trans) File "/usr/local/lib/python2.7/site-packages/matplotlib/patheffects.py", line 115, in draw_path rgbFace) File "/usr/local/lib/python2.7/site-packages/matplotlib/patheffects.py", line 217, in draw_path renderer.draw_path(gc, tpath, affine, rgbFace) File "/usr/local/lib/python2.7/site-packages/matplotlib/backends/backend_macosx.py", line 58, in draw_path gc.draw_path(path, transform, linewidth, rgbFace) AttributeError: GraphicsContextBase instance has no attribute 'draw_path' ``` best Jens On Tue, Nov 18, 2014 at 4:12 PM, Mark Bakker wrote: > Sorry, forgot to mention that: 1.4.0 > > On Tue, Nov 18, 2014 at 5:00 PM, Benjamin Root wrote: > >> Which version of matplotlib are you using? >> >> On Tue, Nov 18, 2014 at 10:55 AM, Mark Bakker wrote: >> >>> Hello list, >>> >>> I don't seem to get xkcd to work in the MacOSX backend. When I try to >>> make a plot I get a nice white figure with nothing on it. Here's what I did: >>> >>> import matplotlib.pyplot as plt >>> %matplotlib # responds with Using matplotlib backend: MacOSX >>> plt.plot([1,2,3]) # gives white figure with nothing on it >>> >>> When I do a kernel restart and specify the qt backend it works fine (so >>> I have a workaround), but I presume it should work, right? >>> >>> Thanks, >>> >>> Mark >>> >>> >>> >>> -- >>> Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server >>> from Actuate! Instantly Supercharge Your Business Reports and Dashboards >>> with Interactivity, Sharing, Native Excel Exports, App Integration & more >>> Get technology previously reserved for billion-dollar corporations, FREE >>> >>> http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk >>> ___ >>> Matplotlib-devel mailing list >>> Matplotlib-devel@lists.sourceforge.net >>> https://lists.sourceforge.net/lists/listinfo/matplotlib-devel >>> >>> >> > > > -- > Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server > from Actuate! Instantly Supercharge Your Business Reports and Dashboards > with Interactivity, Sharing, Native Excel Exports, App Integration & more > Get technology previously reserved for billion-dollar corporations, FREE > > http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk > ___ > Matplotlib-devel mailing list > Matplotlib-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/matplotlib-devel > > -- Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from Actuate! Instantly Supercharge Your Business Reports and Dashboards with Interactivity, Sharing, Native Excel Exports, App Integration & more Get technology previously reserved for billion-dollar corporations, FREE http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk___ Matplotlib-devel mailing list Matplotlib-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
Re: [matplotlib-devel] xkcd doesn't seem to work in MacOSX backend
Sorry, forgot to mention that: 1.4.0 On Tue, Nov 18, 2014 at 5:00 PM, Benjamin Root wrote: > Which version of matplotlib are you using? > > On Tue, Nov 18, 2014 at 10:55 AM, Mark Bakker wrote: > >> Hello list, >> >> I don't seem to get xkcd to work in the MacOSX backend. When I try to >> make a plot I get a nice white figure with nothing on it. Here's what I did: >> >> import matplotlib.pyplot as plt >> %matplotlib # responds with Using matplotlib backend: MacOSX >> plt.plot([1,2,3]) # gives white figure with nothing on it >> >> When I do a kernel restart and specify the qt backend it works fine (so I >> have a workaround), but I presume it should work, right? >> >> Thanks, >> >> Mark >> >> >> >> -- >> Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server >> from Actuate! Instantly Supercharge Your Business Reports and Dashboards >> with Interactivity, Sharing, Native Excel Exports, App Integration & more >> Get technology previously reserved for billion-dollar corporations, FREE >> >> http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk >> ___ >> Matplotlib-devel mailing list >> Matplotlib-devel@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/matplotlib-devel >> >> > -- Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from Actuate! Instantly Supercharge Your Business Reports and Dashboards with Interactivity, Sharing, Native Excel Exports, App Integration & more Get technology previously reserved for billion-dollar corporations, FREE http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk___ Matplotlib-devel mailing list Matplotlib-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-devel
Re: [matplotlib-devel] xkcd doesn't seem to work in MacOSX backend
Which version of matplotlib are you using? On Tue, Nov 18, 2014 at 10:55 AM, Mark Bakker wrote: > Hello list, > > I don't seem to get xkcd to work in the MacOSX backend. When I try to make > a plot I get a nice white figure with nothing on it. Here's what I did: > > import matplotlib.pyplot as plt > %matplotlib # responds with Using matplotlib backend: MacOSX > plt.plot([1,2,3]) # gives white figure with nothing on it > > When I do a kernel restart and specify the qt backend it works fine (so I > have a workaround), but I presume it should work, right? > > Thanks, > > Mark > > > > -- > Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server > from Actuate! Instantly Supercharge Your Business Reports and Dashboards > with Interactivity, Sharing, Native Excel Exports, App Integration & more > Get technology previously reserved for billion-dollar corporations, FREE > > http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk > ___ > Matplotlib-devel mailing list > Matplotlib-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/matplotlib-devel > > -- Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server from Actuate! Instantly Supercharge Your Business Reports and Dashboards with Interactivity, Sharing, Native Excel Exports, App Integration & more Get technology previously reserved for billion-dollar corporations, FREE http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk___ Matplotlib-devel mailing list Matplotlib-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/matplotlib-devel