Making a simple graph with Gnuplot 4.6?
Hello,
I am trying to use gnuplot but nothing works: Code:
dpkg -l | grep gnuplot src: http://gnuplot.sourceforge.net/demo_4.0/steps.1.gnu Code:
gnuplot steps.1.gnu with gnuplot 5 same story: Quote:
Gnuplot looks a bit buggy and non reliable,... |
I think there are legitimate syntax errors in your terms, which is what gnuplot is telling you.
You can't put x,y in the title, instead I think you need to set key to locate it other than the default. If I remove the x,y from that, mine works. You are not supposed to have the term screen following origin or size in the colorbox set, the zero before front is also incorrect, as is the noinvert. If I remove the two "screen" terms, the 0 before front, and the "noinvert" it also works correctly. At least according to the 4.6 documentation: http://www.gnuplot.info/docs_4.6/gnuplot.pdf |
The linked file does contain errors, probably due to naive copy/paste from some earlier example that nobody tested.
Go back one page to the page which links that file and copy/paste the gnuplot code shown there... Code:
set title "Compare steps, fsteps and histeps" Code:
gnuplot -p ./steps.1.gnu It would probably be a good learning exercise for you to compare the two and find the errors. Gnuplot is not buggy, well, no more so than any other piece of software. But the syntax can be very rich, and prone to operator error - but well worth learning! I would suggest setting up a directory where you systematically explore each major syntax feature in your own examples and keep notes! I have such a workspace which I have maintained over the years, with accumulated notes and examples which allow me to work out new plots easily when required. Update - I looked at a few more examples from the links in your original post and found there are indeed others with errors, others without errors. The problem appears to be that the linked code has been autogenerated from an earlier HTML version of the website, or other source, without anyone actually checking them. From the top of the V5 examples page... Code:
autogenerated by webify.pl... You may want to consider notifying the project website maintainers as well. |
All times are GMT -5. The time now is 04:13 AM. |