Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Latex expresssion in Scilab

805 views
Skip to first unread message

apuapu

unread,
May 30, 2008, 1:21:10 PM5/30/08
to
Hello
I am using Scilab for research and would like to label the axes using Greek
sybmols. Similar to MATLAB where you could set the interpreter to latex and
enclose the expression with $ signs.

Such as: $\alpha_1$.

Can this be done in Scilab ?

Right now I am just using:
xstring(0.52,14,'alpha_1');
which looks mighty ugly.

ycollet

unread,
May 30, 2008, 3:52:25 PM5/30/08
to
I use the following trick:

First, add in your label the following formula:
xstring(0.52,14,'\tex{$alpha_1$}');
Then export your figure in eps
in the latex preamble, add
\usepackage{psfrag}
\psfragscanon

and the label will be translated into latex formula.

YC

Matthias Zenker

unread,
Jun 2, 2008, 3:03:20 AM6/2/08
to

ycollet wrote:
> First, add in your label the following formula:
> xstring(0.52,14,'\tex{$alpha_1$}');
> Then export your figure in eps
> in the latex preamble, add
> \usepackage{psfrag}
> \psfragscanon
>
> and the label will be translated into latex formula.

... but only if the eps is inserted into a LaTeX document, right?
It would be much better to have some LaTeX commands interpreted by
scilab graphics directly, see request 122 (http://
requestzilla.scilab.org/show_bug.cgi?id=122), open since almost two
years...

Matthias

Matthias Zenker

unread,
Jun 2, 2008, 3:06:51 AM6/2/08
to

Matthias Zenker wrote:
> It would be much better to have some LaTeX commands interpreted by
> scilab graphics directly, see request 122 (http://
> requestzilla.scilab.org/show_bug.cgi?id=122), open since almost two
> years...

Even worse, it's open since almost FOUR years (last modification was
two years ago)!!

Sylvestre Ledru

unread,
Jun 2, 2008, 3:58:58 AM6/2/08
to

Well, it is a request...
Btw, Scilab is open-source and now free, you can submit a patch to
introduce this feature (I promise that I will take some time to watch
your patch and incorporate it in the trunk).

Sylvestre

Matthias Zenker

unread,
Jun 3, 2008, 4:18:51 AM6/3/08
to

Sylvestre Ledru wrote:
> Well, it is a request...

Yes, but since the question arises regularly in the newsgroup, and
since MATLAB has this feature for a long time, wouldn't it be worth
considering even if it is ONLY a request...?

> Btw, Scilab is open-source and now free, you can submit a patch to
> introduce this feature (I promise that I will take some time to watch
> your patch and incorporate it in the trunk).

If I had the time and the knowledge to do it (I am not familiar with
the scilab source code), I would certainly do it.
In fact what we would need is the possibility to change fonts within a
graphics string to allow for superscript, subscript and greek letters.
Would it really be that hard to implement?


Matthias

apuapu via MathKB.com

unread,
Jun 4, 2008, 3:50:50 PM6/4/08
to
Thanks for your comments guys.
I was hoping to include graphs from Scilab in my PowerPoint (gasp)
presentation. Guess I'll just go with MATLAB for now.

Cheers
Apu

--
Message posted via http://www.mathkb.com

F.Dro...@googlemail.com

unread,
Jun 18, 2008, 7:17:37 AM6/18/08
to
Well if it means that much for you ... I hope you don't have to pay
for it.
0 new messages