Sign in

    Lampese/mathplotlib/scene/axis does not have a README file

    Axis

    pub struct Axis {
    limits :
    Limits
    ?
    auto_view :
    Limits
    ?
    inverted : Bool
    label : String?
    tick_count : Int
    category :
    CategoryAxis
    ?
    date_format : String?
    date_offset_minutes : Int
    date_timezone :
    DateTimeZone
    ?
    scale :
    Scale

    tick_position : TickPosition?
    grid_visible : Bool
    grid_color : String
    grid_width : Double
    minor_grid_visible : Bool
    minor_grid_color : String
    minor_grid_width : Double
    // private fields
    }

    A coordinate axis with limits, tick formatting, and presentation settings.

    Axis::auto_date_locator

    Return a copy of the default automatic date selector and its last state. Explicit calendar locators are available through date_locator().

    Axis::autoscale_bounds_checked

    fn Axis::autoscale_bounds_checked(self : Axis, endpoints : Array[Double], margin~ : Double, stickies~ : Array[Double], tight~ : Bool, data_minpos? : () -> Array[Double] raise
    DataError
    ?, tight_provider? : () -> Bool?, log_stickies? : Bool?) ->
    Limits
    ? raise
    DataError

    Compute one selected automatic coordinate through the source range pipeline. endpoints are shared raw data intervals, independent of views and scales. The result precedes set_bound's view reads, finalization and peer propagation. No-data mutated views return None before reading locators or minimum data.

    Axis::autoscale_on

    fn Axis::autoscale_on(self : Axis) -> Bool

    Whether automatic view updates are enabled, independently of stored limits.

    Axis::autoscale_stale

    fn Axis::autoscale_stale(self : Axis) -> Bool

    Whether this coordinate has an outstanding automatic view request.

    Axis::bind_autoscale_minpos

    fn Axis::bind_autoscale_minpos(self : Axis, provider : () -> Array[Double] raise
    DataError
    ) -> Unit

    Bind shared raw DataBox minima, distinct from locator/Axis minimum queries.

    Axis::bind_autoscale_view

    fn Axis::bind_autoscale_view(self : Axis, provider : () -> Unit raise
    DataError
    ) -> Unit

    Bind the owning panel's lazy view update without changing ticker ownership.

    Axis::bind_data_interval

    fn Axis::bind_data_interval(self : Axis, provider : () -> (Double, Double)) -> Unit

    Bind local artist data without changing the locator's owning axis.

    Axis::bind_formatter_axis

    fn Axis::bind_formatter_axis(self : Axis, minor? : Bool) -> Unit

    Rebind installed handles after shared-axis installation or removal.

    Axis::bind_formatter_geometry

    fn Axis::bind_formatter_geometry(self : Axis, provider : () -> (Double, Double)) -> Unit

    Supply bottom-up display origin and length for one-pixel short formatting.

    Axis::bind_locator_data

    fn Axis::bind_locator_data(self : Axis, minor? : Bool) -> Unit

    Rebind after setting a shared locator so its last explicit owner supplies data.

    Axis::bind_minpos

    fn Axis::bind_minpos(self : Axis, provider : () -> Double raise
    DataError
    ) -> Unit

    Axis::bind_render_autoscale_minpos

    fn Axis::bind_render_autoscale_minpos(self : Axis, provider : () -> Array[Double] raise
    DataError
    ) -> Unit

    Supply raw shared minima for an IR graph without replacing Scene data.

    Axis::bind_render_minpos

    fn Axis::bind_render_minpos(self : Axis, own : () -> Double raise
    DataError
    , shared : () -> Array[Double] raise
    DataError
    ) -> Unit

    Supply render-only minimum data when no owning-axis override is bound. Explicit and Scene data providers keep precedence, including their errors.

    Axis::bind_render_view_interval

    fn Axis::bind_render_view_interval(self : Axis, provider : () -> (Double, Double) raise
    DataError
    ) -> Unit

    Bind Scene's projected rendering view without replacing a user override.

    Axis::bind_shared_minpos

    fn Axis::bind_shared_minpos(self : Axis, provider : () -> Array[Double] raise
    DataError
    ) -> Unit

    Axis::bind_tick_geometry

    fn Axis::bind_tick_geometry(self : Axis, provider : () -> Double, horizontal : Bool) -> Unit

    Axis::bind_unit_data_mutated

    fn Axis::bind_unit_data_mutated(self : Axis, provider : () -> Bool) -> Unit

    Axis::bind_unit_group

    fn Axis::bind_unit_group(self : Axis, provider : () -> Array[Axis]) -> Unit

    Axis::bind_units_changed

    fn Axis::bind_units_changed(self : Axis, provider : () -> Unit raise
    DataError
    ) -> Unit

    Axis::bind_view_interval

    fn Axis::bind_view_interval(self : Axis, provider : () -> (Double, Double) raise
    DataError
    ) -> Unit

    Axis::categories

    fn Axis::categories(self : Axis) -> Array[String]?

    Return category labels in first-seen order, if configured.

    Axis::category_positions

    fn Axis::category_positions(self : Axis, values : Array[String]) -> Array[Double] raise
    DataError

    Convert string values and retain their categories on this axis.

    Axis::clear

    fn Axis::clear(self : Axis) -> Unit

    Restore tickers, units and presentation while retaining the view and context. Shared peers observe the replacement ticker objects through the same holder.

    Axis::clear_autoscale_request

    fn Axis::clear_autoscale_request(self : Axis) -> Unit

    Consume a request before the checked computation, including a failing one.

    Axis::clear_categories

    fn Axis::clear_categories(self : Axis) -> Unit

    Clear category conversion and return to numeric tick generation.

    Axis::clear_date

    fn Axis::clear_date(self : Axis) -> Unit

    Clear date formatting and return to numeric tick labels.

    Axis::clear_formatter

    fn Axis::clear_formatter(self : Axis) -> Unit

    Clear the numeric formatter and restore scale-based labels.

    Axis::clear_limits

    fn Axis::clear_limits(self : Axis) -> Unit

    Clear explicit limits and return to automatic range computation, preserving the axis direction.

    Axis::clear_locator

    fn Axis::clear_locator(self : Axis) -> Unit

    Clear the numeric locator and use the convenience scale sampler.

    Axis::clear_minor_date_formatter

    fn Axis::clear_minor_date_formatter(self : Axis) -> Unit

    Axis::clear_minor_locator

    fn Axis::clear_minor_locator(self : Axis) -> Unit

    Clear the minor locator.

    Axis::clear_minor_named_formatter

    fn Axis::clear_minor_named_formatter(self : Axis) -> Unit

    Axis::clear_named_formatter

    fn Axis::clear_named_formatter(self : Axis) -> Unit

    Axis::clear_tick_layout

    fn Axis::clear_tick_layout(self : Axis) -> Unit

    Axis::clear_tick_position

    fn Axis::clear_tick_position(self : Axis) -> Unit

    Restore the renderer's default tick label side.

    Axis::clear_ticks

    fn Axis::clear_ticks(self : Axis) -> Unit

    Clear fixed tick positions and labels.

    Axis::configure_function_scale

    fn Axis::configure_function_scale(self : Axis, forward : (Double) -> Double, inverse : (Double) -> Double, logarithmic? : Bool) -> Unit raise
    DataError

    Install a numeric child function scale without borrowing parent ticker state. The owner separately compares old/new default limits and performs autoscale.

    Axis::convert_category_units

    fn Axis::convert_category_units(self : Axis, values : Array[String]) -> Array[Double] raise
    DataError

    Axis::convert_date_units

    Axis::coordinate_inverse

    fn Axis::coordinate_inverse(self : Axis) -> ((Double) -> Double)

    Functionlog uses the source InvertedLogTransform's exp(x * ln(10)) chain.

    Axis::coordinate_scale_name

    fn Axis::coordinate_scale_name(self : Axis) -> String

    Return the installed coordinate context, independent of a live parent scale.

    Axis::coordinate_transform

    fn Axis::coordinate_transform(self : Axis) -> ((Double) -> Double)

    Capture the installed transform; later owner resets cannot change this value.

    Axis::current_view_limits

    fn Axis::current_view_limits(self : Axis) ->
    Limits
    ?

    Return a stored explicit/provisional view without computing automatic limits.

    test {
    let axis = @axis.axis()
    assert_true(axis.current_view_limits() is None)
    try! axis.set_limits(2.0, -1.0)
    assert_eq(axis.current_view_limits().unwrap().upper(), -1.0)
    }

    Axis::data_interval

    fn Axis::data_interval(self : Axis) ->
    Limits

    Axis::date_converter

    Return the copied converter captured when this axis entered date mode.

    Axis::date_format

    fn Axis::date_format(self : Axis) -> String?

    Return the explicit date format, if date mode is enabled.

    Axis::date_formatter

    Return a copy of the configured date formatter, if any.

    Axis::date_locator

    Return the explicit date locator, if configured.

    Axis::date_nonsingular_bounds

    fn Axis::date_nonsingular_bounds(self : Axis, lower : Double, upper : Double) ->
    Limits

    Apply date-locator nonsingular bounds before autoscale margins. Numeric locators and fixed ticks retain their existing range normalization.

    Axis::date_offset_minutes

    fn Axis::date_offset_minutes(self : Axis) -> Int

    Return the fixed UTC offset used for date tick positions and labels.

    Axis::date_timezone

    Return the transition-aware timezone used for date labels, if configured.

    Axis::formatter

    Return the configured numeric formatter, if any.

    Axis::formatter_axis_binding

    Stable typed identity used by explicitly installed named formatters.

    Axis::formatter_display_geometry

    fn Axis::formatter_display_geometry(self : Axis) -> (Double, Double)?

    Return live display geometry, preferring the active render layout.

    Axis::formatter_offset_label

    fn Axis::formatter_offset_label(self : Axis, values : Array[Double]) -> String

    Return the shared text selected by the numeric or date formatter, if any.

    Axis::formatter_offset_label_checked

    fn Axis::formatter_offset_label_checked(self : Axis, values : Array[Double], view? :
    Limits
    ) -> String raise
    DataError

    Read the live major offset after its batch, without formatting a second time.

    Axis::formatter_offset_label_with_view

    fn Axis::formatter_offset_label_with_view(self : Axis, values : Array[Double], view :
    Limits
    ?) -> String

    Return the numeric or date formatter's offset label for an explicit viewport.

    Renderers should pass the viewport they used to generate the ticks. When it is omitted, an explicitly configured axis limit is used and otherwise the formatter falls back to the supplied tick extent.

    Axis::formatter_tick_locations_checked

    Keep a locator's borrowed numeric view until the corresponding batch ends.

    Axis::formatter_warnings

    fn Axis::formatter_warnings(self : Axis) -> Array[String]

    Axis::get_category_units

    fn Axis::get_category_units(self : Axis) -> CategoryUnits?

    Axis::get_minpos

    fn Axis::get_minpos(self : Axis) -> Double raise
    DataError

    Axis::get_tick_space

    fn Axis::get_tick_space(self : Axis) -> Double

    Axis::grid_color

    fn Axis::grid_color(self : Axis) -> String

    Return the major grid line color.

    Axis::grid_visible

    fn Axis::grid_visible(self : Axis) -> Bool

    Return whether major grid lines are enabled for this axis.

    Axis::grid_width

    fn Axis::grid_width(self : Axis) -> Double

    Return the major grid line width.

    Axis::has_autoscale_view_provider

    fn Axis::has_autoscale_view_provider(self : Axis) -> Bool

    Whether the owning panel supplies authoritative automatic view resolution.

    Axis::has_named_log_locator

    fn Axis::has_named_log_locator(self : Axis) -> Bool

    Axis::has_named_logit_locator

    fn Axis::has_named_logit_locator(self : Axis) -> Bool

    Axis::have_units

    fn Axis::have_units(self : Axis) -> Bool

    Converter presence and unit presence are independent on shared axes.

    Axis::inherit_scale_from

    fn Axis::inherit_scale_from(self : Axis, source : Axis) -> Unit

    Inherit geometry without reinstalling tickers, as shared-axis linking does.

    Axis::inverted

    fn Axis::inverted(self : Axis) -> Bool

    Whether this axis displays larger values before smaller values.

    Axis::is_default_formatter

    fn Axis::is_default_formatter(self : Axis, minor? : Bool) -> Bool

    Axis::is_default_locator

    fn Axis::is_default_locator(self : Axis, minor? : Bool) -> Bool

    Axis::label

    fn Axis::label(self : Axis) -> String?

    Return the optional axis label.

    Axis::lifecycle_view_interval_checked

    fn Axis::lifecycle_view_interval_checked(self : Axis) -> (Double, Double) raise
    DataError

    Read the panel's own view for lifecycle operations, preserving user overrides. A render projection is needed only when no view has been stored yet.

    Axis::limits

    Return explicit limits, if any.

    Axis::locator

    Return the configured numeric locator, if any.

    Axis::locator_default_limits

    fn Axis::locator_default_limits(self : Axis) -> (Double, Double) raise
    DataError

    Query the current major locator's nonsingular range for empty data.

    Axis::minor_date_formatter

    Axis::minor_date_locator

    Axis::minor_grid_color

    fn Axis::minor_grid_color(self : Axis) -> String

    Return the minor grid line color.

    Axis::minor_grid_visible

    fn Axis::minor_grid_visible(self : Axis) -> Bool

    Return whether minor grid lines are enabled.

    Axis::minor_grid_width

    fn Axis::minor_grid_width(self : Axis) -> Double

    Return the minor grid line width.

    Axis::minor_locator

    Return the configured minor locator, if any.

    Axis::minor_named_formatter

    Axis::minor_overlap_removal

    fn Axis::minor_overlap_removal(self : Axis) -> Bool

    Axis::minor_tick_labels

    fn Axis::minor_tick_labels(self : Axis, values : Array[Double], view? :
    Limits
    ) -> Array[String]

    Format minor dates for a viewport. Without an explicit minor formatter, labels remain empty, matching the default NullFormatter behavior.

    Axis::minor_tick_labels_checked

    fn Axis::minor_tick_labels_checked(self : Axis, values : Array[Double], view? :
    Limits
    ) -> Array[String] raise
    DataError

    Axis::minor_tick_values

    fn Axis::minor_tick_values(self : Axis, automatic :
    Limits
    ) -> Array[Double]

    Generate minor ticks from the configured minor locator.

    Axis::minor_tick_values_checked

    fn Axis::minor_tick_values_checked(self : Axis, automatic :
    Limits
    ) -> Array[Double] raise
    DataError

    Axis::named_formatter

    Axis::numeric_nonsingular_bounds

    fn Axis::numeric_nonsingular_bounds(self : Axis, lower : Double, upper : Double) ->
    Limits

    Apply named numeric locators' inherited nonsingular policy before margins. Other locator families retain their existing range policy.

    Axis::numeric_nonsingular_bounds_checked

    fn Axis::numeric_nonsingular_bounds_checked(self : Axis, lower : Double, upper : Double) ->
    Limits
    raise
    DataError

    Axis::request_autoscale

    fn Axis::request_autoscale(self : Axis) -> Unit

    Recompute the automatic view on its next use while retaining explicit limits and the axis direction.

    Axis::resolve_autoscale_view

    fn Axis::resolve_autoscale_view(self : Axis) -> Unit raise
    DataError

    Resolve the owning panel's outstanding shared view requests.

    Axis::scale

    Return the configured coordinate scale.

    Axis::set_auto_limits

    fn Axis::set_auto_limits(self : Axis, lower : Double, upper : Double) -> Unit

    Set a provisional view without disabling automatic limits.

    Images use this to fit their extent immediately. A later autoscale request discards the provisional view and retains its direction. Explicit limits take precedence. Both endpoints must be valid for this axis scale.

    test {
    let axis = @axis.axis()
    axis.set_auto_limits(1.5, -0.5)
    assert_true(axis.inverted())
    axis.request_autoscale()
    let view = axis.view_limits(@core.limits(-2.0, 3.0))
    assert_eq((view.lower(), view.upper()), (3.0, -2.0))
    }

    Axis::set_autoscale_on

    fn Axis::set_autoscale_on(self : Axis, enabled : Bool) -> Unit

    Enable or disable automatic updates without requesting or changing a view.

    Axis::set_bound_limits_checked

    fn Axis::set_bound_limits_checked(self : Axis, lower : Double, upper : Double, automatic? : Bool?) ->
    Limits
    raise
    DataError

    Finalize already oriented set_bound endpoints while preserving auto-enable. The owning panel controls lazy view reads and source-ordered sibling emits.

    Axis::set_categories

    fn Axis::set_categories(self : Axis, labels : Array[String]) -> Unit raise
    DataError

    Configure an axis with an ordered set of string categories.

    Axis::set_category_units

    fn Axis::set_category_units(self : Axis, units : CategoryUnits) -> Unit raise
    DataError

    Replace the categorical convenience configuration with a shared live mapping. This explicit replacement extension does not emit a source units event.

    Axis::set_cleared_view_limits

    fn Axis::set_cleared_view_limits(self : Axis, lower : Double, upper : Double, automatic~ : Bool) -> Unit raise
    DataError

    Finalize a numeric view after a linear lifecycle reset. The outer Scene operation controls sibling propagation and target inheritance.

    Axis::set_date

    fn Axis::set_date(self : Axis) -> Unit raise
    DataError

    Configure automatic date formatting for this axis.

    Axis::set_date_converter

    Replace the default date conversion/formatting configuration. Explicit locators and fixed ticks/labels remain installed. Validation is atomic.

    Axis::set_date_format

    fn Axis::set_date_format(self : Axis, format : String) -> Unit raise
    DataError

    Configure this axis to format numeric day values as dates.

    An empty format selects a range-dependent format at render time. The numeric values remain Matplotlib day ordinals, so existing plot methods can be used after converting dates with DateTime::to_ordinal.

    Axis::set_date_formatter

    fn Axis::set_date_formatter(self : Axis, formatter :
    DateFormatter
    ) -> Unit

    Set a copied date formatter while preserving locators and fixed ticks/labels. The formatter's timezone affects labels independently of the tick locator. Use Axis::set_date_timezone/offset to update both labels and tick positions.

    Axis::set_date_locator

    Use an explicit calendar locator while retaining automatic date labels.

    Axis::set_date_offset

    fn Axis::set_date_offset(self : Axis, offset_minutes : Int) -> Unit raise
    DataError

    Set the fixed UTC offset for date tick positions and labels.

    test {
    let axis = @axis.axis()
    try! axis.set_date_offset(345)
    assert_eq(axis.date_offset_minutes(), 345)
    }

    Axis::set_date_timezone

    Set an explicit transition-aware timezone for date labels.

    Calendar tick positions and label conversion follow the configured UTC transitions. Spring gaps are skipped and fall folds can emit both instants.

    Axis::set_explicit_category_converter

    fn Axis::set_explicit_category_converter(self : Axis) -> Unit raise
    DataError

    Explicitly select the builtin categorical converter, without installing info.

    Axis::set_explicit_date_converter

    Source set_converter assigns and marks explicit without updating axis info.

    Axis::set_formatter

    fn Axis::set_formatter(self : Axis, formatter :
    Formatter
    ) -> Unit

    Configure the numeric formatter used for this axis's tick labels.

    Axis::set_grid

    fn Axis::set_grid(self : Axis, visible : Bool, color : String, linewidth : Double) -> Unit raise
    DataError

    Configure major grid lines for this axis.

    Grid lines are disabled by default, matching Matplotlib's axes.grid=False. The renderer consumes the style without changing tick positions or labels.

    Axis::set_label

    fn Axis::set_label(self : Axis, label : String) -> Unit

    Set the axis label.

    Axis::set_limits

    fn Axis::set_limits(self : Axis, lower : Double, upper : Double) -> Unit raise
    DataError

    Set explicit limits while preserving their direction.

    Axis::set_locator

    Set a numeric locator for automatic major ticks.

    Axis::set_minor_date_formatter

    fn Axis::set_minor_date_formatter(self : Axis, formatter :
    DateFormatter
    ) -> Unit

    Install a copied formatter for minor dates. Its initial locator is replaced by the actual minor unit whenever labels are requested.

    Axis::set_minor_date_locator

    fn Axis::set_minor_date_locator(self : Axis, locator :
    DateLocator
    ) -> Unit

    Set a calendar minor locator, preserving the independent major formatter.

    Axis::set_minor_grid

    fn Axis::set_minor_grid(self : Axis, visible : Bool, color : String, linewidth : Double) -> Unit raise
    DataError

    Configure minor grid lines independently from major grids.

    Axis::set_minor_locator

    Set a minor locator used between major tick positions.

    Axis::set_minor_named_formatter

    fn Axis::set_minor_named_formatter(self : Axis, formatter :
    BaseFormatter
    ) -> Unit

    Axis::set_minor_overlap_removal

    fn Axis::set_minor_overlap_removal(self : Axis, enabled : Bool) -> Unit

    Control removal of minor locations close to major ticks. The default tolerance is 1e-5 of the date view span, matching upstream linear date axes.

    Axis::set_named_formatter

    fn Axis::set_named_formatter(self : Axis, formatter :
    BaseFormatter
    ) -> Unit

    Install a live checked formatter independently of the legacy pure helpers.

    Axis::set_scale

    Set the coordinate scale for this axis.

    Axis::set_source_ticks

    fn Axis::set_source_ticks(self : Axis, values : Array[Double]) -> Unit raise
    DataError

    The finite one-dimensional source tick-location route used by child axes. View expansion is a raw interval operation, before installing FixedLocator; it preserves inversion, auto-enable and pending-request state.

    Axis::set_tick_count

    fn Axis::set_tick_count(self : Axis, count : Int) -> Unit

    Select the convenience scale sampler's desired tick count. An explicitly installed locator keeps control of tick placement.

    Axis::set_tick_label_size

    fn Axis::set_tick_label_size(self : Axis, size : Double) -> Unit

    Axis::set_tick_labels

    fn Axis::set_tick_labels(self : Axis, labels : Array[String]) -> Unit raise
    DataError

    Set labels for the currently fixed tick positions.

    Axis::set_tick_layout

    fn Axis::set_tick_layout(self : Axis, length : Double, horizontal : Bool, active? : Bool, origin? : Double) -> Unit

    Axis::set_tick_position

    fn Axis::set_tick_position(self : Axis, position : TickPosition) -> Unit

    Set the side on which this axis's tick labels are rendered.

    The renderer interprets Top/Bottom for an x axis and Left/Right for a y axis. Both renders labels on both sides.

    Axis::set_tick_view

    fn Axis::set_tick_view(self : Axis, lower : Double, upper : Double) -> Unit

    Axis::set_ticks

    fn Axis::set_ticks(self : Axis, values : Array[Double]) -> Unit raise
    DataError

    Set fixed tick positions, replacing automatic linear ticks.

    Axis::set_unit_tag

    fn Axis::set_unit_tag(self : Axis, unit : AxisUnitTag?) -> Unit raise
    DataError

    Assign each sibling before info/callbacks; failures leave preceding changes.

    Axis::set_view_limits

    fn Axis::set_view_limits(self : Axis, lower : Double, upper : Double) -> Unit raise
    DataError

    Store a resolved view while retaining explicit or automatic limit selection. Invalid endpoints raise DataError before changing the view. In automatic mode a later request_autoscale() discards this provisional range.

    test {
    let axis = @axis.axis()
    try! axis.set_view_limits(-1.0, 2.0)
    assert_true(axis.limits() is None)
    assert_eq(axis.current_view_limits().unwrap().lower(), -1.0)
    axis.request_autoscale()
    assert_true(axis.current_view_limits() is None)
    }

    Axis::share_numeric_tickers

    fn Axis::share_numeric_tickers(self : Axis, source : Axis) -> Unit

    Share numeric ticker slots without changing geometry or object ownership.

    Axis::shared_minpos_checked

    fn Axis::shared_minpos_checked(self : Axis) -> Array[Double] raise
    DataError

    Axis::stored_view_limits

    fn Axis::stored_view_limits(self : Axis) ->
    Limits

    The stored viewport, without resolving pending updates or render projections.

    Axis::tick_count

    fn Axis::tick_count(self : Axis) -> Int

    Return the desired number of ticks.

    Axis::tick_group_is_null

    fn Axis::tick_group_is_null(self : Axis, minor? : Bool) -> Bool

    Rendering skips each NullLocator tick group before asking for labels or offsets.

    Axis::tick_label_size

    fn Axis::tick_label_size(self : Axis) -> Double

    Axis::tick_labels

    fn Axis::tick_labels(self : Axis, values : Array[Double]) -> Array[String]

    Format labels for a concrete tick list.

    Axis::tick_labels_checked

    fn Axis::tick_labels_checked(self : Axis, values : Array[Double], view? :
    Limits
    ) -> Array[String] raise
    DataError

    Axis::tick_labels_with_view

    fn Axis::tick_labels_with_view(self : Axis, values : Array[Double], view :
    Limits
    ?) -> Array[String]

    Format labels for a concrete tick list and viewport.

    Axis::tick_position

    fn Axis::tick_position(self : Axis) -> TickPosition?

    Return the explicitly configured tick label side, if any.

    Axis::tick_space_length

    fn Axis::tick_space_length(self : Axis) -> Double?

    Axis::tick_values

    fn Axis::tick_values(self : Axis, automatic :
    Limits
    ) -> Array[Double]

    Generate ticks for explicit or supplied automatic limits.

    Axis::tick_values_checked

    fn Axis::tick_values_checked(self : Axis, automatic :
    Limits
    ) -> Array[Double] raise
    DataError

    New named numeric locators preserve their direct errors in checked rendering.

    Axis::ticks

    fn Axis::ticks(self : Axis) -> Array[Double]?

    Return fixed tick positions, if configured.

    Axis::unit_converter_explicit

    fn Axis::unit_converter_explicit(self : Axis) -> Bool

    Axis::unit_converter_kind

    fn Axis::unit_converter_kind(self : Axis) -> String?

    Axis::unit_tag

    fn Axis::unit_tag(self : Axis) -> AxisUnitTag?

    Axis::update_category_units

    fn Axis::update_category_units(self : Axis, values : Array[String]) -> Bool raise
    DataError

    Select/update live string units, without resetting installed user tickers.

    Axis::update_date_units

    Select the implicit date converter from explicit naive/aware input.

    Axis::update_unit_axisinfo

    fn Axis::update_unit_axisinfo(self : Axis) -> Unit raise
    DataError

    Reconsider converter defaults role by role, retaining explicit user slots.

    Axis::uses_numeric_autoscale

    fn Axis::uses_numeric_autoscale(_self : Axis) -> Bool

    Whether installed tickers support the shared numeric-coordinate range pipeline.

    Axis::validate_date_converter

    Check converter defaults against this axis' explicit unit without changing the axis. Shared-axis callers use this to validate the entire group first.

    Axis::view_interval_checked

    fn Axis::view_interval_checked(self : Axis) -> (Double, Double) raise
    DataError

    Axis::view_limits

    Resolve explicit or provisional limits before using an automatic range. Automatic endpoints are sorted and then oriented to match the axis.

    Axis::view_limits_checked

    Resolve a view while preserving named locator range errors.

    Axis::view_mutated

    fn Axis::view_mutated(self : Axis) -> Bool

    Compare current viewport endpoints to the initial interval, as Bbox does. Returning to the original interval restores the unmutated state.

    AxisUnitTag

    CategoryUnits

    pub struct CategoryUnits {
    // private fields
    }

    Live string-unit mapping shared by installed category tickers and axes. The separate ticker/category convenience converter remains persistent.

    CategoryUnits::encode

    fn CategoryUnits::encode(self : CategoryUnits, values : Array[String]) -> Array[Double]

    CategoryUnits::format_values

    fn CategoryUnits::format_values(self : CategoryUnits, values : Array[Double]) -> Array[String] raise
    DataError

    CategoryUnits::labels

    fn CategoryUnits::labels(self : CategoryUnits) -> Array[String]

    CategoryUnits::new

    fn CategoryUnits::new(labels : Array[String]) -> CategoryUnits

    CategoryUnits::positions

    fn CategoryUnits::positions(self : CategoryUnits) -> Array[Double]

    TickPosition

    pub(all) enum TickPosition {
    Top
    Bottom
    Left
    Right
    Both
    }

    Locations supported for axis tick labels.

    axis

    fn axis(horizontal? : Bool) -> Axis

    Construct an axis with fresh linear locator and formatter defaults.

    short_format_pixel_delta

    fn short_format_pixel_delta(value : Double, lower : Double, upper : Double, origin : Double, length : Double, transform : (Double) -> Double, inverse : (Double) -> Double) -> Double raise
    DataError

    Resolve the data distance of neighboring display pixels through both affines.

    tick_space_from_length

    fn tick_space_from_length(length : Double, label_size : Double, horizontal : Bool) -> Double

    SVG user units and tick font sizes use the same point-scale coordinate system.