Skip to content

MinMax

Mojo struct 🡭

MinMax

@memory_only
struct MinMax

A column’s minimum and maximum, the starting point for every domain this package computes: Plot._data_extent pads it for spatial axes; ColorScale/size encoding use it as-is, so a legend’s extremes are exactly the data’s.

Fields

  • min (Float64): The column’s smallest value.
  • max (Float64): The column’s largest value.

Implemented traits

AnyType, Copyable, Deinitable, ImplicitlyCopyable, Movable

Methods

__init__

fn def __init__(out self, min: Float64, max: Float64)

Construct a MinMax from an already-known min and max.

Args:

  • min (Float64): The column’s smallest value.
  • max (Float64): The column’s largest value.
  • self (Self)

Returns:

Self