RAPIDPLOT for fast much size plots output

版本 1.0.0.0 (1.9 KB) 作者: Ivan
Fast outputing graphs which contains a lot of point
172.0 次下载
更新时间 2014/3/28

查看许可证

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 版本兼容性
创建方式 R2012a
兼容任何版本
平台兼容性
Windows macOS Linux
类别
Help CenterMATLAB Answers 中查找有关 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