class Cryplot::MajorTics
- Cryplot::MajorTics
- Reference
- Object
Overview
The class used to specify options for major tics of a specific axis.
Included Modules
Defined in:
plot/elems/tics.crConstructors
Instance Method Summary
-
#add(values : Array(Float64), labels : Array(String))
Add more tics to be displayed with given tic values and corresponding labels.
-
#add(values : Array(Float64))
Add more tics to be displayed with given tic values.
-
#at(values : Array(Float64), labels : Array(String))
Set the labels that should be displayed on given tic values.
-
#at(values : Array(Float64))
Set the values of the tics that should be displayed.
-
#automatic
Set the values of the tics to be identified automatically.
-
#end(value : Float64)
Set the end value for the tics (you must also call methods @ref start and @ref increment).
-
#increment(value : Float64)
Set the increment for the tics (start and end values determined automatically).
-
#interval(start : Float64, increment : Float64, end_ : Float64)
Set the start, increment and end values of the tics.
-
#repr : String
returns a string representation of object of some class
-
#start(value : Float64)
Set the start value for the tics (you must also call method @ref increment).
-
#to_s(io : IO) : Nil
Appends a short String representation of this object which includes its class name and its object address.
Instance methods inherited from module Cryplot::BaseTics(Cryplot::MajorTics)
along_axis
along_axis,
along_border
along_border,
format(fmt : String)
format,
inside_graph
inside_graph,
logscale(base = 10)
logscale,
mirror(value = true)
mirror,
outside_graph
outside_graph,
repr(axis : String) : String
repr,
rotate(value = true)
rotate,
rotate_by(degrees : Number)
rotate_by,
scale_by(value : Number)
scale_by,
scale_major_by(value : Number)
scale_major_by,
scale_minor_by(value : Number)
scale_minor_by,
tics_base_repr : String
tics_base_repr
Constructor methods inherited from module Cryplot::BaseTics(Cryplot::MajorTics)
new
new
Instance methods inherited from module Cryplot::ShowMixin(Cryplot::MajorTics)
hidden? : Bool
hidden?,
hide
hide,
show(value = true)
show,
show_repr
show_repr
Instance methods inherited from module Cryplot::BaseMixin(Cryplot::MajorTics)
derived : T
derived,
repr : String
repr,
to_s(io : IO) : Nil
to_s
Instance methods inherited from module Cryplot::OffsetMixin(Cryplot::MajorTics)
offset_repr
offset_repr,
shift_along_graph_x(val : Number)
shift_along_graph_x,
shift_along_graph_y(val : Number)
shift_along_graph_y,
shift_along_screen_x(val : Number)
shift_along_screen_x,
shift_along_screen_y(val : Number)
shift_along_screen_y,
shift_along_x(val : Number)
shift_along_x,
shift_along_y(val : Number)
shift_along_y
Instance methods inherited from module Cryplot::BaseMixin(Cryplot::MajorTics)
derived : T
derived,
repr : String
repr,
to_s(io : IO) : Nil
to_s
Instance methods inherited from module Cryplot::TextMixin(Cryplot::MajorTics)
enhanced(value : Bool) : T
enhanced,
text_color(color : String) : T
text_color,
text_repr : String
text_repr
Instance methods inherited from module Cryplot::FontMixin(Cryplot::MajorTics)
font_name(name : String) : T
font_name,
font_repr : String
font_repr,
font_size(size : Int32) : T
font_size
Instance methods inherited from module Cryplot::BaseMixin(Cryplot::MajorTics)
derived : T
derived,
repr : String
repr,
to_s(io : IO) : Nil
to_s
Constructor Detail
Instance Method Detail
Add more tics to be displayed with given tic values and corresponding labels.
Set the labels that should be displayed on given tic values.
Set the end value for the tics (you must also call methods @ref start and @ref increment).
Set the increment for the tics (start and end values determined automatically).
Set the start, increment and end values of the tics.
returns a string representation of object of some class
Set the start value for the tics (you must also call method @ref increment).
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>