create_axis_specs

Function create_axis_specs 

Source
pub fn create_axis_specs(
    plot_range_x: &PlotRange,
    plot_range_y: &PlotRange,
    x_transform: &TransformType,
    y_transform: &TransformType,
) -> Result<(Range<f32>, Range<f32>)>
Expand description

@deprecated The old PlotOptions struct has been removed. Use DensityPlotOptions with builder pattern instead.

The old PlotOptions struct mixed concerns and was difficult to extend. It has been replaced with a hierarchy of option types:

  • BasePlotOptions: Layout and display settings
  • AxisOptions: Axis configuration
  • DensityPlotOptions: Complete density plot configuration

See the module documentation for examples of the new API. Create appropriate axis specifications with nice bounds and labels

This function creates axis ranges that work well with the specified transforms, using “nice” number bounds for linear scales.