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>
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/matplotlib-users/attachments/20171116/01b969fe/attachment.html>
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
Matplotlib-users Info Page
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/matplotlib-users/attachments/20180428/defeb43e/attachment.html>
???
Thank you! Will try it out shortly.
···
On 28 Apr 2018, 10:47 AM +1000, Thomas Caswell <tcaswell at gmail.com>, wrote:
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
> > Matplotlib-users Info Page
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/matplotlib-users/attachments/20180428/e6f0399c/attachment-0001.html>