Using TeX notation in xlabel makes the title of the figure change to Greek font

David Bateman David.Bateman at motorola.com
Mon Sep 22 03:47:11 CDT 2008


Alexander Mamonov wrote:
> --------
> Bug report for Octave 3.0.2 configured for i486-pc-linux-gnu
>
> Description:
> -----------
>
> The problem can be recreated by
>
>   
>> figure(1); clf; title('ABCDEFGHIJKLMONPQRSTUVWXYZ'); xlabel('a \in [0,1]');
>>     
>
> Upon execution of the above command line the title of the figure is
> displayed in
> Greek letters - capital alpha for A, beta for B, xi for C, delta for D
> and so on.
> The TeX symbol of set inclusion '\in' in the xlabel is displayed correctly.
> If the TeX symbol '\in' is removed from the argument of xlabel, i.e.
>
>   
>> figure(1); clf; title('ABCDEFGHIJKLMONPQRSTUVWXYZ'); xlabel('a [0,1]');
>>     

Weird... I can't duplicate this with 3.0.2+ or 3.1.51+ (Sorry I don't 
have 3.0.2 to check) and so I suspect that either its already been fixed 
(though I don't see a patch addressing this) or its some particular 
issue with your installation. Try the command

figure(1); clf; title('ABCDEFGHIJKLMONPQRSTUVWXYZ'); xlabel('a \in [0,1]');
drawnow ("x11", "/dev/null", false, "debug.gp")

This will create a file debug.gp with the commands that Octave sends to 
gnuplot. You can then do "load debug.gp" in gnuplot to get the same 
result. It might be easier to debug your issue using this file than 
modifying Octave itself. In any case maybe you could send the file here 
for info.

Regards
David

-- 
David Bateman                                David.Bateman at motorola.com
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



More information about the Bug-octave mailing list