필터 지우기
필터 지우기

How to crop out the edge tick marks on graph image?

조회 수: 2 (최근 30일)
Trong Link
Trong Link 2022년 11월 18일
댓글: Trong Link 2022년 11월 18일
I am working on a small project about a digitizer to be able to extract data from an image containing a graph. I am having problems with cutting edge tick marks on axes of a graph. How to cut them out without affecting the graph line in the image? I look forward to everyone's help.
  댓글 수: 2
Walter Roberson
Walter Roberson 2022년 11월 18일
Have you searched the File Exchange for tag:digitize https://www.mathworks.com/matlabcentral/fileexchange/?term=tag:%22digitize%22 and had a look at how existing programs are handling the situation (or not handling it) ?
Walter Roberson
Walter Roberson 2022년 11월 18일
For your plots of interest, are the axes always black (common) and are the lines always non-black (black lines happen sometimes) ?

댓글을 달려면 로그인하십시오.

답변 (1개)

C B
C B 2022년 11월 18일
편집: C B 2022년 11월 18일
Is this what you are looking for @Trong Link , Removing Tickdir?
t=0:0.01:1;
f=1;
x=sin(2*pi*f*t);
figure(1);
plot(t,x);
ax = gca; % current axes
ax.TickDir = 'none';
%Tick mark direction, specified as one of these values:
%'in' — Direct the tick marks inward from the axis lines. (Default for 2-D views)
%'out' — Direct the tick marks outward from the axis lines. (Default for 3-D views)
%'both' — Center the tick marks over the axis lines.
%'none' — Do not display any tick marks.
  댓글 수: 2
Walter Roberson
Walter Roberson 2022년 11월 18일
No, they have an image of a plot and want to extract data from the image.
Trong Link
Trong Link 2022년 11월 18일
No, sir. I have an image containing a plot and I want to remove all edge tick marks

댓글을 달려면 로그인하십시오.

카테고리

Help CenterFile Exchange에서 2-D and 3-D Plots에 대해 자세히 알아보기

제품


릴리스

R2021a

Community Treasure Hunt

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

Start Hunting!

Translated by