Path: news.mathworks.com!not-for-mail
From: "Jeff " <jkear_REMOVE_ns@ucsd.edu>
Newsgroups: comp.soft-sys.matlab
Subject: Re: how to insert textbox and write text in a figure by code (not manually)
Date: Thu, 16 Aug 2007 18:03:21 +0000 (UTC)
Organization: University Of Californa San Diego
Lines: 18
Message-ID: <fa23h9$t82$1@fred.mathworks.com>
References: <fa1nue$lhh$1@fred.mathworks.com> <fa1qs8$83n$1@fred.mathworks.com>
Reply-To: "Jeff " <jkear_REMOVE_ns@ucsd.edu>
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 1187287401 29954 172.30.248.37 (16 Aug 2007 18:03:21 GMT)
X-Complaints-To: news@mathworks.com
NNTP-Posting-Date: Thu, 16 Aug 2007 18:03:21 +0000 (UTC)
X-Newsreader: MATLAB Central Newsreader 879711
Xref: news.mathworks.com comp.soft-sys.matlab:424188


Hey, cool hint.  I've also wondered how to add text to plots automatically.  

Can you set the position to a subplot index instead of a certain x,y location?

ie: 

subplot(2,2,1);
% plot 1

subplot(2,2,2);
% plot 2

subplot(2,2,3);
% plot 3

subplot(2,2,4);
% textbox