Plotting histogram with similar graphical view as imhist produces

1 view (last 30 days)
Hi everybody,
Can one of you let me know how to plot a histogram with distinctive lines as imhist produces. I do not want the color map to be existing there as is seen in the image of imhist. Since, i am not able to call the imhistc (mex) file embedded within the code of imhist, i am unable to use it for re-generating the graph as earlier.

Answers (1)

Image Analyst
Image Analyst on 3 Mar 2012
I'm not exactly sure what you're referring to but did you try calling hist() and then calling bar()? bar() has a lot of options for setting bar widths, etc.
  1 Comment
Shashi
Shashi on 3 Mar 2012
Yes, i did try using hist, and bar function. I was able to get a good graph, but the width of the lines were required to be kept very small. And i certain cases, i was getting an overlap of the lines. So, i just thought if i could use a similar function as used by imhist for plotting.

Sign in to comment.

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!