Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
Labelling bar graphs

Subject: Labelling bar graphs

From: Gunny

Date: 7 Jul, 2009 10:53:02

Message: 1 of 2

I am plotting a bar graph with a normalised y-axis scale. I would also like to display somewhere the actual count for each bar. preferrably on top of each bar. Is this possible to do within the plotting function rather than the annotate tool in the GUI and if so how?

Regards
Gunny

Subject: Labelling bar graphs

From: Steven Lord

Date: 7 Jul, 2009 13:16:08

Message: 2 of 2


"Gunny " <g.dhadyalla@warwick.ac.uk.deletethis> wrote in message
news:h2v9ee$f1h$1@fred.mathworks.com...
>I am plotting a bar graph with a normalised y-axis scale. I would also
>like to display somewhere the actual count for each bar. preferrably on top
>of each bar. Is this possible to do within the plotting function rather
>than the annotate tool in the GUI and if so how?

You can't do this directly with your call to BAR, but you can do this with
one additional function call -- use the TEXT function.

--
Steve Lord
slord@mathworks.com

Tags for this Thread

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.

Contact us