module

Crysda::PlotDataExtractor

Helper module for extracting plot data from DataFrames

Class methods

apply_defaults(plot : Cryplot::Plot) : Cryplot::Plot

Apply default size to plot

Source
extract_numeric(df : DataFrame, col_name : String) : Array(Float64)

Extract single numeric column as Array(Float64), skipping nils

Source
extract_numeric_pair(df : DataFrame, x_col : String, y_col : String) : Tuple(Array(Float64), Array(Float64))

Extract numeric column data as Array(Float64), skipping nil values Returns tuple of {x_values, y_values} with matching indices (nils removed from both)

Source
extract_strings(df : DataFrame, col_name : String) : Array(String)

Extract string column for x-axis labels

Source
to_float64(val) : Float64 | Nil

Convert value to Float64 if possible

Source