Model.tablecontour#
- Model.tablecontour(table_name, table_id_column, table_value_column, legend_title)#
Contours node/element data from a table. To clear the contour plot, the original color mode can be restored using
hm.setoption(element_color_mode=<value>).- Parameters:
table_name (hwString) – The name of the table containing the data to contour.
table_id_column (hwString) –
The title of the column in the table that contains the IDs of the entities to contour.
If the column is an integer column, the integers are assumed to be element IDs. If the column is an entity type column with type element or node, the values are taken as IDs of elements or nodes respectively.
table_value_column (hwString) –
The title of the column in the table that contains the values to use for the contour.
Currently only double or float values are supported.
legend_title (hwString) – The title to use for the contour legend.
Example#
Create a contour of data in table “ contour_table “ , with the column labeled “ IDs “ as the ID column , the column labeled “ Values “ as the value column , and a legend title of “ My Values “#import hm import hm.entities as ent model = hm.Model() model.tablecontour( table_name="table_contour", table_id_column="IDs", table_value_column="Values", legend_title="My Values", )