|
From: | Quentin Spencer |
Subject: | Re: ylabel woes |
Date: | Thu, 29 May 2003 09:55:47 -0600 |
User-agent: | Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3) Gecko/20030314 |
Joseph C. Slater wrote:
In gnuplot, you can do set ylabel '$\frac{1}{\zeta}$' but in octave, doing a gset returns warning: unrecognized escape sequence `\z' -- converting to `z' usage: ylabel (text) error: evaluating if command near line 29, column 3error: called from `__axis_label__' in file `/sw/share/octave/2.1.46/m/plot/__axis_label__.m' error: called from `ylabel' in file `/sw/share/octave/2.1.46/m/plot/ylabel.m'error: evaluating argument list element number 1 Is there any way around this?
Usually putting "\\" in place of "\" works for me. As I understand it, this is because some of the string processing functions use "\" as an escape character as is often done in Unix. You may have to experiment, because in some cases, like in the octave-forge print function, there are multiple processing steps, so I have had to use 4 or 8 backslashes to get things to work. I wish there was a better way, but this is the only thing I can figure out.
Quentin ------------------------------------------------------------- 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] |