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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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 ?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
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.
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
How long is "too long". And too long for what purpose, anyway?
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 ?
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.