class Cryplot::Draw

Overview

class where options for the plotted elements can be specified

Included Modules

Defined in:

plot/elems/draw.cr

Constructors

Instance Method Summary

Instance methods inherited from module Cryplot::FilledCurveMixin(Cryplot::Draw)

above above, below below, filled_curve_repr filled_curve_repr

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

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

Instance methods inherited from module Cryplot::FillMixin(Cryplot::Draw)

border_hide border_hide, border_line_color(color : String) border_line_color, border_line_width(value : Int32) border_line_width, border_show(show = true) border_show, fill_color(color : String) fill_color, fill_empty fill_empty, fill_intensity(value : Float64) fill_intensity, fill_pattern(num : Int32) fill_pattern, fill_repr fill_repr, fill_solid fill_solid, fill_transparent(active = true) fill_transparent

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

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

Instance methods inherited from module Cryplot::PointMixin(Cryplot::Draw)

point_repr point_repr, point_size(value : Int32) point_size, point_type(value : Int32) point_type

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

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

Instance methods inherited from module Cryplot::LineMixin(Cryplot::Draw)

dash_type(val : Int32) dash_type, line_color(color : String) line_color, line_repr : String line_repr, line_style(val : Int32) line_style, line_type(val : Int32) line_type, line_width(val : Int32) line_width

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

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

Constructor Detail

def self.new(what : String, using : String, with __arg0 : String) #

[View source]

Instance Method Detail

def label(text : String) #

Set the legend label of the plotted element.


[View source]
def label_default #

Set the legend label to be determined defmatically from the plot expression


[View source]
def label_from_column_header(index : Int32) #

Set the legend label of the plotted element to be retrieved from the header of a column with given index.


[View source]
def label_from_column_header #

Set the legend label of the plotted element to be retrieved from the header of column.


[View source]
def label_none #

et the legend label of the plotted element to be ignored.


[View source]
def repr : String #
Description copied from module Cryplot::BaseMixin(Cryplot::Draw)

returns a string representation of object of some class


[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 xtics(icol : Int32 | String) #

Set the column in the data file containing the tic labels for x axis


[View source]
def ytics(icol : Int32 | String) #

Set the column in the data file containing the tic labels for y axis


[View source]