필터 지우기
필터 지우기

Why is scatter slow to pan and zoom

조회 수: 14 (최근 30일)
John Videtich
John Videtich 2017년 3월 24일
댓글: Matt J 2017년 3월 24일
Hello, I'm using R2017 and am using numerous plot functions. I've just found that "scatter" seems to really limit how quickly I can navigate around on a plot. It doesn't seem to be my particular plot; it seems to be related to "scatter" only.
Example - compare panning a line plot and scatter plot (or zooming with the mouse wheel):
figure;
x = linspace(0,3*pi,200);
y = cos(x) + rand(1,200);
scatter(x,y);
title( 'Scatter' );
pan on
figure;
x = 0:pi/100:2*pi;
y = sin(x);
plot(x,y);
title( 'Line' );
pan on
figure;
plot(x,y);
hold on
s = scatter(0,0,100,'>');
s.LineWidth = 2;
s = scatter(pi/2,1,100,'h');
s.LineWidth = 2;
s = scatter(pi,0,100,'+');
s.LineWidth = 2;
s = scatter(3*pi/2,-1,100,'^');
s.LineWidth = 2;
s = scatter(2*pi,0,100,'*');
s.LineWidth = 2;
title( 'Line & scatter' );
pan on
I'm only using scatter for 5-30 points, each with a different marker (new call to "scatter"). It gets progressively worse past 5 or 10 points. But it only takes 1 to significantly slow down pan/zoom update rates.
Any suggestions?
Thanks!
- John
  댓글 수: 1
Matt J
Matt J 2017년 3월 24일
Hmmm. I'm not seeing any noticeably slow behavior. I would expect scatter to be slower on some time scale because you have more graphics objects in that plot, but it's not perceptible to me when manually panning/zooming.
A complete reboot of the computer might be something to try.

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

답변 (0개)

카테고리

Help CenterFile Exchange에서 Scatter Plots에 대해 자세히 알아보기

Community Treasure Hunt

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

Start Hunting!

Translated by