Thread Subject: Plot Titles With GUIDE

Subject: Plot Titles With GUIDE

From: David Doria

Date: 9 Jul, 2008 19:40:20

Message: 1 of 4

Is it standard practice to use a "Static Text" control for
axes titles/x,y labels in a GUI? Or is there some way to get
the title() function to actually do something?

Thanks,

Dave

Subject: Plot Titles With GUIDE

From: David Doria

Date: 9 Jul, 2008 20:06:02

Message: 2 of 4

ah, so i was confused by using imshow as my first example in
a GUI. The title worked fine with a normal plot. Still, it
seems you can either use the real title or fix a static text
box - is it just preference? Or is one better than the other?

Subject: Plot Titles With GUIDE

From: Nasser Abbasi

Date: 9 Jul, 2008 20:18:42

Message: 3 of 4


"David Doria" <daviddoria@gmail.com> wrote in message
news:g535n9$rao$1@fred.mathworks.com...
> ah, so i was confused by using imshow as my first example in
> a GUI. The title worked fine with a normal plot. Still, it
> seems you can either use the real title or fix a static text
> box - is it just preference? Or is one better than the other?

You can use title with imshow() also, but indirectly.

You can use the options 'Parent',h to tell imshow() which axes with the
handle 'h' to display on.

Then use title(h,'the title') to put a title on the axes which now contains
the output from imshow()

Nasser


Subject: Plot Titles With GUIDE

From: vedenev

Date: 10 Jul, 2008 03:30:30

Message: 4 of 4

Here is the code:

figure;
ha=axes;
I = imread('cameraman.tif');
imshow(I) ;
title(ha,'title here');

------------------------------------
Maxim Vedenev, Matlab freelancer
http://simulations.narod.ru/

Tags for this Thread

Add a New Tag:

Separated by commas
Ex.: root locus, bode

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

rssFeed for this Thread
 

MATLAB Central Terms of Use

NOTICE: Any content you submit to MATLAB Central, including personal information, is not subject to the protections which may be afforded information collected under other sections of The MathWorks, Inc. Web site. You are entirely responsible for all content that you upload, post, e-mail, transmit or otherwise make available via MATLAB Central. The MathWorks does not control the content posted by visitors to MATLAB Central and, does not guarantee the accuracy, integrity, or quality of such content. Under no circumstances will The MathWorks be liable in any way for any content not authored by The MathWorks, or any loss or damage of any kind incurred as a result of the use of any content posted, e-mailed, transmitted or otherwise made available via MATLAB Central. Read the complete Terms prior to use.

Contact us at files@mathworks.com