Curve Inquiry Commands¶
These functions provide a mechanism for obtaining information about specified plotted curves which can be seen with the command list.
Note
< > = Required user input.
[ ] = Optional user input.
[PyDV]: = Python Data Visualizer command-line prompt.
area¶
- pydv.pdv.Command.do_area(self, line)
Calculate the area of the curves.
[PyDV]: area <curve-list> Ex: [PyDV]: area a [PyDV]: area a:b [PyDV]: area c d
disp¶
- pydv.pdv.Command.do_disp(self, line)
Display the y-values in the specified curve(s).
[PyDV]: disp <curve-list> [format <format>] Ex: [PyDV]: disp a [PyDV]: disp a:b [PyDV]: disp c d [PyDV]: disp c d format e [PyDV]: disp c d format .4f
dispx¶
- pydv.pdv.Command.do_dispx(self, line)
Display the x-values in the specified curve(s).
[PyDV]: dispx <curve-list> [format <format>] Ex: [PyDV]: dispx a [PyDV]: dispx a:b [PyDV]: dispx c d [PyDV]: dispx c d format e [PyDV]: dispx c d format .4f
eval¶
- pydv.pdv.Command.do_eval(self, line)
Evaluate mathematical operations on curves.
[PyDV]: eval <curve-operations> Ex: [PyDV]: eval a+b
getattributes¶
- pydv.pdv.Command.do_getattributes(self, line)
Return a curve’s attributes, such as: color, style, width, etc.
[PyDV]: getattributes <curve-list> Ex: [PyDV]: getattributes a [PyDV]: getattributes a:b [PyDV]: getattributes c d
getdomain¶
- pydv.pdv.Command.do_getdomain(self, line)
Return domain of curves.
[PyDV]: getdomain <curve-list> Ex: [PyDV]: getdomain a [PyDV]: getdomain a:b [PyDV]: getdomain c d
getlabel¶
- pydv.pdv.Command.do_getlabel(self, line)
Return the given curve’s label.
[PyDV]: getlabel <curve-list> Ex: [PyDV]: getlabel a [PyDV]: getlabel a:b [PyDV]: getlabel c d
getnumpoints¶
- pydv.pdv.Command.do_getnumpoints(self, line)
Display the number of points for the given curve.
[PyDV]: getnumpoints <curve-list> Ex: [PyDV]: getnumpoints a [PyDV]: getnumpoints a:b [PyDV]: getnumpoints c d
getrange¶
- pydv.pdv.Command.do_getrange(self, line)
Return range of curves.
[PyDV]: getrange <curve-list> Ex: [PyDV]: getrange a [PyDV]: getrange a:b [PyDV]: getrange c d
getx¶
- pydv.pdv.Command.do_getx(self, line)
Return the x values for a given y.
[PyDV]: getx <curve-list> <y-value> Ex: [PyDV]: getx a 1.2 [PyDV]: getx a:b 1.2 [PyDV]: getx c d 1.2
gety¶
- pydv.pdv.Command.do_gety(self, line)
Return the y values for a given x.
[PyDV]: gety <curve-list> <x-value> Ex: [PyDV]: gety a 3.3 [PyDV]: gety a:b 3.3 [PyDV]: gety c d 3.3
stats¶
- pydv.pdv.Command.do_stats(self, line)
Show various statistics about the curve.
[PyDV]: stats <curve-list> Ex: [PyDV]: stats a [PyDV]: stats a:b [PyDV]: stats c d
sum¶
- pydv.pdv.Command.do_sum(self, line)
Calculate the sum of the x and y values of the curves.
[PyDV]: sum <curve-list> Ex: [PyDV]: sum a [PyDV]: sum a:b [PyDV]: sum c d
getymin¶
- pydv.pdv.Command.do_getymin(self, line)
Return xy-parings of the x values with the corresponding minimum y-value for the curve within the specified domain. If no domain is given, then the full domain range is used.
[PyDV]: getymin <curve> [<xmin> <xmax>] Ex: [PyDV]: getymin a [PyDV]: getymin a 2 7 [PyDV]: getymin a:b [PyDV]: getymin a:b 2 7 [PyDV]: getymin c d [PyDV]: getymin c d 2 7
getymax¶
- pydv.pdv.Command.do_getymax(self, line)
Return xy-parings of the x values with the corresponding maximum y-value for the curve within the specified domain. If no domain is given, then the full domain range is used.
[PyDV]: getymax <curve> [<xmin> <xmax>] Ex: [PyDV]: getymax a [PyDV]: getymax a 2 7 [PyDV]: getymax a:b [PyDV]: getymax a:b 2 7 [PyDV]: getymax c d [PyDV]: getymax c d 2 7