Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things

Re: Export Plots

by ambrus (Abbot)
on Sep 24, 2010 at 13:01 UTC ( #861806=note: print w/replies, xml ) Need Help??

in reply to Export Plots

See Plot a spiral with gnuplot.

To export the plot in a pdf, try gnuplot commands like this before the plot:

set terminal postscript set output ""
Note the following. If you try this interactively and want to redraw the plot with changed parameters, you might have to issue the set output statement again so that gnuplot reopens the output file, otherwise gnuplot might just append the second plot to the file and you'll get two pages. Note also that if your input contains lots of data points then the postscript file will contain data for all of them, so you might get a very large file that's slow to render even if not much will be visible of it when you eventually view it. To avoid this, either reduce the number of your data points, or output to a raster format (such as PNG) with gnuplot instead, or render the postscript to a raster format with a postscript engine (such as ghostscript) and distribute that image.

Update 2011-10-19: for a code example, see Re: Draw chart.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://861806]
[SwaJime]: I thought 0 was false, and false AND anything would be false ...
[SwaJime]: unless & is higher precedence than <
[SwaJime]: couldn't find bitwise in precedence list for sybase
[SwaJime]: I bet that is why ... and that makes it to be I think terribly written code :-|

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (8)
As of 2017-08-22 18:11 GMT
Find Nodes?
    Voting Booth?
    Who is your favorite scientist and why?

    Results (338 votes). Check out past polls.