Graph in wxPython

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Oh Kyu Yoon

    Graph in wxPython

    Does anyone know how to implement plots from scipy, chaco, etc
    into wxPython widget?

    Thank you


  • Anand Pillai

    #2
    Re: Graph in wxPython

    This might be helpful.



    -Anand

    "Oh Kyu Yoon" <okyoon@stanfor d.edu> wrote in message news:<bt04a4$2e 3$1@news.Stanfo rd.EDU>...[color=blue]
    > Does anyone know how to implement plots from scipy, chaco, etc
    > into wxPython widget?
    >
    > Thank you[/color]

    Comment

    • Miki Tebeka

      #3
      Re: Graph in wxPython

      Hello "Oh Kyu Yoon",
      [color=blue]
      > Does anyone know how to implement plots from scipy, chaco, etc
      > into wxPython widget?[/color]
      Save them as an image and use wxImage?

      HTH.
      Miki

      Comment

      • Jorge Godoy

        #4
        Re: Graph in wxPython

        On Thursday 01 January 2004 01:31 Oh Kyu Yoon wrote in
        <bt04a4$2e3$1@n ews.Stanford.ED U>:
        [color=blue]
        > Does anyone know how to implement plots from scipy, chaco, etc
        > into wxPython widget?[/color]

        Hi.

        I'm doing some research on the same subject and I found out that
        Matplotlib seems to be very interesting. Go to
        http://matplotlib.sourceforge.net/ and take a look by yourself.


        Be seeing you,
        --
        Godoy. <godoy@ieee.org >

        Comment

        • Tom

          #5
          Re: Graph in wxPython - wxpyplot



          Is that the sort of thing you mean?

          Tom

          Oh Kyu Yoon wrote:[color=blue]
          > Does anyone know how to implement plots from scipy, chaco, etc
          > into wxPython widget?
          >
          > Thank you
          >
          >[/color]

          Comment

          • Oh Kyu Yoon

            #6
            Re: Graph in wxPython

            Thank you all.
            You guys have been very helpful.



            Comment

            • Derrick 'dman' Hudson

              #7
              Re: Graph in wxPython

              On 31 Dec 2003 23:56:09 -0800, Miki Tebeka wrote:[color=blue]
              > Hello "Oh Kyu Yoon",
              >[color=green]
              >> Does anyone know how to implement plots from scipy, chaco, etc
              >> into wxPython widget?[/color]
              >
              > Save them as an image and use wxImage?[/color]

              This works. This past spring I had to implement basic graph
              generation for a school project I was using wxPython for. I opened a
              pipe to gnuplot, let it create an image, then displayed the image.

              -D

              --
              If your life is a hard drive,
              Christ can be your backup.

              www: http://dman13.dyndns.org/~dman/ jabber: dman@dman13.dyn dns.org

              Comment

              • John Hunter

                #8
                Re: Graph in wxPython

                >>>>> "Oh" == Oh Kyu Yoon <okyoon@stanfor d.edu> writes:

                Oh> Does anyone know how to implement plots from scipy, chaco, etc
                Oh> into wxPython widget?

                matplotlib has a wxpython plotting backend, which supports interactive
                data exploration and hardcopy save to a variety of output formats --
                Download matplotlib for free. Matplotlib is a python library for making publication quality plots using a syntax familiar to MATLAB users. Matplotlib uses numpy for numerics.


                Here's a sample script:

                import matplotlib
                matplotlib.use( 'WX')
                from matplotlib import plot, show
                plot([1,2,3])
                show()

                You can use matplotlib interactively from the python shell, in batch
                python scripts, or embed it in wxpython application window. Or you
                can use it offline w/o a GUI environment to make hardcopy plots in
                PNG, PS or other formats.

                See the example examples/embedding_in_wx .py for demo code showing how
                to embed matplotlib figures into wx apps.

                matplotlib also supports GTK, PS and GD.

                biasedly-yours,
                JDH

                Comment

                • Cousin Stanley

                  #9
                  Re: Graph in wxPython

                  John ....

                  Perhaps I can add another verse to that song I've been writing
                  called The GTK/PyGtk/wGlade/Wx/MatPlotLib Blues ....

                  You know a couple of verses already .... :-)
                  [color=blue][color=green][color=darkred]
                  >>>
                  >>> import matplotlib
                  >>>
                  >>> matplotlib.use( 'WX' )[/color][/color][/color]
                  unrecognized backend WX.
                  Use one of PS, GD, GTK, Template

                  --
                  Cousin Stanley
                  Human Being
                  Phoenix, Arizona

                  Comment

                  • John Hunter

                    #10
                    Re: Graph in wxPython

                    >>>>> "Cousin" == Cousin Stanley <CousinStanley@ hotmail.com> writes:

                    Cousin> John .... Perhaps I can add another verse to that song
                    Cousin> I've been writing called The
                    Cousin> GTK/PyGtk/wGlade/Wx/MatPlotLib Blues ....

                    Cousin> You know a couple of verses already .... :-)
                    [color=blue][color=green][color=darkred]
                    >>>> import matplotlib
                    >>>>
                    >>>> matplotlib.use( 'WX' )[/color][/color][/color]
                    Cousin> unrecognized backend WX. Use one of PS, GD, GTK, Template

                    Looks like you're using an older version of matplotlib. The WX
                    backend is a fairly recent addition. Make sure you are using 0.40.

                    Hope this helps,
                    JDH


                    Comment

                    • Cousin Stanley

                      #11
                      Re: Graph in wxPython

                      | Looks like you're using an older version of matplotlib.
                      |
                      | The WX backend is a fairly recent addition.
                      |
                      | Make sure you are using 0.40

                      John ....

                      I've got MatPlotLib 0.30 installed here on 2003-10-21 ....

                      I'll look for 0.40 ....

                      Thanks for the update ....

                      --
                      Cousin Stanley
                      Human Being
                      Phoenix, Arizona

                      Comment

                      Working...