久久久久久久av_日韩在线中文_看一级毛片视频_日本精品二区_成人深夜福利视频_武道仙尊动漫在线观看

<i id='cFvGI'><tr id='cFvGI'><dt id='cFvGI'><q id='cFvGI'><span id='cFvGI'><b id='cFvGI'><form id='cFvGI'><ins id='cFvGI'></ins><ul id='cFvGI'></ul><sub id='cFvGI'></sub></form><legend id='cFvGI'></legend><bdo id='cFvGI'><pre id='cFvGI'><center id='cFvGI'></center></pre></bdo></b><th id='cFvGI'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='cFvGI'><tfoot id='cFvGI'></tfoot><dl id='cFvGI'><fieldset id='cFvGI'></fieldset></dl></div>
<tfoot id='cFvGI'></tfoot>

    <small id='cFvGI'></small><noframes id='cFvGI'>

      • <bdo id='cFvGI'></bdo><ul id='cFvGI'></ul>

        <legend id='cFvGI'><style id='cFvGI'><dir id='cFvGI'><q id='cFvGI'></q></dir></style></legend>

        如何將繪圖作為 PyQt5 小部件?

        How to have plotly graph as PyQt5 widget?(如何將繪圖作為 PyQt5 小部件?)
          <tbody id='UNA98'></tbody>
        1. <tfoot id='UNA98'></tfoot>

            <small id='UNA98'></small><noframes id='UNA98'>

              <bdo id='UNA98'></bdo><ul id='UNA98'></ul>
              <i id='UNA98'><tr id='UNA98'><dt id='UNA98'><q id='UNA98'><span id='UNA98'><b id='UNA98'><form id='UNA98'><ins id='UNA98'></ins><ul id='UNA98'></ul><sub id='UNA98'></sub></form><legend id='UNA98'></legend><bdo id='UNA98'><pre id='UNA98'><center id='UNA98'></center></pre></bdo></b><th id='UNA98'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='UNA98'><tfoot id='UNA98'></tfoot><dl id='UNA98'><fieldset id='UNA98'></fieldset></dl></div>
              • <legend id='UNA98'><style id='UNA98'><dir id='UNA98'><q id='UNA98'></q></dir></style></legend>
                • 本文介紹了如何將繪圖作為 PyQt5 小部件?的處理方法,對(duì)大家解決問題具有一定的參考價(jià)值,需要的朋友們下面隨著小編來一起學(xué)習(xí)吧!

                  問題描述

                  我正在做 GUI,其中應(yīng)該有一個(gè)帶有以下情節(jié)的小部件:

                  I am doing GUI where there should be a widget with the following plot:

                  import plotly.express as px
                  df = px.data.tips()
                  fig = px.box(df, x="day", y="total_bill", color="smoker")
                  fig.update_traces(quartilemethod="exclusive") # or "inclusive", or "linear" by default
                  fig.show() 
                  

                  你能提出一些建議嗎?

                  推薦答案

                  您可以使用 QtWebEngineWidgets.QWebEngineView 小部件來顯示圖形.您可能需要先安裝 PyQtWebEngine 包.這是一個(gè)小例子:

                  You can use a QtWebEngineWidgets.QWebEngineView widget to show the figure. You might need to install the PyQtWebEngine package first. Here is a small example:

                  from PyQt5 import QtCore, QtWidgets, QtWebEngineWidgets
                  import plotly.express as px
                  
                  
                  class Widget(QtWidgets.QWidget):
                      def __init__(self, parent=None):
                          super().__init__(parent)
                          self.button = QtWidgets.QPushButton('Plot', self)
                          self.browser = QtWebEngineWidgets.QWebEngineView(self)
                  
                          vlayout = QtWidgets.QVBoxLayout(self)
                          vlayout.addWidget(self.button, alignment=QtCore.Qt.AlignHCenter)
                          vlayout.addWidget(self.browser)
                  
                          self.button.clicked.connect(self.show_graph)
                          self.resize(1000,800)
                  
                      def show_graph(self):
                          df = px.data.tips()
                          fig = px.box(df, x="day", y="total_bill", color="smoker")
                          fig.update_traces(quartilemethod="exclusive") # or "inclusive", or "linear" by default
                          self.browser.setHtml(fig.to_html(include_plotlyjs='cdn'))
                  
                  if __name__ == "__main__":
                      app = QtWidgets.QApplication([])
                      widget = Widget()
                      widget.show()
                      app.exec()
                  

                  這篇關(guān)于如何將繪圖作為 PyQt5 小部件?的文章就介紹到這了,希望我們推薦的答案對(duì)大家有所幫助,也希望大家多多支持html5模板網(wǎng)!

                  【網(wǎng)站聲明】本站部分內(nèi)容來源于互聯(lián)網(wǎng),旨在幫助大家更快的解決問題,如果有圖片或者內(nèi)容侵犯了您的權(quán)益,請(qǐng)聯(lián)系我們刪除處理,感謝您的支持!

                  相關(guān)文檔推薦

                  How to bind a function to an Action from Qt menubar?(如何將函數(shù)綁定到 Qt 菜單欄中的操作?)
                  PyQt progress jumps to 100% after it starts(PyQt 啟動(dòng)后進(jìn)度躍升至 100%)
                  How to set yaxis tick label in a fixed position so that when i scroll left or right the yaxis tick label should be visible?(如何將 yaxis 刻度標(biāo)簽設(shè)置在固定位置,以便當(dāng)我向左或向右滾動(dòng)時(shí),yaxis 刻度標(biāo)簽應(yīng)該可見
                  `QImage` constructor has unknown keyword `data`(`QImage` 構(gòu)造函數(shù)有未知關(guān)鍵字 `data`)
                  Change x-axis ticks to custom strings(將 x 軸刻度更改為自定義字符串)
                  How to show progress bar while saving file to excel in python?(如何在python中將文件保存為excel時(shí)顯示進(jìn)度條?)

                  <small id='SEKZz'></small><noframes id='SEKZz'>

                  <legend id='SEKZz'><style id='SEKZz'><dir id='SEKZz'><q id='SEKZz'></q></dir></style></legend>
                    <tbody id='SEKZz'></tbody>
                  • <bdo id='SEKZz'></bdo><ul id='SEKZz'></ul>

                        • <tfoot id='SEKZz'></tfoot>

                            <i id='SEKZz'><tr id='SEKZz'><dt id='SEKZz'><q id='SEKZz'><span id='SEKZz'><b id='SEKZz'><form id='SEKZz'><ins id='SEKZz'></ins><ul id='SEKZz'></ul><sub id='SEKZz'></sub></form><legend id='SEKZz'></legend><bdo id='SEKZz'><pre id='SEKZz'><center id='SEKZz'></center></pre></bdo></b><th id='SEKZz'></th></span></q></dt></tr></i><div class="qwawimqqmiuu" id='SEKZz'><tfoot id='SEKZz'></tfoot><dl id='SEKZz'><fieldset id='SEKZz'></fieldset></dl></div>
                            主站蜘蛛池模板: 亚洲高清在线 | 91一区二区三区 | 精品国产精品 | 久草综合在线视频 | 亚洲精品一区二区三区在线 | 亚洲国产精品激情在线观看 | 不卡视频一区二区三区 | 国产一级一级国产 | 中文字幕在线一区 | 成人精品视频免费 | 成人激情视频免费观看 | 久久精品国产久精国产 | 亚洲一区二区三区免费视频 | 国产精品久久久久aaaa九色 | 国产成人精品999在线观看 | 黄片毛片在线观看 | 久久久www | 亚洲二区在线 | 国产成人精品一区二区三区在线观看 | av一区二区三区四区 | 国产精品美女久久久久aⅴ国产馆 | 噜噜噜色网 | 亚洲精品久久久久久久久久久 | 亚洲狠狠丁香婷婷综合久久久 | 国产精品久久久久9999鸭 | 国产精品永久免费视频 | 国产99精品| 精品一区二区三区中文字幕 | 毛片网站在线观看视频 | 国产精品久久av | 国产三级 | 久久久久久久久91 | 青青草华人在线视频 | a级黄色网| 亚洲精品一区二区三区四区高清 | 亚洲精品一区二区在线 | 在线观看亚洲专区 | 日韩国产在线 | 国产福利精品一区 | 国产一区二区观看 | 在线成人 |