The RAPIDPLOT function works like the PLOT function, but much faster for long arrays of data. Acceleration is achieved by breaking the plotting array into sections, each of which selects own minimum and maximum values that approximate the original curve. In case of the section will be short the standard PLOT will be called.
Note: you can not specify absciss you want, every point is indexed by serial number of itself. You may just specify an offset using XLIM(1). If you want to use another absciss points you should use the follow construction:
start = 0; finish = 1e6;
data = sin( (start:finish)/(pi^10) );
hPlot = rapidplot(gca, [start finish], data', 'r', 1e4);
set(hPlot, 'XData', get(hPlot, 'XData')/(pi^10))
Since I was chasing the speed of performance of the function I had to reduce the number of unnecessary operations, therefore you shoud make sure at:
- specify all parameters exactly
- an array for plotting has to be a column
- specify a plotting color by hand
引用格式
Ivan (2024). RAPIDPLOT for fast much size plots output (https://www.mathworks.com/matlabcentral/fileexchange/46069-rapidplot-for-fast-much-size-plots-output), MATLAB Central File Exchange. 检索时间: .
MATLAB 版本兼容性
平台兼容性
Windows macOS Linux类别
- MATLAB > Graphics > 2-D and 3-D Plots > Polar Plots >
标签
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!版本 | 已发布 | 发行说明 | |
---|---|---|---|
1.0.0.0 |