[Matplotlib-users] ToolManager

Juan Nunez-Iglesias jni.soma at gmail.com
Mon Nov 13 02:09:41 EST 2017


Hi,

I’m trying to add elements to the matplotlib toolbar *using the Qt5 backend*. I tried running this example code:

https://matplotlib.org/examples/user_interfaces/toolmanager.html

But unfortunately it fails when using Qt5 with the error

    fig.canvas.manager.toolmanager.add_tool('List', ListTools)
AttributeError: 'FigureManagerQT' object has no attribute ‘toolmanager'

Is toolmanager only available for GTK? Is there an equivalent way of achieving what the script is doing in other backends?

Thanks,

Juan.

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/matplotlib-users/attachments/20171113/84b4c43a/attachment.html>


More information about the Matplotlib-users mailing list