Bar graph related problem

1 vue (au cours des 30 derniers jours)
shane watson
shane watson le 17 Fév 2017
Commenté : shane watson le 18 Fév 2017
I'm in a problem which is I have used the bar for a plot.I have used 7 times bar withhold on i.e plotted 7 bar in one figure but the problem I'm facing is on Y axis values are not exact I mean one bar has value in between 10 to 11 or etc similarly others are. I need exact values on Y-axis which 1 to 16 with very small increment so that I can see somewhat exact value of my bar graph

Réponse acceptée

Steven Lord
Steven Lord le 17 Fév 2017
Adjust the YTick, YMinorTick, YGrid, and/or YMinorGrid properties of the axes to your liking.
If you're using release R2016b or later, you can use the convenience function yticks to set YTick easily.
You can use the grid function (introduced before release R2006a) to set YGrid and YMinorGrid easily.
  1 commentaire
shane watson
shane watson le 18 Fév 2017
Thank you Steven

Connectez-vous pour commenter.

Plus de réponses (0)

Catégories

En savoir plus sur Data Exploration dans Help Center et File Exchange

Community Treasure Hunt

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

Start Hunting!

Translated by