class Cryplot::AxisLabel

Overview

An axis label (e.g., xlabel, ylabel, etc.)

Included Modules

Defined in:

plot/elems/axis_label.cr

Constructors

Instance Method Summary

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

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::AxisLabel)

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::AxisLabel)

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

Constructor Detail

def self.new(axis : String) #

[View source]

Instance Method Detail

def repr : String #
Description copied from module Cryplot::BaseMixin(Cryplot::AxisLabel)

returns a string representation of object of some class


[View source]
def rotate_axis_parallel #

Specify that the axis label should be rotated to be in parallel to the corresponding axis (for 3D plots).


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

specific that the axis label should be rotated by a given angle in degrees


[View source]
def rotate_none #

Specify that the axis label should not be rotated


[View source]
def text(value : String) #

set the text of the axis label


[View source]
def to_s(io : IO) : Nil #
Description copied from class Reference

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>

[View source]