Embedding Matplotlib images into wxPython

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • dr_tyson@hotmail.com

    #1

    Embedding Matplotlib images into wxPython

    I am trying to embed images into a wxPython app (created using Boa
    Constructor), but have not been able to do so. I know how to embed
    plots, but images seem to be a problem. I've tried using code analogous
    to the example given at the Matplotlib website to no avail. If anybody
    has been successful at this could you please post some sample code?
    That would be greatly appreciated. Thanks!

    Randy

  • dr_tyson@hotmail.com

    #2
    Re: Embedding Matplotlib images into wxPython

    Well, to answer my own question, the problem turned out to be that I
    was using the 'wx' backend and not the 'wxagg' one. Attempting to use
    the former typically resulted in a not implemented error upon the call
    to imshow. I was working from an older set of matplotlib example files
    which didn't include the dynamic image with wxagg demo. Thank goodness
    for those examples! No better way to learn how to implement code.

    Comment

    • khromushin

      #3
      Re: Embedding Matplotlib images into wxPython


      I wrote a matplotlib Boa constructor plug-in. It is very easy to add it into
      a wxframe, sizers etc in Boa constructor.
      If you are interested in the plugin, pls. send e-mail to khrom@inp.kz.

      Igor Khromushin



      dr_tyson@hotmai l.com wrote:
      >
      I am trying to embed images into a wxPython app (created using Boa
      Constructor), but have not been able to do so. I know how to embed
      plots, but images seem to be a problem. I've tried using code analogous
      to the example given at the Matplotlib website to no avail. If anybody
      has been successful at this could you please post some sample code?
      That would be greatly appreciated. Thanks!
      >
      Randy
      >
      --

      >
      >


      --
      View this message in context: http://www.nabble.com/Embedding-Matp....html#a7027545
      Sent from the Python - python-list mailing list archive at Nabble.com.

      Comment

      Working...