SURFACE_COLORMAP_2DPLOT
This widget displays the values of a surface on a 2D graph with a color scale.
Attributes brief detailed show all inherited
Example
Here's a SURFACE displayed via SURFACE_COLORMAP_2DPLOT and via COLOR_SURFACE_3D.

- <!-- The formula that defines the surface -->
- <FORMULA_SURFACE id="demo_surface" formula="sin(x+delta)*cos(y+delta/2)" x_min="-3.14" x_max="3.14" x_default="0" y_min="-3.14" y_max="3.14" y_default="0" z_min="-1" z_max="1" z_default="0"/>
- <!-- 2d colormap view -->
- <SURFACE_COLORMAP_2DPLOT surface_id="demo_surface" width="300" height="200" high_color="#ff0000" low_color="#000030" />
- <!-- The 3D View -->
- <VIEW_3D id="my_3d_view" width="300" height="200" x_ratio="1" y_ratio="0.8" z_ratio="0.8" transform.tx="0.05" transform.ty="0.02" transform.tz="-1.3" transform.rx="40" transform.ry="0" transform.rz="20" cursor="system::open_hand" persistent_viewpoint="false">
- <!-- Grid object -->
- <GRID_3D id="my_3d_view.grid" x_param_info_id="demo_surface.x_info" y_param_info_id="demo_surface.y_info" z_param_info_id="demo_surface.z_info" y_positions_count="11" x_positions_count="11" z_positions_count="11" x_position="-0.5" y_position="-0.5" z_position="-0.5" opacity="1" />
- <!-- The Color surface-->
- <COLOR_SURFACE_3D id="my_3d_view.surface" surface_id="demo_surface" visible="true" draw_style="solid" high_color="#ff0000" low_color="#000030" opacity=".8" x_positions_count="40" y_positions_count="40" x_position="-.5" y_position="-.5" z_position="-.5"/>
- </VIEW_3D>
- <!-- a timer to rotate the VIEW_3D -->
- <PARAM id="delta" min="0" max="100000" default="0" />
- <TIMER id="forever_timer" refresh_time_ms="10" />
- <ACTION_TRIGGER event_id="forever_timer.elapsed"
- script=" delta+=.01; " requires="delta" />
Related elements
Also see FORMULA_SURFACE, SURFACE_FROM_CURVE_OVER_TIME, VIEW_3D, GRID_3D, COLOR_SURFACE_3D.
Comments
Please, authorize to view and post comments.