RAPIDPLOT for fast much size plots output
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
Cite As
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. Retrieved .
MATLAB Release Compatibility
Platform Compatibility
Windows macOS LinuxCategories
- MATLAB > Graphics > 2-D and 3-D Plots > Polar Plots >
Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!Discover Live Editor
Create scripts with code, output, and formatted text in a single executable document.
Version | Published | Release Notes | |
---|---|---|---|
1.0.0.0 |