Automated Graph Plotting in Python

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

    #1

    Automated Graph Plotting in Python

    My python program spits lot of data. I take that data and plot graphs
    using OfficeOrg spredsheet. I want to automate this task as this takes
    so much of time. I have some questions.

    1. Which is the best graph plotting utility in python or linux. Can I
    write a code in such a way that my python code automatically gives me a
    graph. I know little about gnuplot. If you know any better tool without
    much learning curve please tell me in Linux.

    2. I want to write a script such that my python code writes to a file,
    some graph utility like gnuplot takes that data from the file and I get
    my graph ready made. Do you think its possible ?

    Any feedback regarding above is appreciated.

    Thanks

  • Felipe Almeida Lessa

    #2
    Re: Automated Graph Plotting in Python

    Em Sáb, 2006-04-08 às 20:08 -0700, diffuser78@gmai l.com escreveu:[color=blue]
    > My python program spits lot of data. I take that data and plot graphs
    > using OfficeOrg spredsheet. I want to automate this task as this takes
    > so much of time. I have some questions.[/color]

    You can try ReportLab (www.reportlab.org). Great tool.

    --
    Felipe.

    Comment

    • Paddy

      #3
      Re: Automated Graph Plotting in Python

      Hi,
      I saw you mentioned gnuplot and did a search on Google of 'gnuplot
      python-wrapper' which
      lead me eventually to:


      I have not tried it, but if you would try it and report back if it
      works that might help someone
      else too.

      - Cheerio, Paddy.

      Comment

      • Kent Johnson

        #4
        Re: Automated Graph Plotting in Python

        diffuser78@gmai l.com wrote:[color=blue]
        > My python program spits lot of data. I take that data and plot graphs
        > using OfficeOrg spredsheet. I want to automate this task as this takes
        > so much of time. I have some questions.
        >
        > 1. Which is the best graph plotting utility in python or linux. Can I
        > write a code in such a way that my python code automatically gives me a
        > graph. I know little about gnuplot. If you know any better tool without
        > much learning curve please tell me in Linux.[/color]

        I don't know which is best but some options are listed here:
        http://wiki.python.org/moin/UsefulMo...3121670c4dcf1c[color=blue]
        >
        > 2. I want to write a script such that my python code writes to a file,
        > some graph utility like gnuplot takes that data from the file and I get
        > my graph ready made. Do you think its possible ?[/color]

        The Python modules are generally oriented towards a Python API where you
        pass the data to the plot package directly, rather than creating a file.
        Under the hood some of them do exactly what you describe; I think
        gnuplot.py works that way.

        Kent

        Comment

        • Alexander Schmolck

          #5
          Re: Automated Graph Plotting in Python

          diffuser78@gmai l.com writes:
          [color=blue]
          > 1. Which is the best graph plotting utility in python or linux.[/color]

          matplotlib (provided it does the type of graphs you need, which is likely)

          'as

          Comment

          • per9000

            #6
            Re: Automated Graph Plotting in Python

            Dear shrub-makers,

            if you are want to plot networks (fx. genetic networks) I can recommend
            Cytoscape: http://cytoscape.org/ (some kind of openware).

            The in-syntax is clean:
            node1 linktype1 node2
            node2 linktype1 node3
            node3 linktype2 node1
            etc.

            But in general you are going to want to change the layout of the
            network after it is plotted. If you are into genetic networks it has a
            number of built-in stuff. (For 2D-plots (demand vs time) cytoscape is
            not an option.)

            I also recommend gnuplot (like everyone else) for making the standard
            y-axis, x-axis 2D-plots. It takes some time to learn syntax, but if I
            remember correctly it is pretty simple.

            /Per

            Then when you have found the shrubbery, you must cut down the mightiest
            tree in the forest...wiiiit h *pause* a herring!

            Comment

            • WEINHANDL Herbert

              #7
              Re: Automated Graph Plotting in Python

              diffuser78@gmai l.com schrieb:[color=blue]
              > My python program spits lot of data. I take that data and plot graphs
              > using OfficeOrg spredsheet. I want to automate this task as this takes
              > so much of time. I have some questions.
              >
              > 1. Which is the best graph plotting utility in python or linux. Can I
              > write a code in such a way that my python code automatically gives me a
              > graph. I know little about gnuplot. If you know any better tool without
              > much learning curve please tell me in Linux.[/color]

              if you want to plot graphs :

              use pydot the wrapper for graphviz

              http://www.research.att.com/sw/tools/graphviz/

              if you want to plot datas (2d) :
              matplotlib
              http://sourceforge.net/projects/matplotlib
              or (2d/3d) dislin (=a plotting library with a python-wrapper)
              Home page of the Data Plotting Software Dislin

              [color=blue]
              > 2. I want to write a script such that my python code writes to a file,
              > some graph utility like gnuplot takes that data from the file and I get
              > my graph ready made. Do you think its possible ?
              >
              > Any feedback regarding above is appreciated.
              >
              > Thanks
              >[/color]

              happy pythoning

              Herbert

              Comment

              • Neal Becker

                #8
                Re: Automated Graph Plotting in Python

                Felipe Almeida Lessa wrote:
                [color=blue]
                > Em Sáb, 2006-04-08 às 20:08 -0700, diffuser78@gmai l.com escreveu:[color=green]
                >> My python program spits lot of data. I take that data and plot graphs
                >> using OfficeOrg spredsheet. I want to automate this task as this takes
                >> so much of time. I have some questions.[/color]
                >
                > You can try ReportLab (www.reportlab.org). Great tool.
                >[/color]

                xmgrace if you have Motif. Easy enough to pipe your python output to it.

                Comment

                Working...