class
UnicodePlot::Plot
- UnicodePlot::Plot
- Reference
- Object
Defined in:
unicode_plot/plot.crConstructors
Instance Method Summary
- #annotate!(x : Float64, y : Float64, char : Char, color : UInt32, blend : Bool) : self
- #annotate!(x : Float64, y : Float64, text : String, color : UInt32, blend : Bool, **kw) : self
- #autocolor : Int32
- #autocolor=(autocolor : Int32)
- #border : Symbol
- #border=(border : Symbol)
-
#canvas : Canvas
Canvas accessor (raises if graphics is not a Canvas)
- #colormap : Colormap
- #colors_deco : Hash(Symbol, UInt32)
- #colors_left : Hash(Int32, UInt32)
- #colors_right : Hash(Int32, UInt32)
- #compact=(compact : Bool)
- #compact? : Bool
- #compact_labels=(compact_labels : Bool)
- #compact_labels? : Bool
- #decorations : Hash(Symbol, String)
- #graphics : GraphicsArea
- #label!(loc : Symbol, row : Int32, value : String, color : Symbol) : self
- #label!(loc : Symbol, value : String, color : UInt32 = INVALID_COLOR) : self
- #label!(loc : Symbol, value : String, color : Symbol) : self
- #label!(loc : Symbol, row : Int32, value : String, color : UInt32 = INVALID_COLOR) : self
- #labels=(labels : Bool)
- #labels? : Bool
- #labels_left : Hash(Int32, String)
- #labels_right : Hash(Int32, String)
- #lines!(x1 : Float64, y1 : Float64, x2 : Float64, y2 : Float64, color : UInt32, blend : Bool) : self
- #lines!(xs : Array(Float64), ys : Array(Float64), color : UInt32, blend : Bool) : self
-
#lines!(x1 : Float64, y1 : Float64, x2 : Float64, y2 : Float64, *, color : Symbol = :normal) : self
lines!, points!, pixel! delegates to the canvas
- #margin : Int32
- #margin=(margin : Int32)
- #ncols : Int32
- #next_color! : Symbol
- #nice_repr(x : Number) : String
- #nrows : Int32
- #padding : Int32
- #padding=(padding : Int32)
- #points!(xs : Array(Float64), ys : Array(Float64), color : UInt32, blend : Bool) : self
- #series : Int32
- #series=(series : Int32)
- #thousands_separator : Char
- #thousands_separator=(thousands_separator : Char)
- #title : String
- #title=(title : String)
-
#to_s(io : IO) : Nil
Appends a short String representation of this object which includes its class name and its object address.
- #unicode_exponent=(unicode_exponent : Bool)
- #unicode_exponent? : Bool
- #xlabel : String
- #xlabel=(xlabel : String)
- #ylabel : String
- #ylabel=(ylabel : String)
- #zlabel : String
- #zlabel=(zlabel : String)
Constructor Detail
def self.new(graphics : GraphicsArea, *, title : String = "", xlabel : String = "", ylabel : String = "", zlabel : String = "", unicode_exponent : Bool = true, thousands_separator : Char = ' ', border : Symbol = :solid, compact_labels : Bool = false, compact : Bool = false, margin : Int32 = 3, padding : Int32 = 1, labels : Bool = true, colorbar : Bool = false, colorbar_border : Symbol = :solid, colorbar_lim : Tuple(Float64, Float64) = {0.0, 1.0}, colormap_callback : Proc(Float64, Float64, Float64, UInt32) | Nil = nil)
#
Instance Method Detail
def annotate!(x : Float64, y : Float64, char : Char, color : UInt32, blend : Bool) : self
#
def annotate!(x : Float64, y : Float64, text : String, color : UInt32, blend : Bool, **kw) : self
#
def lines!(x1 : Float64, y1 : Float64, x2 : Float64, y2 : Float64, color : UInt32, blend : Bool) : self
#
def lines!(xs : Array(Float64), ys : Array(Float64), color : UInt32, blend : Bool) : self
#
def lines!(x1 : Float64, y1 : Float64, x2 : Float64, y2 : Float64, *, color : Symbol = :normal) : self
#
lines!, points!, pixel! delegates to the canvas
def points!(xs : Array(Float64), ys : Array(Float64), color : UInt32, blend : Bool) : self
#
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>