- Alec (3rd year) showed me a way to print graphs from the computers in the grad
lounge. By using the command: print -dpdf <filename> You create a pdf with the last object (i.e. graph or plot) with the filename of your choosing. This file goes directly into the shell file transfer window (after the program has run, you have to hit refresh to see the created pdf). This file is rewritten every time you run the program.
Example: The following is some example code.
hist(a)
print -dpdf hist
- A pdf will be created with the filename hist. This file will contain the histogram of object (vector) a.