Got Questions? Get Answers.
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:
Marking specific value in a histogram

Subject: Marking specific value in a histogram

From: Tomaz

Date: 20 Apr, 2010 08:27:04

Message: 1 of 4

Hi all!

I have mad a histogram showing some results of 10000 simulations. Now I would like to mark as clearly as possible (maybe with an arrow, or simply with specially designed bar) where does a particular value (original value, H0) fall into in this empirical distribution. Any ideas how to do this?
Thanks in advance.

Subject: Marking specific value in a histogram

From: ImageAnalyst

Date: 20 Apr, 2010 10:13:13

Message: 2 of 4

I do this often to illustrate the threshold chosen on a histogram. I
use the line() function to draw a vertical line with a different color
than the bars of the histogram. You can choose the line width. You
could instead use the stem() function if you want to put a marker at
the tip of the line.

Subject: Marking specific value in a histogram

From: Tomaz

Date: 20 Apr, 2010 10:52:04

Message: 3 of 4

ImageAnalyst <imageanalyst@mailinator.com> wrote in message <6653d5e3-0126-456e-a791-583a12a0c063@n3g2000vbl.googlegroups.com>...
> I do this often to illustrate the threshold chosen on a histogram. I
> use the line() function to draw a vertical line with a different color
> than the bars of the histogram. You can choose the line width. You
> could instead use the stem() function if you want to put a marker at
> the tip of the line.

Thanks, the line() function is really handy in my case! Is there also some chance of putting some label (I will put the value in it) at the upper end of line?

Subject: Marking specific value in a histogram

From: ImageAnalyst

Date: 20 Apr, 2010 13:40:49

Message: 4 of 4

On Apr 20, 6:52 am, "Tomaz " <tomaz.bart...@gmail.com> wrote:
> ImageAnalyst <imageanal...@mailinator.com> wrote in message <6653d5e3-0126-456e-a791-583a12a0c...@n3g2000vbl.googlegroups.com>...
> > I do this often to illustrate the threshold chosen on a histogram.  I
> > use the line() function to draw a vertical line with a different color
> > than the bars of the histogram.  You can choose the line width.  You
> > could instead use the stem() function if you want to put a marker at
> > the tip of the line.
>
> Thanks, the line() function is really handy in my case! Is there also some chance of putting some label (I will put the value in it) at the upper end of line?

---------------------------------------------
Yes, with the text() function.

Tags for this Thread

No tags are associated with 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