comparison m-toolbox/classes/+utils/@plottools/plottools.m @ 0:f0afece42f48

Import.
author Daniele Nicolodi <nicolodi@science.unitn.it>
date Wed, 23 Nov 2011 19:22:13 +0100
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:f0afece42f48
1 % PLOTTOOLS class for tools to manipulate the current object/figure/axis.
2 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
3 %
4 % DESCRIPTION: PLOTTOOLS class for tools to manipulate the current
5 % object/figure/axis.
6 %
7 % PLOTTOOLS METHODS:
8 %
9 % Static methods:
10 % yticks - Set the input vector as the y-ticks of the current axis
11 % xticks - Set the input vector as the x-ticks of the current axis
12 %
13 % zscale - Set the Z scale of the current axis
14 % yscale - Set the Y scale of the current axis
15 % xscale - Set the X scale of the current axis
16 %
17 % zaxis - Set the Z axis range of the current figure
18 % yaxis - Set the Y axis range of the current figure
19 % xaxis - Set the X axis range of the current figure
20 %
21 % msuptitle - Puts a title above all subplots
22 % islinespec - Checks a string to the line spec syntax
23 % label - makes the input string into a suitable string
24 % for using on plots.
25 %
26 % legendAdd - Add a string to the current legend
27 % cscale - Set the color range of the current figure
28 %
29 % allyscale - Set all the Y scales on the current figure
30 % allylabel - Set all the y-axis labels on the current figure
31 % allyaxis - Set all the yaxis ranges on the current figure
32 % allxscale - Set all the x scales on the current figure
33 % allxlabel - Set all the x-axis labels on the current figure
34 % allxaxis - Set all the x scales on the current figure
35 % allgrid - Set all the grids to ['on'|'off']
36 %
37 % HELP: To see the available static methods, call
38 % >> methods utils.plottools
39 %
40 % HISTORY: 26-05-2008 Diepholz
41 % Creation
42 %
43 % VERSION: $Id: plottools.m,v 1.3 2011/02/08 06:12:03 ingo Exp $
44 %
45 %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
46
47 classdef plottools
48
49 %------------------------------------------------
50 %--------- Declaration of Static methods --------
51 %------------------------------------------------
52 methods (Static)
53
54 %-------------------------------------------------------------
55 % List other methods
56 %-------------------------------------------------------------
57
58 yticks(v) % Set the input vector as the y-ticks of the current axis
59 xticks(v) % Set the input vector as the x-ticks of the current axis
60
61 zscale(scale) % Set the Z scale of the current axis
62 yscale(scale) % Set the Y scale of the current axis
63 xscale(scale) % Set the X scale of the current axis
64
65 zaxis(x1,x2) % Set the Z axis range of the current figure
66 yaxis(y1,y2) % Set the Y axis range of the current figure
67 xaxis(x1,x2) % Set the X axis range of the current figure
68
69 hout = msuptitle(str) % Puts a title above all subplots
70 varargout = islinespec(str) % Checks a string to the line spec syntax
71 s = label(si) % makes the input string into a suitable string
72 % for using on plots.
73
74 legendAdd(varargin) % Add a string to the current legend
75 cscale(y1,y2) % Set the color range of the current figure
76
77 allyscale(scale) % Set all the Y scales on the current figure
78 allylabel(label) % Set all the y-axis labels on the current figure
79 allyaxis(y1, y2) % Set all the yaxis ranges on the current figure
80 allxscale(scale) % Set all the x scales on the current figure
81 allxlabel(label) % Set all the x-axis labels on the current figure
82 allxaxis(x1, x2) % Set all the x scales on the current figure
83 allgrid(state) % Set all the grids to ['on'|'off']
84
85 output_txt = datacursormode(obj, event_obj)
86
87 backupDefaultPlotSettings()
88 restoreDefaultPlotSettings()
89
90 end % End static methods
91
92 end
93