Communities for your favorite technologies. Explore all Collectives
Stack Overflow for Teams is now called Stack Internal. Bring the best of human thought and AI automation together at your work.
Bring the best of human thought and AI automation together at your work. Learn more
Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
I have a file with numbers:
1 4 9 ...
I want to plot a depencency of the numbers from their order position in the file (points [(1,1); (2;4); (3; 9); ...]).
How can I do it with gnuplot?
Try this :
plot "filename.txt" using ($0+1):1
$0 is the index of entries but it starts at 0 so we simlpy add 1 to it.
Tell me if this works for you!
Add a comment
Required, but never shown
By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.