How to change y-axis limit of a histogram
Mostrar comentarios más antiguos
I want to add a histogram to a GUI, but i have to keep it small, when i initiate it, it shows a value of 5000 on y axis whereas the frequency of pixels is less than 500 so i want to decrease it to clearly show the bars. So can anybody tell me on how to change y axis limit in imhist.
1 comentario
Brando Miranda
el 26 de Mzo. de 2017
what if its a hist3 i.e. histogram in 2D
Respuestas (2)
Image Analyst
el 3 de Jun. de 2014
Take the log before you display it. Or suppress one of the bins by setting it to zero. You can change the limits with ylim
ylim([0 500]);
3 comentarios
Manish Sharma
el 30 de Jun. de 2016
i declared my y axis to be R_size but when i use the above command the matlab pops error as " Undefined function or variable 'R_sizelim'"
José-Luis
el 30 de Jun. de 2016
It would be easier to get an answer by asking a new question, instead of commenting on a two-year old post.
Seems like you might want something like:
R_size.YLim = [minim, maxim]
Brando Miranda
el 26 de Mzo. de 2017
what if its a hist3 i.e. histogram in 2D
jawad mansoor
el 25 de Mayo de 2014
0 votos
ye le merey dost :P :D :)
ab khapa arrange ker k rakhi
3 comentarios
Mohammad Ahmed
el 25 de Mayo de 2014
Mohammad Ahmed
el 25 de Mayo de 2014
Brando Miranda
el 26 de Mzo. de 2017
what if its a hist3 i.e. histogram in 2D
Categorías
Más información sobre Histograms en Centro de ayuda y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!