view m-toolbox/classes/+utils/@plottools/plottools.m @ 44:409a22968d5e
default
Add unit tests
author
Daniele Nicolodi <nicolodi@science.unitn.it>
date
Tue, 06 Dec 2011 18:42:11 +0100 (2011-12-06)
parents
f0afece42f48
children
line source
+ − % PLOTTOOLS class for tools to manipulate the current object/figure/axis.
+ − %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+ − %
+ − % DESCRIPTION: PLOTTOOLS class for tools to manipulate the current
+ − % object/figure/axis.
+ − %
+ − % PLOTTOOLS METHODS:
+ − %
+ − % Static methods:
+ − % yticks - Set the input vector as the y-ticks of the current axis
+ − % xticks - Set the input vector as the x-ticks of the current axis
+ − %
+ − % zscale - Set the Z scale of the current axis
+ − % yscale - Set the Y scale of the current axis
+ − % xscale - Set the X scale of the current axis
+ − %
+ − % zaxis - Set the Z axis range of the current figure
+ − % yaxis - Set the Y axis range of the current figure
+ − % xaxis - Set the X axis range of the current figure
+ − %
+ − % msuptitle - Puts a title above all subplots
+ − % islinespec - Checks a string to the line spec syntax
+ − % label - makes the input string into a suitable string
+ − % for using on plots.
+ − %
+ − % legendAdd - Add a string to the current legend
+ − % cscale - Set the color range of the current figure
+ − %
+ − % allyscale - Set all the Y scales on the current figure
+ − % allylabel - Set all the y-axis labels on the current figure
+ − % allyaxis - Set all the yaxis ranges on the current figure
+ − % allxscale - Set all the x scales on the current figure
+ − % allxlabel - Set all the x-axis labels on the current figure
+ − % allxaxis - Set all the x scales on the current figure
+ − % allgrid - Set all the grids to ['on'|'off']
+ − %
+ − % HELP: To see the available static methods, call
+ − % >> methods utils.plottools
+ − %
+ − % HISTORY: 26-05-2008 Diepholz
+ − % Creation
+ − %
+ − % VERSION: $Id: plottools.m,v 1.3 2011/02/08 06:12:03 ingo Exp $
+ − %
+ − %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
+ −
+ − classdef plottools
+ −
+ − %------------------------------------------------
+ − %--------- Declaration of Static methods --------
+ − %------------------------------------------------
+ − methods (Static)
+ −
+ − %-------------------------------------------------------------
+ − % List other methods
+ − %-------------------------------------------------------------
+ −
+ − yticks(v) % Set the input vector as the y-ticks of the current axis
+ − xticks(v) % Set the input vector as the x-ticks of the current axis
+ −
+ − zscale(scale) % Set the Z scale of the current axis
+ − yscale(scale) % Set the Y scale of the current axis
+ − xscale(scale) % Set the X scale of the current axis
+ −
+ − zaxis(x1,x2) % Set the Z axis range of the current figure
+ − yaxis(y1,y2) % Set the Y axis range of the current figure
+ − xaxis(x1,x2) % Set the X axis range of the current figure
+ −
+ − hout = msuptitle(str) % Puts a title above all subplots
+ − varargout = islinespec(str) % Checks a string to the line spec syntax
+ − s = label(si) % makes the input string into a suitable string
+ − % for using on plots.
+ −
+ − legendAdd(varargin) % Add a string to the current legend
+ − cscale(y1,y2) % Set the color range of the current figure
+ −
+ − allyscale(scale) % Set all the Y scales on the current figure
+ − allylabel(label) % Set all the y-axis labels on the current figure
+ − allyaxis(y1, y2) % Set all the yaxis ranges on the current figure
+ − allxscale(scale) % Set all the x scales on the current figure
+ − allxlabel(label) % Set all the x-axis labels on the current figure
+ − allxaxis(x1, x2) % Set all the x scales on the current figure
+ − allgrid(state) % Set all the grids to ['on'|'off']
+ −
+ − output_txt = datacursormode(obj, event_obj)
+ −
+ − backupDefaultPlotSettings()
+ − restoreDefaultPlotSettings()
+ −
+ − end % End static methods
+ −
+ − end
+ −