MVPlot. Easy and flexible TAG based plot
% 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
Platform Compatibility
Windows macOS LinuxCategories
- MATLAB > Graphics > 2-D and 3-D Plots > Line Plots >
- MATLAB > Graphics > Formatting and Annotation > Labels and Annotations > Title >
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.