genre | Diagram |
author | Tobias Boskamp |
package | MeVisLab/Standard |
dll | MLMiscModulesInv |
definition | MLMiscModulesInv.def |
see also | StylePalette, ProfileCurve, DynaCurve, ConcatenateCurves |
keywords | Draw, curve, display, line, area, error, bar |
The module Diagram2D displays 2D curves, such as time series, gray scale profiles, histograms, etc.
The Diagram2D module reads the input data from its inCurveList field, accepting objects of type ml::CurveData or ml::CurveList.
These curve data objects specify the X- and Y-data to plot, the curve types and optionally a style index to be used in conjunction with a StylePalette module.
Also, if a LUT is attached to the module's LUT input and the min/max values of the diagram and the LUT are synchronized, the curve can be colored according to the attached LUT. The example network features an attached LUT.
All curves are drawn in a common coordinate system.
The following features are available:
- Plot multiple curves in a single diagram
- Automatic selection of axis ranges and tick labels
- Arbitrary axis directions
- Support for line, scatter, area and error bar plots
- Various line styles and marker types
- Optional usage of a style palette for automatic selection of colors, line styles and marker types
- Handling of mouse events in the diagram area, detection of curve or point hit by mouse event
Connect an optional StylePalette module.
alt: Enum | Labels (drawLabelsX): Bool | Shift: Enum |
Auto (autoRangeX): Bool | Labels (drawLabelsY): Bool | Ticks (drawTicksX): Bool |
Auto (autoRangeY): Bool | Line Style: Enum | Ticks (drawTicksY): Bool |
Auto (autoBorderH): Bool | Line Width: Integer | Title (drawAxisTitleX): Bool |
Auto (autoBorderV): Bool | LUT Along Axis: Enum | Title (drawAxisTitleY): Bool |
Axis (drawAxisX): Bool | Marker Size: Integer | Tolerance: Integer |
Axis (drawAxisY): Bool | Marker Type: Enum | Use: Bool |
Axis Color: Color | Mask Valid: Bool | Use anti-aliasing: Bool |
Border: Hor.: Integer | Maximum (maxX): Float | Valid: Bool |
Button 1: Enum | Maximum (maxY): Float | Vert.: Integer |
Button 2: Enum | Object: Enum | X-Title: String |
Button 3: Enum | Opacity: Float | X: Minimum: Float |
Ctrl: Enum | Point: Integer | Y: Float |
Curve: Integer | Pos. X: Float | Y-Title: String |
Curve Color: Color | Released: Trigger | Y: Minimum: Float |
Diagram Title: String | Rotation: Enum | |
Index: Integer | Series: Integer |
Sets the lower bound of the diagram's X-range.
Sets the upper bound of the diagram's X-range.
If checked, the X-range is determined automatically from the curve data, and the range values are updated in the minimum and maximum fields.
Sets the lower bound of the diagram's Y-range.
Sets the upper bound of the diagram's Y-range.
If checked, the Y-range is determined automatically from the curve data, and the range values are updated in the minimum and maximum fields.
Defines the orientation of the X- and Y-axes.
The entries in the Rotation enum correspond to the position of the coordinate system's origin and the direction of the X- and Y-axis, respectively.
Values:
Title | Name |
---|---|
Left-Bottom | LeftBottom |
Right-Bottom | RightBottom |
Left-Top | LeftTop |
Right-Top | RightTop |
Bottom-Left | BottomLeft |
Bottom-Right | BottomRight |
Top-Left | TopLeft |
Top-Right | TopRight |
If checked, the Diagram Title is drawn.
If checked, the horizontal border size is determined automatically.
If checked, the vertical border size is determined automatically.
If checked, the ticks along the X-axis are drawn.
If checked, the labels along the X-axis are drawn.
If checked, the title of the X-axis is drawn.
Sets the title string of the X-axis.
If checked, the ticks along the Y-axis are drawn.
If checked, the labels along the Y-axis are drawn.
If checked, the title of the Y-axis is drawn.
Sets the title string of the Y-axis.
Defines the line style of the curves.
Values:
Title | Name |
---|---|
None | None |
Solid | Solid |
Dashed | Dashed |
Dotted | Dotted |
Sets the type of the curve markers.
Values:
Title | Name |
---|---|
None | None |
Dot | Dot |
Asterisk | Asterisk |
Circle | Circle |
Square | Square |
Triangle | Triangle |
Plus | Plus |
Cross | Cross |
Sets the opacity of the areas under the curves.
Sets the line widths of the curves.
If checked, the curves are rendered with anti-aliasing.
Defines which state of the first mouse button triggers an interaction.
Values:
Title | Name |
---|---|
Pressed | PRESSED |
Released | RELEASED |
Ignored | IGNORED |
Defines which state of the second mouse button triggers an interaction.
Values:
Title | Name |
---|---|
Pressed | PRESSED |
Released | RELEASED |
Ignored | IGNORED |
Defines which state of the third mouse button triggers an interaction.
Values:
Title | Name |
---|---|
Pressed | PRESSED |
Released | RELEASED |
Ignored | IGNORED |
Defines which state of the SHIFT key triggers an interaction.
Values:
Title | Name |
---|---|
Pressed | PRESSED |
Released | RELEASED |
Ignored | IGNORED |
Defines which state of the CTRL key triggers an interaction.
Values:
Title | Name |
---|---|
Pressed | PRESSED |
Released | RELEASED |
Ignored | IGNORED |
Shows the X-position in curve coordinates of the mouse cursor while the last valid interacion took place.
Shows the Y-position in curve coordinates of the mouse cursor while the last valid interacion took place.
Defines whether all events in the diagram area should be recognized (selection Diagram), or only events that coincide with a data curve or point (selection Curve or Point, resp.).
If Object is set to Curve or Point, the fields Curve, Series and Point (if Object is set to Point) identify the curve and the data series and point within that curve where the event has appeared.
The value -1 in any of these fields indicates that no curve or point has been hit.
Values:
Title | Name |
---|---|
Diagram | Diagram |
Curve | Curve |
Point | Point |
Sets the the pixel tolerance used for curve and point selection.
Shows the id of the selected curve or -1 if no curve was selected.
Shows the id of the selected series or -1 if no curve was selected.
Shows the series index of the selected data series taken over all series and curves.
Shows the id of the selected point or -1 if no curve was selected.
Shows whether the conditions defined in the Buttons section are currently fulfilled.