Axes and Axis Settings¶
Field Axes¶
Cartesian2DFieldAxes¶
-
class
tecplot.plot.Cartesian2DFieldAxes(plot)[source]¶ -
axis_mode¶ Axis relations regarding functional dependency
Type: AxisModePossible values:
Independent,XYDependent.
-
Cartesian3DFieldAxes¶
-
class
tecplot.plot.Cartesian3DFieldAxes(plot)[source]¶ -
aspect_ratio_limit¶ Scale limit of the axes aspect ratio.
Type: floatThis is the limit above which the axes relative scales will be pegged to
aspect_ratio_reset. The following example will set the aspect ratio between scales to 1 if they first exceed a ratio of 10:>>> plot.axes.aspect_ratio_limit = 10 >>> plot.axes.aspect_ratio_reset = 1 >>> plot.axes.reset_scale()
-
aspect_ratio_reset¶ Axes scale aspect ratio used when
aspect_ratio_limitis exceeded.Type: floatThis is the aspect ratio used to scale the axes when the data’s aspect ratio exceeds the value set to
aspect_ratio_limit. The following example will set the aspect ratio between scales to 10 if they first exceed a ratio of 15:>>> plot.axes.aspect_ratio_limit = 15 >>> plot.axes.aspect_ratio_reset = 10 >>> plot.axes.reset_scale()
-
axis_mode¶ Axis relations regarding functional dependency
Type: AxisModePossible values:
Independent,XYZDependent,XYDependent.
-
edge_auto_reset¶ Enable automatically choosing which edges to label.
Type: boolExample usage:
>>> plot.axes.edge_auto_reset = True
-
range_aspect_ratio_limit¶ Range limit of the axes aspect ratio.
Type: floatThis is the limit above which the axes’ relative ranges will be pegged to
range_aspect_ratio_reset. The following example will set the aspect ratio between ranges to 1 if they first exceed a ratio of 10:>>> plot.axes.range_aspect_ratio_limit = 10 >>> plot.axes.range_aspect_ratio_reset = 1 >>> plot.axes.reset_ranges()
-
range_aspect_ratio_reset¶ Axes range aspect ratio used
range_aspect_ratio_limitis exceeded.Type: floatThis is the aspect ratio used to set the ranges of the axes when the axes’ aspect ratios exceed the value of
range_aspect_ratio_limit. The following example will set the aspect ratio between ranges to 10 if they first exceed a ratio of 15:>>> plot.axes.range_aspect_ratio_limit = 15 >>> plot.axes.range_aspect_ratio_reset = 10 >>> plot.axes.reset_ranges()
-
reset_scale()¶ Recalculate the scale factors for each axis.
Aspect ratio limits are taken into account.
-
viewport¶ Viewport position and extent control
Type: ReadOnlyViewportExample usage:
>>> print(plot.axes.viewport.bottom) 5
-
Field Axis¶
Cartesian2DFieldAxis¶
-
class
tecplot.plot.Cartesian2DFieldAxis(axes, name, **kwargs)[source]¶ -
variable¶ The
Variableassigned to this axis.Type: VariableThis is the spatial variable associated with this axis and is usually one of
(X, Y, Z).- Example::
>>> import tecplot as tp >>> fr = tp.active_frame() >>> ds = fr.dataset >>> axes = fr.plot().axes >>> axes.x_axis.variable.name, axes.y_axis.variable.name ('X', 'Y') >>> axes.x_axis.variable = ds.variable('U') >>> axes.y_axis.variable = ds.variable('V') >>> axes.x_axis.variable.name, axes.y_axis.variable.name ('U', 'V')
-
Cartesian3DFieldAxis¶
-
class
tecplot.plot.Cartesian3DFieldAxis(axes, name, **kwargs)[source]¶ -
variable¶ The
Variableassigned to this axis.Type: VariableThis is the spatial variable associated with this axis and is usually one of
(X, Y, Z).- Example::
>>> import tecplot as tp >>> fr = tp.active_frame() >>> ds = fr.dataset >>> axes = fr.plot().axes >>> axes.x_axis.variable.name, axes.y_axis.variable.name ('X', 'Y') >>> axes.x_axis.variable = ds.variable('U') >>> axes.y_axis.variable = ds.variable('V') >>> axes.x_axis.variable.name, axes.y_axis.variable.name ('U', 'V')
-
Line Axes¶
XYLineAxes¶
-
class
tecplot.plot.XYLineAxes(plot)[source]¶ -
axis_mode¶ Axis relations regarding functional dependency
Type: AxisModePossible values:
Independent,XYDependent.
-
Line Axis¶
PolarAngleLineAxis¶
-
class
tecplot.plot.PolarAngleLineAxis(axes)[source]¶ -
mode¶ Units used for the theta axis.
Type: ThetaModePossible values:
ThetaMode.Degrees,ThetaMode.Radians,ThetaMode.Arbitrary.
-
Sketch Axes¶
SketchAxes¶
-
class
tecplot.plot.SketchAxes(plot)[source]¶ -
axis_mode¶ Axis relations regarding functional dependency
Type: AxisModePossible values:
Independent,XYDependent.
-