<div dir="ltr">Juan,<div><br></div><div>Support for the toolmanager shipped in Matplotlib 2.2!  Hopefully this will work now.</div><div><br></div><div>Tom</div></div><br><div class="gmail_quote"><div dir="ltr">On Wed, Nov 15, 2017 at 7:20 PM Juan Nunez-Iglesias <<a href="mailto:jni.soma@gmail.com">jni.soma@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">



<div>
<div name="messageBodySection" style="font-size:14px;font-family:-apple-system,BlinkMacSystemFont,sans-serif">If anyone can find time to respond to this, I promise a PR to the docs explaining the solution…!</div>
<div name="messageReplySection" style="font-size:14px;font-family:-apple-system,BlinkMacSystemFont,sans-serif"><br>
On 13 Nov 2017, 6:09 PM +1100, Juan Nunez-Iglesias <<a href="mailto:jni.soma@gmail.com" target="_blank">jni.soma@gmail.com</a>>, wrote:<br>
<blockquote type="cite" style="margin:5px 5px;padding-left:10px;border-left:thin solid #1abc9c">
<div name="messageBodySection" style="font-size:14px;font-family:-apple-system,BlinkMacSystemFont,sans-serif">Hi,
<div><br></div>
<div>I’m trying to add elements to the matplotlib toolbar *using the Qt5 backend*. I tried running this example code:</div>
<div><br></div>
<div><a href="https://matplotlib.org/examples/user_interfaces/toolmanager.html" target="_blank">https://matplotlib.org/examples/user_interfaces/toolmanager.html</a><br></div>
<div><br></div>
<div>But unfortunately it fails when using Qt5 with the error </div>
<div><br></div>
<div>
<div>    fig.canvas.manager.toolmanager.add_tool('List', ListTools)</div>
<div>AttributeError: 'FigureManagerQT' object has no attribute ‘toolmanager'</div>
</div>
<div><br></div>
<div>Is toolmanager only available for GTK? Is there an equivalent way of achieving what the script is doing in other backends?</div>
<div><br></div>
<div>Thanks,</div>
<div><br></div>
<div>Juan.</div>
</div>
<div name="messageReplySection" style="font-size:14px;font-family:-apple-system,BlinkMacSystemFont,sans-serif"><br>
<div></div>
</div>
</blockquote>
<div></div>
</div>
</div>

_______________________________________________<br>
Matplotlib-users mailing list<br>
<a href="mailto:Matplotlib-users@python.org" target="_blank">Matplotlib-users@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/matplotlib-users" rel="noreferrer" target="_blank">https://mail.python.org/mailman/listinfo/matplotlib-users</a><br>
</blockquote></div>