How to stop Histogram from covering Tick Marks
4 ビュー (過去 30 日間)
古いコメントを表示
How do you stop a histogram from covering tick marks on a graph? It's rather bewildering that they get covered up.
Edit: I have found one solution is to plot the tick marks pointing outward.
figure1 = figure('units','normalized','outerposition',[0 0 1 1]);
axes1 = axes('Parent',figure1,'YMinorTick','on','YGrid','on',...
'XMinorTick','on','XGrid','on','TickDir','out');
The important part there is 'TickDir','out' I would still like to know how to plot marks over a histogram for future reference.
2 件のコメント
Image Analyst
2013 年 9 月 26 日
What is your code for plotting the histogram? Did you use bar() or plot()? Show the exact line of code.
回答 (2 件)
Jing
2013 年 9 月 26 日
I think you already got the point to show the tick marks for BAR or HIST. In the doc of Axes Properties, it states under TickDir, for 2-D views, the default is to direct tick marks inward from the axis lines. So you have to manually set the TickDir to 'out'.
And in your last sentence, what do you mean by 'plot marks over histogram'?
Irfan Mulla
2018 年 5 月 16 日
編集済み: Irfan Mulla
2018 年 5 月 16 日
set(gca, 'Layer','top'); set(gca,'TickDir','Out')
0 件のコメント
参考
カテゴリ
Help Center および File Exchange で Histograms についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!