Menu

Gnuplot 4.0 and png files

Help
Chris
2004-08-25
2004-08-26
  • Chris

    Chris - 2004-08-25

    Hi,

    I was working with Gnuplot 3.7 and exporting graphs to gif format to be read by Visual Basic 6.0.
    Gnuplot 4.0 uses now png format, I'm trying to use it.

    As VB can't read png files by default, I have downloaded PajantImage Control which can read png files.
    My problem is that Pajant is unable to open png files exported by gnuplot 4, as well as Paint Shop Pro but Word XP is able to insert them in a document !!

    What must I do to read png files from vb ?
    Any help will be appreciated.
    Thanks in advance.
    Chris

     
    • Hans-Bernhard Broeker

      We have no idea.

      gnuplot uses the default implementation (libpng) to create PNG files, and they seem to work in all other applications anybody ever tried, so its quite unlikely that there's anything wrong with the PNG files produced by gnuplot.

      Ask the vendor of that PNG image file handling control you're using, please.  You may want to
      hand them an example image for debugging.

       
    • Chris

      Chris - 2004-08-26

      Thanks for response.
      I have found my problem.
      I have forgotten to add a 'set out' command after my 'plot' command to close the file and make it readable by other soft.

      It works but it's too long to execute.
      So could you tell me if I can send the graph to clipboard to get it faster with a gnuplot command line.

      Thanks
      Chris

       
      • Hans-Bernhard Broeker

        How long is "too long".  And too long for what purpose, anyway?

         
    • Chris

      Chris - 2004-08-26

      ok, Gnuplot takes too many time to save graph to the png file and then it takes also some time to read the png file. It takes about 3-4 seconds for these two operations. It's too slow for our application.

      It's faster when sending graphs to Win term but as we need to display several graphs at a time we use Visual Basic to make a multi display.

      So I wonder if we can send graph to clipboard.
      It will be faster to save graph to clipboard and then get the clipboard than save and read a png file isn't it ?

       
      • Hans-Bernhard Broeker

        What kind of machine are we talking about here?  3 or more seconds for a PNG image does seem rather excessive.  But if that's really your bottleneck, you should probably try using a different file format.  Going through the clipboard isn't really going to improve things, because there's no programmable
        access to that function ---you'ld have to use the mouse manually, and that's almost certainly going to take *more* than 3 seconds, in total.

         

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.