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.

回答 (1 件)

Azzi Abdelmalek
Azzi Abdelmalek 2015 年 7 月 9 日

0 投票

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

1 件のコメント

Akankshya Shradhanjali
Akankshya Shradhanjali 2015 年 7 月 9 日
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.

この質問は閉じられています。

質問済み:

2015 年 7 月 9 日

閉鎖済み:

2021 年 8 月 20 日

Community Treasure Hunt

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

Start Hunting!

Translated by