How to improve saving a scatter plot from three arrays with size 1*508654896
조회 수: 1 (최근 30일)
이전 댓글 표시
using 3 arrays R,S and T I want to make a scatterplot,but it takes a lot of time to save the scatterplot and sometimes crashed. How can I improve it?
bb= find(R>=0.2 & R <0.4);
x2 = S(bb);
y2 = T(bb);
figure(2)
scatter(x2,y2,'MarkerFaceColor','b','MarkerEdgeColor','b');
saveas(gcf,'420bbh.tiff', 'tiffn') saveas(gcf,'420bbh.fig')
댓글 수: 0
채택된 답변
Sean de Wolski
2015년 2월 9일
I think you need to consider another kind of plot. Your monitor doesn't even have that many pixels!
댓글 수: 2
Sean de Wolski
2015년 2월 9일
Then remove them before scattering!
Otherwise, they still need to be transmitted.
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/181849/image.png)
Here's one way to remove:
idxNan = isnan(x)|isnan(y);
x(idxNan) = [];
y(idxNan) = [];
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Discrete Data Plots에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!