|
From: | Paul Kienzle |
Subject: | Re: octave -> gnuplot -> latex in labels HOWTO ? |
Date: | Tue, 25 Jan 2005 08:24:43 -0500 |
Matplotlib is an excellent 2D graph package for python. Some of the screenshots contain math markup. Long term this solution could replace gnuplot, except that it doesn't do 3D. - Paul On Jan 25, 2005, at 5:40 AM, Matt Flax wrote:
Firstly hello, thanks everybody who offered help. It seems that the most straight forward approach is to do the following : a] run octave and make a plot. b] save the plot as a figure it is important to set the fig term like so : gset term fig textspecial c] run fig2ps on the output file : fig2ps homepage : http://fig2ps.sourceforge.net/ fig2ps fileName.fig should spit out fileName.ps d] view the output ps ... it should have latex style formatting in it. the resulting ps image does not suffer from aliasing and scales nicely. I have tried several conversion scripts and the one specified above works very nicely, including complete cropping of the output ps file. thanks Matt On Mon, Jan 24, 2005 at 09:16:44AM -0800, Jonathan Stickel wrote:Simple subscript and superscript commands ("_" or "^") do workautomatically with the eps gnuplot terminal. For more advanced latex, Iuse the xfig terminal, and then use "figfrag":http://www.ctan.org/tex-archive/graphics/figfrag/?action=/tex- archive/graphics/figfrag converts xfig files to eps, processing all the latex commands. I had to patch figfrag to use epstool for bounding box correction, so let me know if you want the patch. Also, I've found I have to open up the xfig file and resave it; for some reason figfrag doesn't like thexfig file output by gnuplot. Oh, and there is also the program "fig2ps"that does nearly the same thing; I just happen to like figfrag better. HTH, Jonathan Matt Flax wrote:Hello,I would like some math formatting inserted into my wordprocessor Figurex/y labels.I would like to put some formatting in my xlabels ... something like :gset xlabel '$\\gamma h_2$' Which when viewed through the word processor should be printed as the Greek letter Gamma and an 'h' with a '2' as subscript. Does anyone out there have PERSONAL examples of how to put latex into the labels of plots .... and then import to latex or preferably LyX ? Normally LyX allows you to export it as a simple .fig file which getsconverted on the fly , however the labels don't seem to enter the tex orlyx math modes ... thanks Matt------------------------------------------------------------- Octave is freely available under the terms of the GNU GPL. Octave's home on the web: http://www.octave.org How to fund new projects: http://www.octave.org/funding.html Subscription information: http://www.octave.org/archive.html --------------------------------------------------------------- http://www.flatmax.org MFFM Bit Stream : http://sourceforge.net/projects/mffmbitstream/ Other Projects : http://sourceforge.net/search/?type_of_search=soft&words=mffm ------------------------------------------------------------- Octave is freely available under the terms of the GNU GPL. Octave's home on the web: http://www.octave.org How to fund new projects: http://www.octave.org/funding.html Subscription information: http://www.octave.org/archive.html -------------------------------------------------------------
------------------------------------------------------------- Octave is freely available under the terms of the GNU GPL. Octave's home on the web: http://www.octave.org How to fund new projects: http://www.octave.org/funding.html Subscription information: http://www.octave.org/archive.html -------------------------------------------------------------
[Prev in Thread] | Current Thread | [Next in Thread] |