RAPIDPLOT for fast much size plots output

Version 1.0.0.0 (1.93 KB) by Ivan
Fast outputing graphs which contains a lot of point
172 Downloads
Updated 28 Mar 2014

View License

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
Created with R2012a
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on Polar Plots in Help Center and MATLAB Answers

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes
1.0.0.0