Skip to content

Error in example http://matplotlib.org/examples/misc/multiprocess.html #6626

Closed
@Thomas00010111

Description

@Thomas00010111

Do not know if this is the right place because it is not a bug in the library but in the examples.
Tried to run the example http://matplotlib.org/examples/misc/multiprocess.html and I think it would be good to make the following changes:

remove dependencies to gobject

matplotlib.use('GtkAgg')

import gobject

return return call_back()
instead of return call_back

use different timer

self.gid = gobject.timeout_add(1000, self.poll_draw())

timer = self.fig.canvas.new_timer(interval=1000)
timer.add_callback(self.poll_draw)
timer.start()

Cheers,
Thomas

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions