problems while exporting figure.

1. the figure does not have ticks in the y axis. i tried this command. set(gca,'ytick',[20,40]);
2. I want to increase the lines of bars, not the width. i.e- black lines making the bars should be of same thickness as the axis. Please help me with that as I cannot find the right command for it.
3. Also, I want the portion of x axis beneath the bars in alignment with the x axis. i.e-bars should start above the aligned x axis, not the way it is now. Hope I am clear.
Please help me as soon as you can.

Answers (1)

h=bar(1:3,'facecolor','y','edgecolor','k','linewidth',1)

1 Comment

I had this command though,
H(n)=bar(n,avg_vect(n),bar_width,'parent',axis_hand,'facecolor',colors(n,:));
but the one you said does not work either.

This question is closed.

Closed:

on 20 Aug 2021

Community Treasure Hunt

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

Start Hunting!