Homepage: PLplot, and its manual. In the manual, when a function is written
plfoo, use it like
- Windows: Sorry, gotta build from source.
- Linux: Find packages from your distribution, e.g.,
- Mac OS X:
brew install plplot worked for me (let me know if you have an issue).
This works on Londo.
CFLAGS=-Wall -g -I/usr/include/plplot -lplplotcxxd
$(CXX) $(CFLAGS) -o main main.o
$(CXX) $(CFLAGS) -c main.cpp
rm -f main main.o
delete pls actually calls
pls->end() (or something like that) finally produces the plot and saves to the file.
If these two lines are missing in the code:
…then your program will start up asking you for the output device (screen, pdf, png, whatever). You can specify the output device on the command line:
You can also see other command line options:
This is all made possible by this line of code:
Usage of the line function:
And another for histograms:
Usage of the histogram function: