RAPIDPLOT for fast much size plots output

Version 1.0.0.0 (1,93 KB) von Ivan
Fast outputing graphs which contains a lot of point
172 Downloads
Aktualisiert 28 Mär 2014

Lizenz anzeigen

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

Zitieren als

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. Abgerufen .

Kompatibilität der MATLAB-Version
Erstellt mit R2012a
Kompatibel mit allen Versionen
Plattform-Kompatibilität
Windows macOS Linux
Kategorien
Mehr zu Polar Plots finden Sie in Help Center und MATLAB Answers

Community Treasure Hunt

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

Start Hunting!
Version Veröffentlicht Versionshinweise
1.0.0.0