xkcd doesn't seem to work in MacOSX backend

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

Which version of matplotlib are you using?

···

On Tue, Nov 18, 2014 at 10:55 AM, Mark Bakker <markbak@…149…> 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

Sorry, forgot to mention that: 1.4.0

···

On Tue, Nov 18, 2014 at 5:00 PM, Benjamin Root <ben.root@…553…> wrote:

Which version of matplotlib are you using?

On Tue, Nov 18, 2014 at 10:55 AM, Mark Bakker <markbak@…149…> 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

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 <markbak@…149…> wrote:

Sorry, forgot to mention that: 1.4.0


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

On Tue, Nov 18, 2014 at 5:00 PM, Benjamin Root <ben.root@…553…> wrote:

Which version of matplotlib are you using?

On Tue, Nov 18, 2014 at 10:55 AM, Mark Bakker <markbak@…149…> 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

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 <jenshnielsen@…149…> 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


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

On Tue, Nov 18, 2014 at 4:12 PM, Mark Bakker <markbak@…149…> wrote:

Sorry, forgot to mention that: 1.4.0


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

On Tue, Nov 18, 2014 at 5:00 PM, Benjamin Root <ben.root@…553…> wrote:

Which version of matplotlib are you using?

On Tue, Nov 18, 2014 at 10:55 AM, Mark Bakker <markbak@…149…> 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

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 Tue, Nov 18, 2014 at 9:55 AM, Phil Elson <pelson.pub@...149...> wrote:

On 18 November 2014 17:01, Jens Nielsen <jenshnielsen@...149...> 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 <markbak@...149...> wrote:

Sorry, forgot to mention that: 1.4.0

On Tue, Nov 18, 2014 at 5:00 PM, Benjamin Root <ben.root@...553...> wrote:

Which version of matplotlib are you using?

On Tue, Nov 18, 2014 at 10:55 AM, Mark Bakker <markbak@...149...> >>>> 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
matplotlib-devel List Signup and Options

------------------------------------------------------------------------------
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
matplotlib-devel List Signup and Options

------------------------------------------------------------------------------
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
matplotlib-devel List Signup and Options

------------------------------------------------------------------------------
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
matplotlib-devel List Signup and Options

--

Christopher Barker, Ph.D.
Oceanographer

Emergency Response Division
NOAA/NOS/OR&R (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception

Chris.Barker@...236...

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 <pelson.pub@…149…> 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 <jenshnielsen@…149…> 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


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

On Tue, Nov 18, 2014 at 4:12 PM, Mark Bakker <markbak@…149…> wrote:

Sorry, forgot to mention that: 1.4.0


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

On Tue, Nov 18, 2014 at 5:00 PM, Benjamin Root <ben.root@…553…> wrote:

Which version of matplotlib are you using?

On Tue, Nov 18, 2014 at 10:55 AM, Mark Bakker <markbak@…149…> 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