octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Treat TeX in plot text in a Matlab compatible matter with gnuplot en


From: David Bateman
Subject: Re: Treat TeX in plot text in a Matlab compatible matter with gnuplot enhanced mode
Date: Mon, 19 Nov 2007 15:18:16 +0100
User-agent: Thunderbird 1.5.0.7 (X11/20060921)

Shai Ayal wrote:
> On Nov 19, 2007 3:42 PM, David Bateman <address@hidden> wrote:
>   
>> Shai Ayal wrote:
>>     
>>> I have 2 comments:
>>> 1) It's going to be really hard to live up to the features of the
>>> gnuplot backend, and it keeps getting harder.
>>> 2) Why do you use the string_property type for the interpreter
>>> property and not radio_value?
>>>
>>>       
>> Shai,
>>
>> Here is my updated version of this patch. It adds the \bf, \it modes
>> etc, fixes a few incorrect symbols and correctly implements the super-
>> and sub-scripts. The super- and sub-scripts were rather messy as gnuplot
>> requires that the shorter of the two comes first to get the correct
>> alignment. The definition of shorter is not obvious as the fonts might
>> be proportional, nested {} and  there might be  non-printed characters
>> like /fontsize{20} that need to be ignored.. I also added documentation
>> and an example
>>
>> x = 0:0.01:3;
>> plot(x,erf(x));
>> hold on;
>> plot(x,x,'r');
>> axis([0, 3, 0, 1]);
>> text(0.65, 0.6175, strcat('\leftarrow x = {2/\surd\pi', ...
>> ' {\fontsize{16}\int_{\fontsize{8}0}^{\fontsize{8}x}}', ...
>> ' e^{-t^2} dt} = 0.6175'))
>>
>> which demonstrates the capabilities of the patch to layout mathematical
>> formula. I included your string_property, caseless_str patch in this
>> patch to get rid of he conflict between our patches. So your patch
>> shouldn't be applied, as its included here..
>>     
>
> David,
>
> thanks for merging my patch in. I didn't do yet it because I was not
> sure it would be accepted (I changed the name of a class which touched
> quite a lot of places).
>
> Shai
>   
Hey, I'm not sure John will accept the TeX to gnuplot extended mode
munging yet either, at least not for 3.0, but hope he will because the
functionality is so useful..

D.

-- 
David Bateman                                address@hidden
Motorola Labs - Paris                        +33 1 69 35 48 04 (Ph) 
Parc Les Algorithmes, Commune de St Aubin    +33 6 72 01 06 33 (Mob) 
91193 Gif-Sur-Yvette FRANCE                  +33 1 69 35 77 01 (Fax) 

The information contained in this communication has been classified as: 

[x] General Business Information 
[ ] Motorola Internal Use Only 
[ ] Motorola Confidential Proprietary



reply via email to

[Prev in Thread] Current Thread [Next in Thread]