module Cryplot::BaseTics(T)

Overview

The class used to attach common tic options to a type that also specifies tic options.

Included Modules

Direct including types

Defined in:

plot/elems/tics.cr

Constructors

Instance Method Summary

Instance methods inherited from module Cryplot::ShowMixin(T)

hidden? : Bool hidden?, hide hide, show(value = true) show, show_repr show_repr

Instance methods inherited from module Cryplot::BaseMixin(T)

derived : T derived, repr : String repr, to_s(io : IO) : Nil to_s

Instance methods inherited from module Cryplot::OffsetMixin(T)

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(T)

derived : T derived, repr : String repr, to_s(io : IO) : Nil to_s

Instance methods inherited from module Cryplot::TextMixin(T)

enhanced(value : Bool) : T enhanced, text_color(color : String) : T text_color, text_repr : String text_repr

Instance methods inherited from module Cryplot::FontMixin(T)

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(T)

derived : T derived, repr : String repr, to_s(io : IO) : Nil to_s

Constructor Detail

def self.new #

[View source]

Instance Method Detail

def along_axis #

Set the tics to be displayed along the axis.


[View source]
def along_border #

Set the tics to be displayed along the border.


[View source]
def format(fmt : String) #

Set the format of the tics using a format expression ("%.2f")


[View source]
def inside_graph #

Set the tics to be displayed inside the graph.


[View source]
def logscale(base = 10) #

Set logarithmic scale with base for an axis.


[View source]
def mirror(value = true) #

Set the tics to be mirrored on the opposite border if true.


[View source]
def outside_graph #

Set the tics to be displayed outside the graph.


[View source]
def repr(axis : String) : String #

[View source]
def rotate(value = true) #

Set the tics to be rotated by 90 degrees if true.


[View source]
def rotate_by(degrees : Number) #

Set the tics to be rotated by given degrees.


[View source]
def scale_by(value : Number) #

Set the scale for the major tics (identical to method scaleMajorBy).


[View source]
def scale_major_by(value : Number) #

Set the scale for the major tics.


[View source]
def scale_minor_by(value : Number) #

Set the scale for the minor tics.


[View source]
def tics_base_repr : String #

[View source]