Path: news.mathworks.com!not-for-mail
From: "Cora " <janatc@web.de>
Newsgroups: comp.soft-sys.matlab
Subject: legend interpreter
Date: Thu, 8 May 2008 20:46:05 +0000 (UTC)
Organization: The MathWorks, Inc.
Lines: 30
Message-ID: <fvvoqd$af3$1@fred.mathworks.com>
Reply-To: "Cora " <janatc@web.de>
NNTP-Posting-Host: webapp-02-blr.mathworks.com
Content-Type: text/plain; charset="ISO-8859-1"
Content-Transfer-Encoding: 8bit
X-Trace: fred.mathworks.com 1210279565 10723 172.30.248.37 (8 May 2008 20:46:05 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Thu, 8 May 2008 20:46:05 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 1380570
Xref: news.mathworks.com comp.soft-sys.matlab:467489


Hi,

I try to get my filename e.g.orange 4.70_02 displayed in 
the legend

unfortunately it displayes 0 as a subscript due to _ in 
front of it. I know that this is due to 'Interpreter' 'tex' 
and one possibility is to write it like
orange 4.70\_02 but I don't want to change this manually 
because I read it in as an function input

function Flightdisplay(Filename,Na)
(e.g.Flightdisplay('*.txt','orange 4.70_02')

I tried 
legend(Na, 'Interpreter', 'none')
but it gives me a warning:
Warning: Ignoring extra legend entries.

I tried
set(0,'DefaultTextInterpreter','none')
but this changes only the label on the x and y achses which 
actually require 'Interpreter', 'tex', but not my legend. 

Any ideas?
Perhaps a way to insert \ automatically in front of _ ?

Thanks