フィルターのクリア

Tick marks when I set "box on".

11 ビュー (過去 30 日間)
cnrvx732
cnrvx732 2021 年 4 月 9 日
回答済み: Abhishek Gupta 2021 年 4 月 12 日
When I set "box on", the tick marks appear on the top, bottom, left and right sides of the plot. Can I make it only show left and bottom?

採用された回答

Abhishek Gupta
Abhishek Gupta 2021 年 4 月 12 日
Hi,
Here is an example, which only displays tick marks on the left and bottom axes: -
figure;
plot(1:20);
% get handle to current axes
a = gca;
% set box property to off and remove background color
set(a, 'box', 'off', 'color', 'none');
% create new, empty axes with box but without ticks
b = axes('Position', get(a, 'Position'), 'box', 'on', 'xtick', [], 'ytick', []);
% set original axes as active
axes(a);
Output: -

その他の回答 (0 件)

カテゴリ

Help Center および File ExchangeAnnotations についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by