Export raw gnuplot code

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Export raw gnuplot code

Stanislav Pika
Hi!

Is it possible to export the figures produced by plot() as a raw
sequence of gnuplot commands?


Best regards
Stanislav Pika

_______________________________________________
Help-octave mailing list
[hidden email]
https://www-old.cae.wisc.edu/mailman/listinfo/help-octave
Reply | Threaded
Open this post in threaded view
|

Re: Export raw gnuplot code

David Bateman
drawnow ("x11", "/dev/null", false, "debug.gp")

and the raw gnuplot will be in the file debug.gp.. This is a great feature to debug Octave or tweak plots before their publication

D.

Reply | Threaded
Open this post in threaded view
|

Re: Export raw gnuplot code

CdeMills
In reply to this post by Stanislav Pika
There is a specific 'gnuplot' package in octave-forge.

Another option is to
1) export to an epslatexstandalone file: this generate an .ltx and an .eps file
2) edit the eps auxiliary file: at the beginning, you have a few options to change linestyle and the like. Convert to pdf with epstopdf
3) edit the LaTeX file, change the base font, axis text, style, ... at your liking
4) generate the pdf file corresponding to the image
3) in your favorite text editor, import this 'image' inside a frame of 3/4 aspect ratio, or better 10/16.18 (golden ratio)

Done.

Regards

Pascal