<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /></head><body style='font-size: 10pt; font-family: Verdana,Geneva,sans-serif'>
<p>Hi Jorge,</p>
<p>to my experience PyQtGraph might fit your needs best.<br />It is fast, it's easy to realize interactions between GUI and Backend (in both directions!) and it uses many<br />concepts that are commin in the Qt/PyQt world. You can easily deliver it as subpackage of your own project (~2.5 MB, MIT/X11 license) [1] </p>
<p>I recently started to use plotly too, but not for GUI programming. Nice to use as well, better default styles and much better documented than PyQtGraph. <br />Otherwise it's probably harder to be used in a GUI and to realize GUI <-> Backend interactions, e.g. if you want to update your plot fast or react on mouse clicks (please correct me if I'm wrong).</p>
<p>I'd love to see QtCharts [3] as part of QGIS distributions, as it is probably closest to common Qt paradigms like Model/View programming.</p>
<p>Greetings,</p>
<p>Benjamin</p>
<p>[1] <a href="https://pyqtgraph.readthedocs.io/en/latest/how_to_use.html#embedding-pyqtgraph-as-a-sub-package-of-a-larger-project">https://pyqtgraph.readthedocs.io/en/latest/how_to_use.html#embedding-pyqtgraph-as-a-sub-package-of-a-larger-project</a><br /><br />[2] https://doc.qt.io/qt-5/qtcharts-overview.html</p>
<p>[3] https://doc.qt.io/qt-5/qtcharts-overview.html</p>
<p id="reply-intro">On 2021-06-10 22:49, jorgealmerio@yahoo.com.br wrote:</p>
<blockquote type="cite" style="padding: 0 0.4em; border-left: #1010ff 2px solid; margin: 0">
<div id="replybody1">
<style type="text/css">@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}

#replybody1 p.v1MsoNormal, #replybody1 li.v1MsoNormal, #replybody1 div.v1MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
#replybody1 a:link, #replybody1 span.v1MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
#replybody1 a:visited, #replybody1 span.v1MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
#replybody1 span.v1EstiloDeEmail17
        {mso-style-type:personal-compose;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
#replybody1 .v1MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 3.0cm 70.85pt 3.0cm;}
#replybody1 div.v1WordSection1
        {}</style>
<div lang="PT-BR">
<div class="v1WordSection1">
<p class="v1MsoNormal">Hi all,</p>
<p class="v1MsoNormal"> </p>
<p class="v1MsoNormal"><span>I want to create o plot chart as a widget in my plugin. I already used MatPlotLib in the past, but I don't know it is the best choice.</span></p>
<p class="v1MsoNormal"><span> </span></p>
<p class="v1MsoNormal"><span>I know some plugins use PyQtGraph and others PyQwt (I think it was deceased for Qt5)</span></p>
<p class="v1MsoNormal"><span> </span></p>
<p class="v1MsoNormal"><span>Some features I consider relevant:</span></p>
<p class="v1MsoNormal"><span> </span></p>
<p class="v1MsoNormal"><span>1) Works native in Qgis enviroment, no need to install anything.</span></p>
<p class="v1MsoNormal"><span>2) Fast</span></p>
<p class="v1MsoNormal"><span>3) Easy to code</span></p>
<p class="v1MsoNormal"><span>4) Will not be discontinued in the near future</span></p>
<p class="v1MsoNormal"><span> </span></p>
<p class="v1MsoNormal"><span>What is the library best option? </span></p>
<p class="v1MsoNormal"><span> </span></p>
<p class="v1MsoNormal"><span>Thanks in advance</span></p>
</div>
</div>
</div>
<br />
<div class="pre" style="margin: 0; padding: 0; font-family: monospace">_______________________________________________<br />QGIS-Developer mailing list<br /><a href="mailto:QGIS-Developer@lists.osgeo.org">QGIS-Developer@lists.osgeo.org</a><br />List info: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" target="_blank" rel="noopener noreferrer">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br />Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" target="_blank" rel="noopener noreferrer">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a></div>
</blockquote>
<p><br /></p>
<div id="signature">-- <br />
<div class="pre" style="margin: 0; padding: 0; font-family: monospace">--<br />Benjamin Jakimow, Doctoral Researcher<br />Earth Observation Lab | Geography Department | Humboldt-Universität zu Berlin<br /><br />e-mail: <a href="mailto:benjamin.jakimow@geo.hu-berlin.de">benjamin.jakimow@geo.hu-berlin.de</a><br /><br />phone:  +49 (0) 30 2093 6894<br />mobile: +49 (0) 157 5656 8477<br />fax:    +49 (0) 30 2093 6848<br />mail:   Unter den Linden 6 | 10099 Berlin | Germany<br />room: 2'222</div>
</div>
</body></html>