class UnicodePlot::Plot

Defined in:

unicode_plot/plot.cr

Constructors

Instance Method Summary

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

[View source]

Instance Method Detail

def annotate!(x : Float64, y : Float64, char : Char, color : UInt32, blend : Bool) : self #

[View source]
def annotate!(x : Float64, y : Float64, text : String, color : UInt32, blend : Bool, **kw) : self #

[View source]
def autocolor : Int32 #

[View source]
def autocolor=(autocolor : Int32) #

[View source]
def border : Symbol #

[View source]
def border=(border : Symbol) #

[View source]
def canvas : Canvas #

Canvas accessor (raises if graphics is not a Canvas)


[View source]
def colormap : Colormap #

[View source]
def colors_deco : Hash(Symbol, UInt32) #

[View source]
def colors_left : Hash(Int32, UInt32) #

[View source]
def colors_right : Hash(Int32, UInt32) #

[View source]
def compact=(compact : Bool) #

[View source]
def compact? : Bool #

[View source]
def compact_labels=(compact_labels : Bool) #

[View source]
def compact_labels? : Bool #

[View source]
def decorations : Hash(Symbol, String) #

[View source]
def graphics : GraphicsArea #

[View source]
def label!(loc : Symbol, row : Int32, value : String, color : Symbol) : self #

[View source]
def label!(loc : Symbol, value : String, color : UInt32 = INVALID_COLOR) : self #

[View source]
def label!(loc : Symbol, value : String, color : Symbol) : self #

[View source]
def label!(loc : Symbol, row : Int32, value : String, color : UInt32 = INVALID_COLOR) : self #

[View source]
def labels=(labels : Bool) #

[View source]
def labels? : Bool #

[View source]
def labels_left : Hash(Int32, String) #

[View source]
def labels_right : Hash(Int32, String) #

[View source]
def lines!(x1 : Float64, y1 : Float64, x2 : Float64, y2 : Float64, color : UInt32, blend : Bool) : self #

[View source]
def lines!(xs : Array(Float64), ys : Array(Float64), color : UInt32, blend : Bool) : self #

[View source]
def lines!(x1 : Float64, y1 : Float64, x2 : Float64, y2 : Float64, *, color : Symbol = :normal) : self #

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


[View source]
def margin : Int32 #

[View source]
def margin=(margin : Int32) #

[View source]
def ncols : Int32 #

[View source]
def next_color! : Symbol #

[View source]
def nice_repr(x : Number) : String #

[View source]
def nrows : Int32 #

[View source]
def padding : Int32 #

[View source]
def padding=(padding : Int32) #

[View source]
def points!(xs : Array(Float64), ys : Array(Float64), color : UInt32, blend : Bool) : self #

[View source]
def series : Int32 #

[View source]
def series=(series : Int32) #

[View source]
def thousands_separator : Char #

[View source]
def thousands_separator=(thousands_separator : Char) #

[View source]
def title : String #

[View source]
def title=(title : String) #

[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]
def unicode_exponent=(unicode_exponent : Bool) #

[View source]
def unicode_exponent? : Bool #

[View source]
def xlabel : String #

[View source]
def xlabel=(xlabel : String) #

[View source]
def ylabel : String #

[View source]
def ylabel=(ylabel : String) #

[View source]
def zlabel : String #

[View source]
def zlabel=(zlabel : String) #

[View source]