MVPlot. Easy and flexible TAG based plot

Simple function for plottings based on the use of TAGS to set chart properties
181 Downloads
Updated 14 Mar 2014

View License

% function mvplot(varargin)
% =========================
%
% Flexible plot function which exploits VARARGIN in order to define the
% components of the chart and their characteristics.
%
% The function is based on a sequence of <'feature',value> couples
% The 'feature' is a tag (string) for selecting a particular characteristic of the
% chart; the value sets the selected characteristic. The data type of the
% value depends on the handled characteristic.
%
% EXAMPLE
%
% x=1:10; y=2*x+3
% mvplot('x',x,'y',y,'title','My sample title','legend','MyData');
%
% LIST OF TAGS
% ============
%
% x : x values (numeric)
% y : y values (numeric, MANDATORY)
% xlabel, ylabel : axes labels (string)
% title : figure title (string)
% titlefontsize : title font size (numeric)
% linestyle : style of the line (Matlab format)
% linewidth : width of the line (numeric)
% legend : legend entry for the current data serie (string)
% legendfontsize : legend size (numeric) [the last update of this feature within the
% same figure determines the fontsize of the whole legend]
% fillspace : if specified reduces the margins of the figure

Cite As

Marco Vannucci (2024). MVPlot. Easy and flexible TAG based plot (https://www.mathworks.com/matlabcentral/fileexchange/45882-mvplot-easy-and-flexible-tag-based-plot), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2012b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Tags Add Tags

Community Treasure Hunt

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

Start Hunting!
Version Published Release Notes
1.1.0.0

Added screenshot...

1.0.0.0