mPlot - Enhanced Plotting Engine

Versione 1.3.0.0 (5,28 KB) da Erik Lee
Enhanced plotting engine that extends the basic plotting functionality delivered with Matlab.
873 download
Aggiornato 22 gen 2011

Visualizza la licenza

mPlot is an enhanced plotting engine that extends the basic plotting functionality delivered with Matlab. The purpose of mPlot is to consolidate daily plotting and formatting tasks into a single, easy-to-use object. Provided within the class are both high-level and low-level functionality. The class has 10 predefined, unique line visual settings. These can be cycled through in order to compare multiple data sets on a given plot while maintaining unique visual properties for each data set.

The class methods are layered in such a way that inheritance can be employed to build on top of the mPlot class. This allows one to extend mPlot’s functionality while leveraging the provided code. This also means one can easily redefine all of the line colors, as demonstrated at http://matlabmafia.com/?p=104

A series of tutorials detailing the construction of the mPlot class as well as examples implementing an mPlot object can be found at http://matlabmafia.com/?p=21

*Note: The Matlab class syntax used for mPlot is only supported in Matlab 2008a and later.

------------------------------
%Example
% Example 1 - Test 5 colors
figure;
m = mPlot(); %instantiate mPlot object
m.isAutoIncrementing = 1; % enable auto-incrementing through visual line styles
m.setGlobalMarkerSize(8); %increase marker size
for i=1:5 %loop through and plot
m.plot((1:5)',randn(5,1));
end
axis tight;
title('Example 1 - Test 5 colors');

Cita come

Erik Lee (2025). mPlot - Enhanced Plotting Engine (https://it.mathworks.com/matlabcentral/fileexchange/30073-mplot-enhanced-plotting-engine), MATLAB Central File Exchange. Recuperato .

Compatibilità della release di MATLAB
Creato con R2009b
Compatibile con qualsiasi release
Compatibilità della piattaforma
Windows macOS Linux

Community Treasure Hunt

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

Start Hunting!
Versione Pubblicato Note della release
1.3.0.0

1) Corrected setMarkerSize method. 2) Added methods to alter color scheme based on Matlab defined colormaps.

1.2.0.0

Corrected constructor in order to initialize isAutoIncrementingPreviousState property

1.1.0.0

Corrected links to point to the correct website and blog posts.

1.0.0.0