Families, Filters, and Sample Order

GX-TXT P011-bis · Scientific Dataset Plot 4.4.2

Use the values of a column to create several members of the same family, to add a secondary category or to restrict the rows of the series. The fields are in Graph Series above Provider extension.

Primary variable and values

  1. Download the text categories (ZIP). In Generic CSV, import time_s in s, level_V in V and sample_index as a dimensionless index. Keep family_name and kind_label as text.
  2. Open Series… of Scientific dataset 2D. Select X = time_s, Y = level_V and Primary family variable = family_name. Refresh values fills the list.
  3. In Family values, Selected value uses the single marked value, Selected values uses the marked entries, All values as separate series expands all accepted values. The list Family value(s) lets you see and choose the actual entries. For multiple cases, use extended selection in the list.
  4. Set ID and Label, then click Create family series. The table shows the expanded IDs, the captions and the number of filters of each row. Save the plot with a new Run. The six family × category combinations in the example appear as six members using both splits.

Secondary category

Control
Secondary parameter variable
Choices
A Dataset column, here kind_label.
Effect on the example
Makes Avvio, Stabile and Prova available.
Control
Second values
Choices
Selected value, Selected values, All values.
Effect on the example
Determines which categories take part. The list below contains the selections for the first two modes.
Control
Second behavior
Choices
Filter
Effect on the example
The selection restricts the rows accepted for the series or family.
Control
Second behavior
Choices
Style category
Effect on the example
The categories take part in the visual distinction of the members. Check the legend and the actual styles after rendering, especially if you have set an explicit color.
Control
Second behavior
Choices
Split into series
Effect on the example
Produces separate members for the family and category combinations. Check the number of IDs in the table before the Run.

Additional filter and predicates

Choose the Filter variable, then refresh and select Filter value(s). For example, use include_code = 1 in osservazioni to keep the eight marked samples. A member can carry the family, category and additional filter predicates at the same time. Check their number in the column Filters. Multiple choices on the same field and conditions on different fields have different effects on the row set. Check the resulting set when you save and when you extract the data.

PlotSpec also accepts row_filters with operators and types validated by the Graph Series contract. In Curve Viewer Advanced → Add row predicate… opens the draft’s predicate editor. The Analysis route offers selection of the column values. For structured fields, use the PlotSpec reference.

Declarative predicates and types

Predicate
exact_equal, not_equal
Required fields besides filter_variable_id
value
Accepted rows
Equality or inequality with a single numeric or text value.
Predicate
less_than, less_equal, greater_than, greater_equal
Required fields besides filter_variable_id
value
Accepted rows
Strict or inclusive inequalities on a numeric value.
Predicate
between_inclusive
Required fields besides filter_variable_id
lower, upper
Accepted rows
Numeric interval with inclusive bounds and lower ≤ upper.
Predicate
in_set
Required fields besides filter_variable_id
values, non-empty list
Accepted rows
Any one of the values in the list, numeric or text.
Predicate
is_finite, is_nonfinite
Required fields besides filter_variable_id
No comparison value.
Accepted rows
Tests the finiteness of the numeric column.

Each predicate contains filter_variable_id and predicate. Graph Series resolves the ID and the type dtype from the column. The text must fit on one line. For integer types pass the exact integer; a loose value in scientific notation may be rejected. Apply several filters to impose several conditions at once, or use in_set to accept several values of the same column.

Order the points

  • As stored / Sequential respects the order of the accepted rows. In the text source the indices are deliberately shuffled.
  • By X ascending sorts by the horizontal coordinate before connecting samples. Check the difference by looking at a line in the shuffled data.
  • By variable… enable Order by variable. Select sample_index to recover the time sequence associated with the index. You can also sort by a column other than X if the acquisition sequence is part of the analysis.

The command Up or Down reorders the series in the plot. Use Point order to reorder the points within the series. Box plots and histograms use the derived structure of the distribution, with restrictions on families and accessories. See combinations of distribution plots.

Test results

Series generated from family/category combinations and ordering.
Series generated from family/category combinations and ordering. Enlarge
Grouping of families and text categories after the Run.
Grouping of families and text categories after the Run. Enlarge