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

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

    1. <small id='NKhsj'></small><noframes id='NKhsj'>

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

        Matplotlib imshow 和 kivy

        Matplotlib imshow and kivy(Matplotlib imshow 和 kivy)

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

              <tbody id='Za8mS'></tbody>

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

              1. <tfoot id='Za8mS'></tfoot>
              2. <legend id='Za8mS'><style id='Za8mS'><dir id='Za8mS'><q id='Za8mS'></q></dir></style></legend>
                  <bdo id='Za8mS'></bdo><ul id='Za8mS'></ul>
                • 本文介紹了Matplotlib imshow 和 kivy的處理方法,對大家解決問題具有一定的參考價值,需要的朋友們下面隨著小編來一起學習吧!

                  問題描述

                  我有一個 3D numpy 數組,代表一個 3D 斷層圖像 I = [i,j,k].

                  我開始學習 kivy,因為我需要做一個簡單的 GUI,該 GUI 由一個 2D 圖像查看器組成,用于 3D (s = [i,:,:]) 圖像的每個切片和一個用于跨平面移動的切片器.

                  我通常通過 matplotlib 執行所有可視化,我認為最簡單的方法是將 matplotlib 連接到 kivy.我該怎么做?我看到另一個問題,它提出了類似的問題,但僅限于繪圖功能,并且該方法似乎不適用于 imshow.(

                  I have a 3D numpy array, representing a 3D tomographic image I = [i,j,k].

                  I started to learn kivy as I need to do a simple GUI consisting of a 2D image viewer for each slice of the 3D (s = [i,:,:]) image and a slicer to move across planes.

                  I usually perform all visualization via matplotlib and I tough that the easiest way will be to connect matplotlib to the kivy. How can I do it? I saw another question which ask a similar question, but only with the plot function, and the methodology does not seems to work for imshow. (How to get started/use matplotlib in kivy).

                  Any suggestions?

                  Thanks,

                  解決方案

                  Please refer to the example for details.

                  Example

                  main.py

                  from kivy.garden.matplotlib.backend_kivyagg import FigureCanvasKivyAgg
                  from kivy.app import App
                  from kivy.uix.boxlayout import BoxLayout
                  import matplotlib.pyplot as plt
                  import matplotlib.image as mpimg
                  
                  
                  img = mpimg.imread('ac013.JPG')
                  lum_img = img[:, :, 0]
                  plt.imshow(lum_img, cmap="nipy_spectral")
                  plt.colorbar()
                  
                  
                  class TestApp(App):
                      title = "Kivy Garden Matplolib & imshow()"
                  
                      def build(self):
                          box = BoxLayout()
                          box.add_widget(FigureCanvasKivyAgg(plt.gcf()))
                          return box
                  
                  
                  if __name__ == "__main__":
                      TestApp().run()
                  

                  Output

                  這篇關于Matplotlib imshow 和 kivy的文章就介紹到這了,希望我們推薦的答案對大家有所幫助,也希望大家多多支持html5模板網!

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

                  相關文檔推薦

                  How to make a discord bot that gives roles in Python?(如何制作一個在 Python 中提供角色的不和諧機器人?)
                  Discord bot isn#39;t responding to commands(Discord 機器人沒有響應命令)
                  Can you Get the quot;About mequot; feature on Discord bot#39;s? (Discord.py)(你能得到“關于我嗎?Discord 機器人的功能?(不和諧.py))
                  message.channel.id Discord PY(message.channel.id Discord PY)
                  How do I host my discord.py bot on heroku?(如何在 heroku 上托管我的 discord.py 機器人?)
                  discord.py - Automaticaly Change an Role Color(discord.py - 自動更改角色顏色)
                    <bdo id='2M32j'></bdo><ul id='2M32j'></ul>

                      <legend id='2M32j'><style id='2M32j'><dir id='2M32j'><q id='2M32j'></q></dir></style></legend>
                      • <small id='2M32j'></small><noframes id='2M32j'>

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

                            主站蜘蛛池模板: 国产黄色电影 | 国产精品爱久久久久久久 | 久久精品二区亚洲w码 | 五月婷婷丁香婷婷 | 精品九九久久 | 日本精品一区二区三区在线观看视频 | 日韩一区二区三区在线视频 | 成人国产精品免费观看视频 | 国产成人精品久久二区二区91 | 偷拍自拍网址 | 精品久久久久久久久久久院品网 | 国产一级毛片精品完整视频版 | 三级黄色片在线播放 | 先锋资源在线 | 日韩欧美中文字幕在线视频 | 亚洲精品1区 | 日日干夜夜操 | 一级黄色录像片子 | caoporn免费 | 久久91av| 九九精品在线 | 国产精品久久久久久久久久久新郎 | 中文字幕在线视频观看 | 国产在线观看不卡一区二区三区 | 亚洲网站在线观看 | 欧美久久一区二区三区 | 91资源在线观看 | 亚洲一一在线 | 免费永久av| 国产日韩欧美激情 | 国产日韩欧美一区二区在线播放 | 成人在线中文字幕 | 一区视频在线播放 | 国产精品一区二区免费看 | 亚洲视频一区二区三区 | 日日天天| 久久久久国产精品www | 亚洲视频中文字幕 | 无码日韩精品一区二区免费 | 狠狠躁天天躁夜夜躁婷婷老牛影视 | 久久成人一区二区三区 |