I am drawing a simple bar diagram in MATLAB. The problem is, that the value at x = 0 lets the y-axis disappear partially. Is there a way to bring the y-axis to the front instead of hiding between the y-value for x=0? Is there any option I can make sure the y-axis is always in the front?
TickLength = [0 0]; This will allow you to keep the labels but remove the tick marks on only the x-axis.
Call the bar function to display the data in a bar graph, and specify an output argument. The output is a vector of three Bar objects, where each object corresponds to a different series. This is true whether the bars are grouped or stacked.
This here does the trick for anyone who faces the same problem in the future: set(gca,'layer','top')
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With