class

Cryplot::MajorTics

Inherits Cryplot::BaseTics / Cryplot::ShowMixin / Cryplot::BaseMixin / Cryplot::OffsetMixin / Cryplot::BaseMixin / Cryplot::TextMixin / Cryplot::FontMixin / Cryplot::BaseMixin / Reference / Object

The class used to specify options for major tics of a specific axis.

Constructors

new(axis : String)
Source

Instance methods

add(values : Array(Float64), labels : Array(String))

Add more tics to be displayed with given tic values and corresponding labels.

Source
add(values : Array(Float64))

Add more tics to be displayed with given tic values.

Source
at(values : Array(Float64), labels : Array(String))

Set the labels that should be displayed on given tic values.

Source
at(values : Array(Float64))

Set the values of the tics that should be displayed.

Source
automatic

Set the values of the tics to be identified automatically.

Source
end(value : Float64)

Set the end value for the tics (you must also call methods @ref start and @ref increment).

Source
increment(value : Float64)

Set the increment for the tics (start and end values determined automatically).

Source
interval(start : Float64, increment : Float64, end_ : Float64)

Set the start, increment and end values of the tics.

Source
repr

returns a string representation of object of some class

Source
start(value : Float64)

Set the start value for the tics (you must also call method @ref increment).

Source
to_s(io : IO) : Nil

Appends a short String representation of this object which includes its class name and its object address.

class Person
  def initialize(@name : String, @age : Int32)
  end
end

Person.new("John", 32).to_s # => #<Person:0x10a199f20>
Source