[Matplotlib-users] ToolManager

Thomas Caswell tcaswell at gmail.com
Fri Apr 27 20:47:33 EDT 2018


Juan,

Support for the toolmanager shipped in Matplotlib 2.2!  Hopefully this will
work now.

Tom

On Wed, Nov 15, 2017 at 7:20 PM Juan Nunez-Iglesias <jni.soma at gmail.com>
wrote:

> If anyone can find time to respond to this, I promise a PR to the docs
> explaining the solution…!
>
> On 13 Nov 2017, 6:09 PM +1100, Juan Nunez-Iglesias <jni.soma at gmail.com>,
> wrote:
>
> 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.
>
> _______________________________________________
> Matplotlib-users mailing list
> Matplotlib-users at python.org
> https://mail.python.org/mailman/listinfo/matplotlib-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/matplotlib-users/attachments/20180428/defeb43e/attachment.html>


More information about the Matplotlib-users mailing list