Plotting >500 curves verry slow since new plotting mode appeared?

I have been plotting many 1000 curves (double with ~32000 points in each line) in matlab with regular "plot" function and have recently experienced that it is very slow. I have increased Java Heap memory to 4 GB but it doesnt help .
I have a vage memory that the shift happened around the same time that the new plot features appeared, ie the tools in the right top corner. Could this be the reason? if so is there any way of forcing some plots to use the old method?

3 件のコメント

Steven Lord
Steven Lord 2020 年 11 月 2 日
With 1000 curves on a single figure, I'd imagine that picture would be difficult to interpret. Do you actually need all 1000 curves to be on the same figure and/or open at the same time?
Micke Malmström
Micke Malmström 2020 年 11 月 9 日
that is a valid question but sometimes I actually need it. The question is why I experience is slower nowadays...
Micke Malmström
Micke Malmström 2021 年 2 月 17 日
Found the error in my own code. I was changeing the color of the lines in a bad way (going through the properties of each line one by one). Now using colororder it’s much better.

サインインしてコメントする。

 採用された回答

Micke Malmström
Micke Malmström 2021 年 2 月 17 日

0 投票

Se comment above about colororder

その他の回答 (1 件)

Ameer Hamza
Ameer Hamza 2020 年 11 月 2 日

0 投票

Try disabling the toolbar
ax = axes();
ax.Toolbar = [];
Also, try disabling the interactions if you don't need it: https://www.mathworks.com/help/matlab/ref/disabledefaultinteractivity.html

カテゴリ

ヘルプ センター および File Exchange2-D and 3-D Plots についてさらに検索

製品

リリース

R2020b

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by