<div dir="ltr">{ <a href="https://github.com/matplotlib/matplotlib/pull/9202">https://github.com/matplotlib/matplotlib/pull/9202</a> + mplcairo master } now implement a wx-cairo backend.<br><div>Antony</div></div><div class="gmail_extra"><br><div class="gmail_quote">2017-09-18 8:46 GMT-07:00 Antony Lee <span dir="ltr"><<a href="mailto:anntzer.lee@gmail.com" target="_blank">anntzer.lee@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>Hi,</div><div><br></div><div>I looked into compiling on Windows yesterday and it appears that MSVC does not support yet all the required C++17 features (at least, guaranteed copy elision and template argument deduction for class templates -- see <a href="https://blogs.msdn.microsoft.com/vcblog/2017/08/11/c17-features-and-stl-fixes-in-vs-2017-15-3/" target="_blank">https://blogs.msdn.microsoft.<wbr>com/vcblog/2017/08/11/c17-<wbr>features-and-stl-fixes-in-vs-<wbr>2017-15-3/</a>).  From some quick googling, it is apparently expected that full support will happen "soon" (before the end of 2017) so I may decide to just wait for it rather than downgrade the code (depending on how much time I want to spend on this...) but as a consequence, tinkering with mplcairo on Windows would right now require not only good familiarity with how to compile extension modules on Windows, but also with C++ to understand how to downgrade the code, so overall it may be quite tricky for you.</div><div><br></div><div>Wx support would require refactoring the wx backend code so that the rendering part gets strictly decoupled from the windowing part -- this is e.g. the purpose of PR#8771 that does the same for Qt.  Actually, given that Wx already supports both "native" Wx rendering and Agg rendering, I expect this to be "relatively" easy, as the separation already mostly exists (basically we need to replace mentions of Agg by cairo in backend_wxagg.py).  As always, PRs would be welcome.</div><span class="HOEnZb"><font color="#888888"><div><br></div><div>Antony</div></font></span></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">2017-09-18 2:06 GMT-07:00 Francesco Faccenda <span dir="ltr"><<a href="mailto:f.faccenda86@gmail.com" target="_blank">f.faccenda86@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div>This is a good news, thank you. I have two main doubts now:<br></div><ol><li>Would it be hard to have a Windows version of it? Since I am quite new to this, I'm not sure how to do it myself. Is there a good tutorial you would suggest?</li><li>Would it work with matplotlib embedded on a wxpython stage or I'm going to run in some issue if I use this backend?</li></ol></div><br></div>Regards,<br></div>Francesco Faccenda<br><br></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="m_-1699547223112986390h5">2017-09-16 11:10 GMT+02:00 Antony Lee <span dir="ltr"><<a href="mailto:anntzer.lee@gmail.com" target="_blank">anntzer.lee@gmail.com</a>></span>:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="m_-1699547223112986390h5"><div dir="ltr">Hi all,<div>A manylinux wheel for mpl_cairo (<a href="https://github.com/anntzer/mpl_cairo" target="_blank">https://github.com/anntzer/mp<wbr>l_cairo</a>) is now available (under GitHub releases).  mpl_cairo is a new, cairo-based backend for Matplotlib, that offers several improvements over the current default, Agg-based backend.  See the README on GitHub for more details :-)</div><div>I would be interested in hearing your feedback.</div><span class="m_-1699547223112986390m_8683361720207989281HOEnZb"><font color="#888888"><div>Antony</div></font></span></div>
<br></div></div><span>______________________________<wbr>_________________<br>
Matplotlib-devel mailing list<br>
<a href="mailto:Matplotlib-devel@python.org" target="_blank">Matplotlib-devel@python.org</a><br>
<a href="https://mail.python.org/mailman/listinfo/matplotlib-devel" rel="noreferrer" target="_blank">https://mail.python.org/mailma<wbr>n/listinfo/matplotlib-devel</a><br>
<br></span></blockquote></div><br></div>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div>