44 pm.UseFileTypeFolders=
false;
48 i.CaseSensitive=
true;
49 i.KeepUnmatched=
true;
50 i.FunctionName=
" general.functions.AFunGen#plot ";
51 i.addParamValue(
'PM',pm,@(v)isa(v,
'PlotManager'));
52 i.addParamValue(
'R',0:.1:1000);
53 i.addParamValue(
'P',{});
54 i.addParamValue(
'AX',[],@(v)
all(ishandle(v)));
59 range = linspace(res.R(1),res.R(2),2000);
65 hold(res.AX(1),
" on ");
66 plot(res.AX(1),range,f(range),res.P[:]);
67 hold(res.AX(2),
" on ");
68 plot(res.AX(2),range,f(range),res.P[:]);
71 ax = pm.nextPlot(mc.Name,...
72 sprintf(
" Plot of %s\n%s ",mc.Name,
this.getConfigStr),...
73 this.xLabel,
this.yLabel);
74 plot(ax,range,f(range),res.P[:]);
76 ax = pm.nextPlot([mc.Name
" _deriv "],...
77 sprintf(
" Plot of %s-derivative\n%s ",mc.Name,
this.getConfigStr),...
78 this.xLabel,[
this.yLabel
" / " this.xLabel]);
79 plot(ax,range,df(range),res.P[:]);
94 elseif length(range) == 2
95 range = linspace(range(1),range(2),2000);
97 ax =
get(fignr,
" Children ");
99 error(
" Need two axes handles. ");
101 this.
plot(range,
" AX ", ax, varargin[:]);
106 if ~isa(
this,
" general.functions.AFunGen ") || ~isa(other,
" general.functions.AFunGen ")
107 error(
" Addition not defined for non-AFunGen classes. ");
109 sum = general.functions.FuncSum(
this, other);
121 virtual function [fhandle , dfhandle ] =
getFunction() = 0;
function sum = plus(other)
Provides an override for the simple sum of two AFunGen.
virtual function str = getConfigStr()
function pm = plot(varargin)
PlotManager: Small class that allows the same plots generated by some script to be either organized a...
Matlab's base handle class (documentation generation substitute)
virtual function [ fhandle , dfhandle ] = getFunction()
A variable number of input arguments.
AFUNGEN Summary of this class goes here Detailed explanation goes here.
function plottofigure(fignr, range, varargin)