class

UnicodePlot::Plot

Inherits Reference < Object

Constructors

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)
Source

Instance methods

annotate!(x : Float64, y : Float64, char : Char, color : UInt32, blend : Bool) : self
Source
annotate!(x : Float64, y : Float64, text : String, color : UInt32, blend : Bool, **kw) : self
Source
autocolor
Source
autocolor=(autocolor : Int32)
Source
border
Source
border=(border : Symbol)
Source
canvas

Canvas accessor (raises if graphics is not a Canvas)

Source
colormap
Source
colors_deco
Source
colors_left
Source
colors_right
Source
compact=(compact : Bool)
Source
compact?
Source
compact_labels=(compact_labels : Bool)
Source
compact_labels?
Source
decorations
Source
graphics
Source
label!(loc : Symbol, row : Int32, value : String, color : Symbol) : self
Source
label!(loc : Symbol, value : String, color : UInt32 = INVALID_COLOR) : self
Source
label!(loc : Symbol, value : String, color : Symbol) : self
Source
label!(loc : Symbol, row : Int32, value : String, color : UInt32 = INVALID_COLOR) : self
Source
labels=(labels : Bool)
Source
labels?
Source
labels_left
Source
labels_right
Source
lines!(x1 : Float64, y1 : Float64, x2 : Float64, y2 : Float64, color : UInt32, blend : Bool) : self
Source
lines!(xs : Array(Float64), ys : Array(Float64), color : UInt32, blend : Bool) : self
Source
lines!(xs : Array(Float64), ys : Array(Float64), segment_colors : Array(UInt32), blend : Bool) : self
Source
lines!(x1 : Float64, y1 : Float64, x2 : Float64, y2 : Float64, *, color : Symbol = :normal) : self

lines!, points!, pixel! delegates to the canvas

Source
margin
Source
margin=(margin : Int32)
Source
ncols
Source
next_color!
Source
nice_repr(x : Number) : String
Source
nrows
Source
padding
Source
padding=(padding : Int32)
Source
points!(xs : Array(Float64), ys : Array(Float64), color : UInt32, blend : Bool) : self
Source
points!(xs : Array(Float64), ys : Array(Float64), colors : Array(UInt32), blend : Bool) : self
Source
series
Source
series=(series : Int32)
Source
thousands_separator
Source
thousands_separator=(thousands_separator : Char)
Source
title
Source
title=(title : String)
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
unicode_exponent=(unicode_exponent : Bool)
Source
unicode_exponent?
Source
xlabel
Source
xlabel=(xlabel : String)
Source
ylabel
Source
ylabel=(ylabel : String)
Source
zlabel
Source
zlabel=(zlabel : String)
Source