class

Cryplot::Legend

Inherits Cryplot::FrameMixin / Cryplot::BaseMixin / Cryplot::TitleMixin / Cryplot::BaseMixin / Cryplot::ShowMixin / Cryplot::BaseMixin / Cryplot::TextMixin / Cryplot::FontMixin / Cryplot::BaseMixin / Reference / Object

Class used to specific options for legend

Constructors

Instance methods

at_bottom

Place the legend on the inside of the plot at its bottom side.

Source
at_bottom_left

Place the legend on the inside of the plot at its bottom-left corner.

Source
at_bottom_right

Place the legend on the inside of the plot at its bottom-right corner.

Source
at_center

Place the legend on the inside of the plot at its center.

Source
at_left

Place the legend on the inside of the plot at its left side.

Source
at_outside_bottom

Place the legend on the outside of the plot at its bottom side.

Source
at_outside_bottom_left

Place the legend on the outside of the plot at its bottom-left corner.

Source
at_outside_bottom_right

Place the legend on the outside of the plot at its bottom-right corner.

Source
at_outside_left

Place the legend on the outside of the plot at its left side.

Source
at_outside_left_bottom

Place the legend on the outside of the plot at its left-bottom corner.

Source
at_outside_left_top

Place the legend on the outside of the plot at its left-top corner.

Source
at_outside_right

Place the legend on the outside of the plot at its right side.

Source
at_outside_right_bottom

Place the legend on the outside of the plot at its right-bottom corner.

Source
at_outside_right_top

Place the legend on the outside of the plot at its right-top corner.

Source
at_outside_top

Place the legend on the outside of the plot at its top side.

Source
at_outside_top_left

Place the legend on the outside of the plot at its top-left corner.

Source
at_outside_top_right

Place the legend on the outside of the plot at its top-right corner.

Source
at_right

Place the legend on the inside of the plot at its right side.

Source
at_top

Place the legend on the inside of the plot at its top side.

Source
at_top_left

Place the legend on the inside of the plot at its top-left corner.

Source
at_top_right

Place the legend on the inside of the plot at its top-right corner.

Source
display_expand_height_by(value : Int32)

Set the height increment/decrement of the legend frame to either enlarge or reduce its height.

Source
display_expand_width_by(value : Int32)

Set the width increment/decrement of the legend frame to either enlarge or reduce its width.

Source
display_horizontal

Set the legend entries to be displayed along the horizontal (in rows).

Source
display_horizontal_max_cols(value : Int32)

Set the number of columns that trigger a new row to be created in the legend (when using horizontal display).

Source
display_justify_left

Set the legend labels to be left justified.

Source
display_justify_right

Set the legend labels to be right justified.

Source
display_labels_after_symbols

Set the labels in the legend entries to appear after their corresponding symbols (on the right).

Source
display_labels_before_symbols

Set the labels in the legend entries to appear before their corresponding symbols (on the left).

Source
display_spacing(value : Int32)

Set the spacing between the titles in the legend.

Source
display_start_from_first

Set the legend entries to be displayed in the order from first to last.

Source
display_start_from_last

Set the legend entries to be displayed in the order from last to first.

Source
display_symbol_length(value : Int32)

Set the length of the samples used to generate the symbols in the legend entries.

Source
display_vertical

Set the legend entries to be displayed along the vertical (in columns).

Source
display_vertical_max_rows(value : Int32)

Set the number of rows that trigger a new column to be created in the legend (when using vertical display).

Source
opaque

Set the background of the legend box to be opaque.

Source
repr

returns a string representation of object of some class

Source
title_center

Place the legend title on the center.

Source
title_left

Place the legend title on the left.

Source
title_right

Place the legend title on the right.

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
transparent

Set the background of the legend box to be transparent.

Source