Lampese/mathplotlib/ticker does not have a README file
pub struct AsinhLocator {
// private fields
}fn AsinhLocator::bind_view_interval(self : AsinhLocator, provider : () -> (Double, Double) raise DataError) -> Unitfn AsinhLocator::new(linear_width : Double, numticks? : LogNumTicks?, symthresh? : Double, base? : Double, subs? : AsinhSubs?) -> AsinhLocatorfn AsinhLocator::nonsingular(_self : AsinhLocator, lower : Double, upper : Double) -> (Double, Double)fn AsinhLocator::set_params(self : AsinhLocator, numticks? : LogNumTicks?, symthresh? : Double?, base? : Double?, subs? : AsinhSubs?) -> Unit raise DataErrorfn AsinhLocator::tick_values(self : AsinhLocator, lower : Double, upper : Double) -> Array[Double] raise DataErrorfn AsinhLocator::view_interval_provider(self : AsinhLocator) -> () -> (Double, Double) raise DataError?fn AsinhLocator::view_limits(_self : AsinhLocator, lower : Double, upper : Double) -> (Double, Double)pub(all) enum AsinhSubs {
Sequence(Array[Double])
Tuple(AsinhSubsTuple)
NdArray(TickValues)
Number(Double)
Text(String)
}pub struct AsinhSubsTuple {
// private fields
}impl Eq for AsinhSubsTupleimpl Debug for AsinhSubsTuplepub struct AutoLocator {
// private fields
}fn AutoLocator::bind_view_interval(self : AutoLocator, provider : () -> (Double, Double) raise DataError) -> Unittest {
let previous = @config.classic_mode()
defer @config.set_classic_mode(previous)
@config.set_classic_mode(false)
let locator = @ticker.AutoLocator::new()
assert_eq(locator.nbins(), @ticker.MaxNBins::Auto)
locator.as_maxn_locator().set_params(nbins=@ticker.MaxNBins::Count(3))
assert_eq(locator.nbins(), @ticker.MaxNBins::Count(3))
}fn AutoLocator::set_params(self : AutoLocator, nbins? : MaxNBins, steps? : TickValues?, integer? : Bool, symmetric? : Bool, prune? : String?, min_n_ticks? : Int) -> Unit raise DataErrorfn AutoLocator::tick_values(self : AutoLocator, lower : Double, upper : Double) -> Array[Double] raise DataErrorfn AutoLocator::view_interval_provider(self : AutoLocator) -> () -> (Double, Double) raise DataError?fn AutoLocator::view_limits(self : AutoLocator, lower : Double, upper : Double) -> (Double, Double) raise DataErrorpub struct AutoMinorLocator {
// private fields
}fn AutoMinorLocator::bind_axis_name(self : AutoMinorLocator, provider : () -> String raise DataError) -> Unitfn AutoMinorLocator::bind_major_ticks(self : AutoMinorLocator, provider : () -> TickValues raise DataError) -> Unitfn AutoMinorLocator::bind_scale(self : AutoMinorLocator, provider : () -> String raise DataError) -> Unitfn AutoMinorLocator::bind_view_interval(self : AutoMinorLocator, provider : () -> (Double, Double) raise DataError) -> Unitfn AutoMinorLocator::major_ticks_provider(self : AutoMinorLocator) -> () -> TickValues raise DataError?fn AutoMinorLocator::nonsingular(self : AutoMinorLocator, lower : Double, upper : Double) -> (Double, Double)fn AutoMinorLocator::tick_values(self : AutoMinorLocator, lower : Double, upper : Double) -> Array[Double] raise DataErrorfn AutoMinorLocator::view_interval_provider(self : AutoMinorLocator) -> () -> (Double, Double) raise DataError?fn AutoMinorLocator::view_limits(self : AutoMinorLocator, lower : Double, upper : Double) -> (Double, Double)pub struct BaseFormatter {
// private fields
}fn BaseFormatter::format_ticks(self : BaseFormatter, values : Array[Double]) -> Array[String] raise DataErrorfn BaseFormatter::format_ticks_integers(self : BaseFormatter, values : Array[BigInt]) -> Array[String] raise DataErrorfn BaseFormatter::format_ticks_view(self : BaseFormatter, values : TickValues) -> Array[String] raise DataErrorfn BaseFormatter::set_locs_checked(self : BaseFormatter, locations : Array[Double]) -> Unit raise DataErrorfn BaseFormatter::set_locs_integers_checked(self : BaseFormatter, locations : Array[BigInt]) -> Unit raise DataErrorfn BaseFormatter::set_locs_view_checked(self : BaseFormatter, locations : TickValues) -> Unit raise DataErrorpub struct EngFormatter {
// private fields
}fn EngFormatter::call_value(self : EngFormatter, value : ScalarNumber, pos? : Int) -> String raise DataErrorfn EngFormatter::format_data_short_value(self : EngFormatter, value : ScalarNumber) -> String raise DataErrorfn EngFormatter::format_data_value(self : EngFormatter, value : ScalarNumber) -> String raise DataErrorfn EngFormatter::format_eng_value(self : EngFormatter, value : ScalarNumber) -> String raise DataErrorfn EngFormatter::format_ticks(self : EngFormatter, values : Array[Double]) -> Array[String] raise DataErrorfn EngFormatter::format_ticks_view(self : EngFormatter, values : TickValues) -> Array[String] raise DataErrorfn EngFormatter::new(unit? : String, places? : ScalarNumber?, sep? : String, usetex? : Bool?, use_math_text? : Bool?, use_offset? : ScalarNumber?) -> EngFormatterpub struct EngPrefixKey {
// private fields
}impl Eq for EngPrefixKeyimpl Debug for EngPrefixKeypub struct EngPrefixes {
// private fields
}fn EngPrefixes::set_key(self : EngPrefixes, key : EngPrefixKey, value : String) -> Unit raise DataErrorpub struct FixedFormatter {
// private fields
}fn FixedFormatter::call(self : FixedFormatter, value : Double, pos? : Int) -> String raise DataErrorfn FixedFormatter::format_data_short(self : FixedFormatter, value : Double) -> String raise DataErrorfn FixedFormatter::format_ticks(self : FixedFormatter, values : Array[Double]) -> Array[String] raise DataErrorfn FixedFormatter::format_ticks_view(self : FixedFormatter, values : TickValues) -> Array[String] raise DataErrorpub struct FixedLocator {
// private fields
}test {
let positions = [4.0, 1.0, 0.0, -1.0, -4.0]
let locator = @ticker.FixedLocator::new(positions, nbins=2.0)
let ticks = locator.tick_values(100.0, -100.0)
assert_eq(ticks.to_array(), [0.0])
ticks.set(0, 0.5)
assert_eq(positions[2], 0.5)
}fn FixedLocator::nonsingular(_self : FixedLocator, lower : Double, upper : Double) -> (Double, Double)fn FixedLocator::tick_values(self : FixedLocator, _lower : Double, _upper : Double) -> TickValues raise DataErrorfn FixedLocator::view_limits(_self : FixedLocator, lower : Double, upper : Double) -> (Double, Double)pub struct FormatStrFormatter {
// private fields
}fn FormatStrFormatter::call(self : FormatStrFormatter, value : Double, pos? : Int) -> String raise DataErrorfn FormatStrFormatter::format_data(self : FormatStrFormatter, value : Double) -> String raise DataErrorfn FormatStrFormatter::format_data_short(self : FormatStrFormatter, value : Double) -> String raise DataErrorfn FormatStrFormatter::format_ticks(self : FormatStrFormatter, values : Array[Double]) -> Array[String] raise DataErrorfn FormatStrFormatter::format_ticks_view(self : FormatStrFormatter, values : TickValues) -> Array[String] raise DataErrorpub(all) enum Formatter {
Scalar(use_offset~ : Bool, use_math_text~ : Bool, power_min~ : Int, power_max~ : Int)
Fixed(Array[String])
Index(Array[String])
Format(String)
StrMethod(String)
Eng(unit~ : String, places~ : Int, sep~ : String)
Percent(xmax~ : Double, decimals~ : Int, symbol~ : String)
Log(base~ : Double, label_only_base~ : Bool)
Null
Func((Double) -> String)
}pub struct FormatterAxisBinding {
// private fields
}impl Eq for FormatterAxisBindingimpl Debug for FormatterAxisBindingfn FormatterAxisBinding::bind_short_format_delta(self : FormatterAxisBinding, provider : (Double) -> Double raise DataError) -> Unitfn FormatterAxisBinding::bind_transform_linthresh(self : FormatterAxisBinding, provider : () -> ScalarNumber? raise DataError) -> Unitfn FormatterAxisBinding::bind_view_interval(self : FormatterAxisBinding, provider : () -> FormatterViewInterval raise DataError) -> Unitfn FormatterAxisBinding::set_view_interval(self : FormatterAxisBinding, view : FormatterViewInterval) -> Unitfn FormatterAxisBinding::short_format_delta(self : FormatterAxisBinding, value : Double) -> Double? raise DataErrorfn FormatterAxisBinding::transform_linthresh(self : FormatterAxisBinding) -> ScalarNumber? raise DataErrorfn FormatterAxisBinding::view_interval(self : FormatterAxisBinding) -> FormatterViewInterval raise DataErrorpub(all) enum FormatterLocations {
Sequence(Array[Double])
Integers(Array[BigInt])
NdArray(TickValues)
Typed(NumericArray)
}fn FormatterLocations::get_value(self : FormatterLocations, index : Int) -> ScalarNumber raise DataErrorpub(all) enum FormatterViewInterval {
Sequence(Array[Double])
Integers(Array[BigInt])
NdArray(TickValues)
}pub struct FuncFormatter {
// private fields
}fn FuncFormatter::format_ticks(self : FuncFormatter, values : Array[Double]) -> Array[String] raise DataErrorfn FuncFormatter::format_ticks_view(self : FuncFormatter, values : TickValues) -> Array[String] raise DataErrorfn FuncFormatter::set_func(self : FuncFormatter, callback : (Double, Int?) -> String raise DataError) -> Unitpub struct IndexLocator {
// private fields
}fn IndexLocator::nonsingular(_self : IndexLocator, lower : Double, upper : Double) -> (Double, Double)fn IndexLocator::tick_values(self : IndexLocator, lower : Double, upper : Double) -> Array[Double] raise DataErrorfn IndexLocator::view_limits(_self : IndexLocator, lower : Double, upper : Double) -> (Double, Double)pub struct LinearLocator {
// private fields
}fn LinearLocator::nonsingular(_self : LinearLocator, lower : Double, upper : Double) -> (Double, Double)fn LinearLocator::set_params(self : LinearLocator, numticks? : Int, presets? : LinearLocatorPresets) -> Unitfn LinearLocator::tick_values(self : LinearLocator, lower : Double, upper : Double) -> TickValues raise DataErrorfn LinearLocator::view_limits(self : LinearLocator, lower : Double, upper : Double) -> (Double, Double) raise DataErrorpub struct LinearLocatorPresets {
// private fields
}fn LinearLocatorPresets::get(self : LinearLocatorPresets, lower : Double, upper : Double) -> TickValues?fn LinearLocatorPresets::set(self : LinearLocatorPresets, lower : Double, upper : Double, values : Array[Double]) -> Unitfn LinearLocatorPresets::set_view(self : LinearLocatorPresets, lower : Double, upper : Double, values : TickValues) -> Unitpub(all) enum Locator {
NamedLogit(LogitLocator)
NamedAsinh(AsinhLocator)
NamedSymLog(SymmetricalLogLocator)
NamedLog(LogLocator)
Null(NullLocator)
NamedMaxN(MaxNLocator)
NamedAuto(AutoLocator)
NamedLinear(LinearLocator)
Index(IndexLocator)
NamedFixed(FixedLocator)
Multiple(MultipleLocator)
Linear(count~ : Int)
MaxN(count~ : Int, integer~ : Bool, symmetric~ : Bool, prune~ : String)
Fixed(Array[Double])
Log(count~ : Int, base~ : Double)
LogWithSubs(count~ : Int, base~ : Double, subs~ : Array[Double], numdecs~ : Int)
}fn Locator::tick_view_for_axis(self : Locator, lower : Double, upper : Double) -> TickValues raise DataErrorpub struct LogFormatter {
// private fields
}fn LogFormatter::call_value(self : LogFormatter, value : ScalarNumber, pos? : Int) -> String raise DataErrorfn LogFormatter::format_data_short_value(self : LogFormatter, value : ScalarNumber) -> String raise DataErrorfn LogFormatter::format_data_value(self : LogFormatter, value : ScalarNumber) -> String raise DataErrorfn LogFormatter::format_ticks(self : LogFormatter, values : Array[Double]) -> Array[String] raise DataErrorfn LogFormatter::format_ticks_view(self : LogFormatter, values : TickValues) -> Array[String] raise DataErrorfn LogFormatter::new(base? : LogValue, label_only_base? : LogValue, minor_thresholds? : LogMinorThresholds?, linthresh? : LogValue) -> LogFormatter raise DataErrorpub struct LogFormatterExponent {
// private fields
}fn LogFormatterExponent::call(self : LogFormatterExponent, value : Double, pos? : Int) -> String raise DataErrorfn LogFormatterExponent::call_value(self : LogFormatterExponent, value : ScalarNumber, pos? : Int) -> String raise DataErrorfn LogFormatterExponent::format_data(self : LogFormatterExponent, value : Double) -> String raise DataErrorfn LogFormatterExponent::format_data_short(self : LogFormatterExponent, value : Double) -> String raise DataErrorfn LogFormatterExponent::format_data_short_value(self : LogFormatterExponent, value : ScalarNumber) -> String raise DataErrorfn LogFormatterExponent::format_data_value(self : LogFormatterExponent, value : ScalarNumber) -> String raise DataErrorfn LogFormatterExponent::format_ticks(self : LogFormatterExponent, values : Array[Double]) -> Array[String] raise DataErrorfn LogFormatterExponent::format_ticks_view(self : LogFormatterExponent, values : TickValues) -> Array[String] raise DataErrorfn LogFormatterExponent::new(base? : LogValue, label_only_base? : LogValue, minor_thresholds? : LogMinorThresholds?, linthresh? : LogValue) -> LogFormatterExponent raise DataErrorfn LogFormatterExponent::set_axis(self : LogFormatterExponent, axis : FormatterAxisBinding?) -> Unitfn LogFormatterExponent::set_base(self : LogFormatterExponent, value : LogValue) -> Unit raise DataErrorfn LogFormatterExponent::set_locs(self : LogFormatterExponent, locations? : Array[Double]) -> Unit raise DataErrorfn LogFormatterExponent::set_locs_view(self : LogFormatterExponent, locations : TickValues) -> Unit raise DataErrorfn LogFormatterExponent::set_minor_thresholds(self : LogFormatterExponent, value : LogMinorThresholds?) -> Unitpub struct LogFormatterMathtext {
// private fields
}fn LogFormatterMathtext::call(self : LogFormatterMathtext, value : Double, pos? : Int) -> String raise DataErrorfn LogFormatterMathtext::call_value(self : LogFormatterMathtext, value : ScalarNumber, pos? : Int) -> String raise DataErrorfn LogFormatterMathtext::format_data(self : LogFormatterMathtext, value : Double) -> String raise DataErrorfn LogFormatterMathtext::format_data_short(self : LogFormatterMathtext, value : Double) -> String raise DataErrorfn LogFormatterMathtext::format_data_short_value(self : LogFormatterMathtext, value : ScalarNumber) -> String raise DataErrorfn LogFormatterMathtext::format_data_value(self : LogFormatterMathtext, value : ScalarNumber) -> String raise DataErrorfn LogFormatterMathtext::format_ticks(self : LogFormatterMathtext, values : Array[Double]) -> Array[String] raise DataErrorfn LogFormatterMathtext::format_ticks_view(self : LogFormatterMathtext, values : TickValues) -> Array[String] raise DataErrorfn LogFormatterMathtext::new(base? : LogValue, label_only_base? : LogValue, minor_thresholds? : LogMinorThresholds?, linthresh? : LogValue) -> LogFormatterMathtext raise DataErrorfn LogFormatterMathtext::set_axis(self : LogFormatterMathtext, axis : FormatterAxisBinding?) -> Unitfn LogFormatterMathtext::set_base(self : LogFormatterMathtext, value : LogValue) -> Unit raise DataErrorfn LogFormatterMathtext::set_locs(self : LogFormatterMathtext, locations? : Array[Double]) -> Unit raise DataErrorfn LogFormatterMathtext::set_locs_view(self : LogFormatterMathtext, locations : TickValues) -> Unit raise DataErrorfn LogFormatterMathtext::set_minor_thresholds(self : LogFormatterMathtext, value : LogMinorThresholds?) -> Unitpub struct LogFormatterSciNotation {
// private fields
}fn LogFormatterSciNotation::as_mathtext_formatter(self : LogFormatterSciNotation) -> LogFormatterMathtextfn LogFormatterSciNotation::call(self : LogFormatterSciNotation, value : Double, pos? : Int) -> String raise DataErrorfn LogFormatterSciNotation::call_value(self : LogFormatterSciNotation, value : ScalarNumber, pos? : Int) -> String raise DataErrorfn LogFormatterSciNotation::create_dummy_axis(self : LogFormatterSciNotation, minpos? : Double) -> Unitfn LogFormatterSciNotation::format_data(self : LogFormatterSciNotation, value : Double) -> String raise DataErrorfn LogFormatterSciNotation::format_data_short(self : LogFormatterSciNotation, value : Double) -> String raise DataErrorfn LogFormatterSciNotation::format_data_short_value(self : LogFormatterSciNotation, value : ScalarNumber) -> String raise DataErrorfn LogFormatterSciNotation::format_data_value(self : LogFormatterSciNotation, value : ScalarNumber) -> String raise DataErrorfn LogFormatterSciNotation::format_ticks(self : LogFormatterSciNotation, values : Array[Double]) -> Array[String] raise DataErrorfn LogFormatterSciNotation::format_ticks_view(self : LogFormatterSciNotation, values : TickValues) -> Array[String] raise DataErrorfn LogFormatterSciNotation::new(base? : LogValue, label_only_base? : LogValue, minor_thresholds? : LogMinorThresholds?, linthresh? : LogValue) -> LogFormatterSciNotation raise DataErrorfn LogFormatterSciNotation::set_axis(self : LogFormatterSciNotation, axis : FormatterAxisBinding?) -> Unitfn LogFormatterSciNotation::set_base(self : LogFormatterSciNotation, value : LogValue) -> Unit raise DataErrorfn LogFormatterSciNotation::set_label_minor(self : LogFormatterSciNotation, value : LogValue) -> Unitfn LogFormatterSciNotation::set_label_only_base(self : LogFormatterSciNotation, value : LogValue) -> Unitfn LogFormatterSciNotation::set_locs(self : LogFormatterSciNotation, locations? : Array[Double]) -> Unit raise DataErrorfn LogFormatterSciNotation::set_locs_view(self : LogFormatterSciNotation, locations : TickValues) -> Unit raise DataErrorfn LogFormatterSciNotation::set_minor_thresholds(self : LogFormatterSciNotation, value : LogMinorThresholds?) -> Unitfn LogFormatterSciNotation::sublabels(self : LogFormatterSciNotation) -> Array[Double]? raise DataErrorpub struct LogLocator {
// private fields
}fn LogLocator::bind_shared_minpos(self : LogLocator, provider : () -> Array[Double] raise DataError) -> Unitfn LogLocator::bind_tick_space(self : LogLocator, provider : () -> LogTickSpace raise DataError) -> Unitfn LogLocator::bind_view_interval(self : LogLocator, provider : () -> (Double, Double) raise DataError) -> Unitfn LogLocator::new(base? : Double, subs? : LogSubs?, numticks? : LogNumTicks?) -> LogLocator raise DataErrorfn LogLocator::nonsingular(self : LogLocator, lower : Double, upper : Double) -> (Double, Double) raise DataErrorfn LogLocator::set_params(self : LogLocator, base? : Double?, subs? : LogSubs?, numticks? : LogNumTicks?) -> Unit raise DataErrorfn LogLocator::tick_values(self : LogLocator, lower : Double, upper : Double) -> Array[Double] raise DataErrorfn LogLocator::view_limits(self : LogLocator, lower : Double, upper : Double) -> (Double, Double) raise DataErrorpub(all) enum LogMinorThresholds {
Tuple(LogThresholdTuple)
Sequence(Array[LogValue])
NdArray(TickValues)
Raw(LogValue)
}impl Debug for LogMinorThresholdspub struct LogThresholdTuple {
// private fields
}impl Eq for LogThresholdTupleimpl Debug for LogThresholdTuplepub struct LogitFormatter {
// private fields
}fn LogitFormatter::call(self : LogitFormatter, value : Double, pos? : Int) -> String raise DataErrorfn LogitFormatter::call_key(self : LogitFormatter, key : LogitKey, pos? : Int) -> String raise DataErrorfn LogitFormatter::call_value(self : LogitFormatter, value : ScalarNumber, pos? : Int) -> String raise DataErrorfn LogitFormatter::format_data_short(self : LogitFormatter, value : Double) -> String raise DataErrorfn LogitFormatter::format_data_short_value(self : LogitFormatter, value : ScalarNumber) -> String raise DataErrorfn LogitFormatter::format_data_value(self : LogitFormatter, value : ScalarNumber) -> String raise DataErrorfn LogitFormatter::format_ticks(self : LogitFormatter, values : Array[Double]) -> Array[String] raise DataErrorfn LogitFormatter::format_ticks_keys(self : LogitFormatter, values : Array[LogitKey]) -> Array[String] raise DataErrorfn LogitFormatter::format_ticks_view(self : LogitFormatter, values : TickValues) -> Array[String] raise DataErrorfn LogitFormatter::new(use_overline? : LogValue, one_half? : LogValue, minor? : LogValue, minor_threshold? : LogValue, minor_number? : LogValue) -> LogitFormatterfn LogitFormatter::set_locs_keys(self : LogitFormatter, values : Array[LogitKey]) -> Unit raise DataErrorfn LogitFormatter::set_locs_view(self : LogitFormatter, values : TickValues) -> Unit raise DataErrorpub struct LogitKey {
// private fields
}pub struct LogitLocator {
// private fields
}fn LogitLocator::bind_projection(self : LogitLocator, provider : () -> String raise DataError) -> Unitfn LogitLocator::bind_view_interval(self : LogitLocator, provider : () -> (Double, Double) raise DataError) -> Unitfn LogitLocator::nonsingular(self : LogitLocator, lower : Double, upper : Double) -> (Double, Double) raise DataErrorfn LogitLocator::set_params(self : LogitLocator, minor? : Bool?, nbins? : MaxNBins, steps? : TickValues?, integer? : Bool, symmetric? : Bool, prune? : String?, min_n_ticks? : Int) -> Unit raise DataErrorfn LogitLocator::tick_values(self : LogitLocator, lower : Double, upper : Double) -> Array[Double] raise DataErrorfn LogitLocator::view_interval_provider(self : LogitLocator) -> () -> (Double, Double) raise DataError?fn LogitLocator::view_limits(self : LogitLocator, lower : Double, upper : Double) -> (Double, Double) raise DataErrorpub struct MaxNLocator {
// private fields
}fn MaxNLocator::bind_view_interval(self : MaxNLocator, provider : () -> (Double, Double) raise DataError) -> Unitfn MaxNLocator::new(nbins? : MaxNBins, steps? : TickValues, integer? : Bool, symmetric? : Bool, prune? : String, min_n_ticks? : Int) -> MaxNLocator raise DataErrorfn MaxNLocator::nonsingular(_self : MaxNLocator, lower : Double, upper : Double) -> (Double, Double)fn MaxNLocator::set_params(self : MaxNLocator, nbins? : MaxNBins, steps? : TickValues?, integer? : Bool, symmetric? : Bool, prune? : String?, min_n_ticks? : Int) -> Unit raise DataErrorfn MaxNLocator::tick_values(self : MaxNLocator, lower : Double, upper : Double) -> Array[Double] raise DataErrorfn MaxNLocator::view_interval_provider(self : MaxNLocator) -> () -> (Double, Double) raise DataError?fn MaxNLocator::view_limits(self : MaxNLocator, lower : Double, upper : Double) -> (Double, Double) raise DataErrorpub(all) enum MinorLocator {
NamedLogit(LogitLocator)
NamedAsinh(AsinhLocator)
NamedSymLog(SymmetricalLogLocator)
NamedLog(LogLocator)
Null(NullLocator)
NamedAutoMinor(AutoMinorLocator)
NamedMaxN(MaxNLocator)
NamedAuto(AutoLocator)
NamedLinear(LinearLocator)
Index(IndexLocator)
NamedFixed(FixedLocator)
Multiple(MultipleLocator)
Auto(subdivisions~ : Int)
Fixed(Array[Double])
Log(subdivisions~ : Int, base~ : Double)
}fn MinorLocator::checked_tick_values(self : MinorLocator, major : Array[Double], lower : Double, upper : Double) -> Array[Double] raise DataErrorfn MinorLocator::tick_values(self : MinorLocator, major : Array[Double], lower : Double, upper : Double) -> Array[Double]fn MinorLocator::tick_values_for_axis(self : MinorLocator, major : Array[Double], lower : Double, upper : Double) -> Array[Double] raise DataErrorpub struct MultipleLocator {
// private fields
}test {
let locator = @ticker.MultipleLocator::new(base=2.0, offset=1.0)
let adapter = locator.as_locator()
assert_eq(locator.tick_values(0.0, 5.0), [-1.0, 1.0, 3.0, 5.0, 7.0])
locator.set_params(base=4.0)
assert_eq(adapter.multiple_locator().unwrap().base(), 4.0)
assert_eq(locator.copy().offset(), 1.0)
}fn MultipleLocator::nonsingular(_self : MultipleLocator, lower : Double, upper : Double) -> (Double, Double)fn MultipleLocator::set_params(self : MultipleLocator, base? : Double, offset? : Double) -> Unit raise DataErrorfn MultipleLocator::tick_values(self : MultipleLocator, lower : Double, upper : Double) -> Array[Double] raise DataErrorfn MultipleLocator::view_limits(self : MultipleLocator, lower : Double, upper : Double) -> (Double, Double)pub struct NullFormatter {
// private fields
}fn NullFormatter::format_ticks(self : NullFormatter, values : Array[Double]) -> Array[String] raise DataErrorfn NullFormatter::format_ticks_view(self : NullFormatter, values : TickValues) -> Array[String] raise DataErrorpub struct NullLocator {
// private fields
}pub struct NumericArray {
// private fields
}pub struct PercentFormatter {
// private fields
}fn PercentFormatter::call(self : PercentFormatter, value : Double, pos? : Int) -> String raise DataErrorfn PercentFormatter::convert_to_pct(self : PercentFormatter, value : Double) -> Double raise DataErrorfn PercentFormatter::format_data_short(self : PercentFormatter, value : Double) -> String raise DataErrorfn PercentFormatter::format_pct(self : PercentFormatter, value : Double, display_range : Double) -> String raise DataErrorfn PercentFormatter::format_ticks(self : PercentFormatter, values : Array[Double]) -> Array[String] raise DataErrorfn PercentFormatter::format_ticks_view(self : PercentFormatter, values : TickValues) -> Array[String] raise DataErrorfn PercentFormatter::new(xmax? : PercentXMax, decimals? : PercentDecimals, symbol? : String?, is_latex? : Bool) -> PercentFormatter raise DataErrorpub struct ScalarFormatter {
// private fields
}fn ScalarFormatter::call(self : ScalarFormatter, value : Double, pos? : Int) -> String raise DataErrorfn ScalarFormatter::call_value(self : ScalarFormatter, value : ScalarNumber, pos? : Int) -> String raise DataErrorfn ScalarFormatter::format_data_short(self : ScalarFormatter, value : Double) -> String raise DataErrorfn ScalarFormatter::format_data_short_value(self : ScalarFormatter, value : ScalarNumber) -> String raise DataErrorfn ScalarFormatter::format_data_value(self : ScalarFormatter, value : ScalarNumber) -> String raise DataErrorfn ScalarFormatter::format_ticks(self : ScalarFormatter, values : Array[Double]) -> Array[String] raise DataErrorfn ScalarFormatter::format_ticks_view(self : ScalarFormatter, values : TickValues) -> Array[String] raise DataErrorfn ScalarFormatter::new(use_offset? : ScalarNumber?, use_math_text? : Bool?, use_locale? : Bool?, usetex? : Bool?) -> ScalarFormatterfn ScalarFormatter::set_locs(self : ScalarFormatter, values : Array[Double]) -> Unit raise DataErrorfn ScalarFormatter::set_locs_view(self : ScalarFormatter, values : TickValues) -> Unit raise DataErrorfn ScalarFormatter::set_power_limits(self : ScalarFormatter, value : ScalarPowerLimits) -> Unit raise DataErrorpub(all) enum ScalarPowerLimits {
Sequence(Array[Double])
Integers(Array[BigInt])
Values(Array[ScalarNumber])
NdArray(TickValues)
}impl Debug for ScalarPowerLimitspub struct StrMethodFormatter {
// private fields
}fn StrMethodFormatter::call(self : StrMethodFormatter, value : Double, pos? : Int) -> String raise DataErrorfn StrMethodFormatter::format_data(self : StrMethodFormatter, value : Double) -> String raise DataErrorfn StrMethodFormatter::format_data_short(self : StrMethodFormatter, value : Double) -> String raise DataErrorfn StrMethodFormatter::format_ticks(self : StrMethodFormatter, values : Array[Double]) -> Array[String] raise DataErrorfn StrMethodFormatter::format_ticks_view(self : StrMethodFormatter, values : TickValues) -> Array[String] raise DataErrorimpl Debug for SymLogSubspub struct SymmetricalLogLocator {
// private fields
}fn SymmetricalLogLocator::bind_view_interval(self : SymmetricalLogLocator, provider : () -> (Double, Double) raise DataError) -> Unitfn SymmetricalLogLocator::new(transform? : Scale, base? : Double, linthresh? : Double, subs? : SymLogSubs?) -> SymmetricalLogLocator raise DataErrorfn SymmetricalLogLocator::nonsingular(_self : SymmetricalLogLocator, lower : Double, upper : Double) -> (Double, Double)fn SymmetricalLogLocator::set_params(self : SymmetricalLogLocator, subs? : SymLogSubs, numticks? : LogNumTicks) -> Unitfn SymmetricalLogLocator::tick_values(self : SymmetricalLogLocator, lower : Double, upper : Double) -> Array[Double] raise DataErrorfn SymmetricalLogLocator::view_interval_provider(self : SymmetricalLogLocator) -> () -> (Double, Double) raise DataError?fn SymmetricalLogLocator::view_limits(self : SymmetricalLogLocator, lower : Double, upper : Double) -> (Double, Double) raise DataErrorpub struct TickValues {
// private fields
}fn TickValues::view(self : TickValues, start : Int, stride : Int, length : Int) -> TickValues raise DataErrorfn format_tick(value : Double) -> Stringfn python_float_repr(value : Double) -> Stringfn python_string_repr(value : String) -> String