*contourplot

Creates a contour plot from results data.

Syntax

*contourplot title legend_min legend_min_value legend_max legend_max_value mesh_color scale_factor full_size reserved vector_comp mult min_max_titles plot_info_title

Type

HyperMesh Tcl Modify Command

Description

Creates a contour plot from results data. The results file must be loaded before executing this command. The *freesimulation command clears the plot.

Inputs

title
The title to use for the plot.
legend_min
0 - Indicates if the minimum value found in the file should be used as the minimum value on the legend.
1 - Indicates if the legend_min_value argument should be used instead.
legend_min_value
If legend_mid is set to 1, the minimum value to display on the legend.
legend_max
0 - Indicates if the maximum value found in the file should be used as the maximum value on the legend.
1 - Indicates if the legend_max_value argument should be used instead.
legend_max_value
If legend_max is set to 1, the maximum value to display on the legend.
mesh_color
The color used to plot the mesh. Valid values are 1 through 64.
-1 - Uses the elements color.
0 - Uses the background color.
scale_factor
The scale factor used for scaling a deformed plot.
full_size
Determines whether the contour plot fills the entire screen. Valid values are:
  • 0 - Use normal size.
  • 1 - Use full screen. Press a mouse button to return.
reserved
Reserved for future use. Must be set to zero.
vector_comp
Vector data type component to use. Valid values are:
  • x comp
  • y comp
  • z comp
  • magnitude
mult
The value used to multiply the results values.
min_max_titles
Indicates if the min/max titles should be displayed. Valid values are:
  • 0 - Do not display min/max titles.
  • 1 - Display min/max titles.
plot_info_title
Indicates if the plot information title should be displayed. Valid values are:
  • 0 - Do not display plot information title.
  • 1 - Display plot information titles.

Examples

To load the result file named C:/my_results/test.res and generate a contour plot for Subcase 1 with Displacements data type, using the maximum and minimum values defined in the analysis file, a mesh color of black, and normal plot size
*analysisfileset C:/my_results/test.res
*inputsimulation "Subcase 1" "Displacements"
*contourplot "" 0 0.0 0 0.0 0 0.0 0 0 "magnitude" 1.0 0 0
*freesimulation

Errors

Incorrect usage results in a Tcl error. To detect errors, you can use the catch command:
if { [ catch {command_name...} ] } {
   # Handle error
}