Effacer les filtres
Effacer les filtres

Plotting histogram with similar graphical view as imhist produces

2 vues (au cours des 30 derniers jours)
Shashi
Shashi le 3 Mar 2012
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.

Réponses (1)

Image Analyst
Image Analyst le 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 commentaire
Shashi
Shashi le 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.

Connectez-vous pour commenter.

Community Treasure Hunt

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

Start Hunting!

Translated by