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

Contact us at files@mathworks.com