<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=utf-8"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@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;}
@font-face
        {font-family:Verdana;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p
        {mso-style-priority:99;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;}
p.v1msonormal, li.v1msonormal, div.v1msonormal
        {mso-style-name:v1msonormal;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;}
p.v1msochpdefault, li.v1msochpdefault, div.v1msochpdefault
        {mso-style-name:v1msochpdefault;
        mso-margin-top-alt:auto;
        margin-right:0cm;
        mso-margin-bottom-alt:auto;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;}
span.v1msohyperlink
        {mso-style-name:v1msohyperlink;}
span.v1msohyperlinkfollowed
        {mso-style-name:v1msohyperlinkfollowed;}
span.v1estilodeemail17
        {mso-style-name:v1estilodeemail17;}
p.v1msonormal1, li.v1msonormal1, div.v1msonormal1
        {mso-style-name:v1msonormal1;
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
span.v1msohyperlink1
        {mso-style-name:v1msohyperlink1;
        mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
span.v1msohyperlinkfollowed1
        {mso-style-name:v1msohyperlinkfollowed1;
        mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
span.EstiloDeEmail26
        {mso-style-type:personal;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
span.EstiloDeEmail27
        {mso-style-type:personal-reply;
        font-family:"Calibri",sans-serif;
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 3.0cm 70.85pt 3.0cm;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=PT-BR link=blue vlink=purple><div class=WordSection1><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Verdana",sans-serif'>Hi Benjamin,<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Verdana",sans-serif'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Verdana",sans-serif'>You are totally right, I want to update my plot fast and maybe react on mouse clicks.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Verdana",sans-serif'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Verdana",sans-serif'>I will follow you recomendation to use PyQtGraph.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Verdana",sans-serif'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Verdana",sans-serif'>Thank you very much to your answer and the links. It will help me a lot!<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Verdana",sans-serif'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Verdana",sans-serif'>Best regards,<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Verdana",sans-serif'><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:10.0pt;font-family:"Verdana",sans-serif'>Jorge Almerio</span><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US'><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-US style='font-size:11.0pt;font-family:"Calibri",sans-serif;color:#1F497D;mso-fareast-language:EN-US'><o:p> </o:p></span></p><div><div style='border:none;border-top:solid #E1E1E1 1.0pt;padding:3.0pt 0cm 0cm 0cm'><p class=MsoNormal><b><span style='font-size:11.0pt;font-family:"Calibri",sans-serif'>De:</span></b><span style='font-size:11.0pt;font-family:"Calibri",sans-serif'> Benjamin Jakimow [mailto:benjamin.jakimow@geo.hu-berlin.de] <br><b>Enviada em:</b> sexta-feira, 11 de junho de 2021 18:39<br><b>Para:</b> jorgealmerio@yahoo.com.br<br><b>Cc:</b> qgis-developer@lists.osgeo.org<br><b>Assunto:</b> Re: [QGIS-Developer] Best Qgis python plot library<o:p></o:p></span></p></div></div><p class=MsoNormal><o:p> </o:p></p><p><span style='font-size:10.0pt;font-family:"Verdana",sans-serif'>Hi Jorge,<o:p></o:p></span></p><p><span style='font-size:10.0pt;font-family:"Verdana",sans-serif'>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] <o:p></o:p></span></p><p><span style='font-size:10.0pt;font-family:"Verdana",sans-serif'>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).<o:p></o:p></span></p><p><span style='font-size:10.0pt;font-family:"Verdana",sans-serif'>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.<o:p></o:p></span></p><p><span style='font-size:10.0pt;font-family:"Verdana",sans-serif'>Greetings,<o:p></o:p></span></p><p><span style='font-size:10.0pt;font-family:"Verdana",sans-serif'>Benjamin<o:p></o:p></span></p><p><span style='font-size:10.0pt;font-family:"Verdana",sans-serif'>[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] <a href="https://doc.qt.io/qt-5/qtcharts-overview.html">https://doc.qt.io/qt-5/qtcharts-overview.html</a><o:p></o:p></span></p><p><span style='font-size:10.0pt;font-family:"Verdana",sans-serif'>[3] <a href="https://doc.qt.io/qt-5/qtcharts-overview.html">https://doc.qt.io/qt-5/qtcharts-overview.html</a><o:p></o:p></span></p><p id=reply-intro><span style='font-size:10.0pt;font-family:"Verdana",sans-serif'>On 2021-06-10 22:49, <a href="mailto:jorgealmerio@yahoo.com.br">jorgealmerio@yahoo.com.br</a> wrote:<o:p></o:p></span></p><blockquote style='border:none;border-left:solid #1010FF 1.5pt;padding:0cm 0cm 0cm 5.0pt;margin-left:0cm;margin-right:0cm'><div id=replybody1><div><div><p class=v1msonormal><span style='font-size:10.0pt;font-family:"Verdana",sans-serif'>Hi all,<o:p></o:p></span></p><p class=v1msonormal><span style='font-size:10.0pt;font-family:"Verdana",sans-serif'> <o:p></o:p></span></p><p class=v1msonormal><span style='font-size:10.0pt;font-family:"Verdana",sans-serif'>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.<o:p></o:p></span></p><p class=v1msonormal><span style='font-size:10.0pt;font-family:"Verdana",sans-serif'> <o:p></o:p></span></p><p class=v1msonormal><span style='font-size:10.0pt;font-family:"Verdana",sans-serif'>I know some plugins use PyQtGraph and others PyQwt (I think it was deceased for Qt5)<o:p></o:p></span></p><p class=v1msonormal><span style='font-size:10.0pt;font-family:"Verdana",sans-serif'> <o:p></o:p></span></p><p class=v1msonormal><span style='font-size:10.0pt;font-family:"Verdana",sans-serif'>Some features I consider relevant:<o:p></o:p></span></p><p class=v1msonormal><span style='font-size:10.0pt;font-family:"Verdana",sans-serif'> <o:p></o:p></span></p><p class=v1msonormal><span style='font-size:10.0pt;font-family:"Verdana",sans-serif'>1) Works native in Qgis enviroment, no need to install anything.<o:p></o:p></span></p><p class=v1msonormal><span style='font-size:10.0pt;font-family:"Verdana",sans-serif'>2) Fast<o:p></o:p></span></p><p class=v1msonormal><span style='font-size:10.0pt;font-family:"Verdana",sans-serif'>3) Easy to code<o:p></o:p></span></p><p class=v1msonormal><span style='font-size:10.0pt;font-family:"Verdana",sans-serif'>4) Will not be discontinued in the near future<o:p></o:p></span></p><p class=v1msonormal><span style='font-size:10.0pt;font-family:"Verdana",sans-serif'> <o:p></o:p></span></p><p class=v1msonormal><span style='font-size:10.0pt;font-family:"Verdana",sans-serif'>What is the library best option? <o:p></o:p></span></p><p class=v1msonormal><span style='font-size:10.0pt;font-family:"Verdana",sans-serif'> <o:p></o:p></span></p><p class=v1msonormal><span style='font-size:10.0pt;font-family:"Verdana",sans-serif'>Thanks in advance<o:p></o:p></span></p></div></div></div><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Verdana",sans-serif'><o:p> </o:p></span></p><div><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New"'>_______________________________________________<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">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>Unsubscribe: <a href="https://lists.osgeo.org/mailman/listinfo/qgis-developer" target="_blank">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a><o:p></o:p></span></p></div></blockquote><p><span style='font-size:10.0pt;font-family:"Verdana",sans-serif'><o:p> </o:p></span></p><div id=signature><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Verdana",sans-serif'>-- <o:p></o:p></span></p><div><p class=MsoNormal><span style='font-size:10.0pt;font-family:"Courier New"'>--<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<o:p></o:p></span></p></div></div></div></body></html>