MATLAB: Eliminating marks on bar graph

barhistogramMATLABplotting

Hello,
When I use the bar() plotting function, and input a given data set, for a particular binning (in the x-axis), the function plots the centers of the bins using the marker '*' on the x-axis, by default. I would like to remove these '*' marks on the x-axis. How do I write this in a code? I can do it using the GUI, but need it to be done via command line.
Regards,
F

Best Answer

I’ve seen this problem mentioned before. It is a default behaviour of bar. There is a posted fix for it here: How can I prevent or remove the asterisk annotations on my BAR plot in MATLAB 7.6 (R2008a)?