Class used to specific options for legend
Instance methods
at_bottom
Place the legend on the inside of the plot at its bottom side.
Sourceat_bottom_left
Place the legend on the inside of the plot at its bottom-left corner.
Sourceat_bottom_right
Place the legend on the inside of the plot at its bottom-right corner.
Sourceat_center
Place the legend on the inside of the plot at its center.
Sourceat_left
Place the legend on the inside of the plot at its left side.
Sourceat_outside_bottom
Place the legend on the outside of the plot at its bottom side.
Sourceat_outside_bottom_left
Place the legend on the outside of the plot at its bottom-left corner.
Sourceat_outside_bottom_right
Place the legend on the outside of the plot at its bottom-right corner.
Sourceat_outside_left
Place the legend on the outside of the plot at its left side.
Sourceat_outside_left_bottom
Place the legend on the outside of the plot at its left-bottom corner.
Sourceat_outside_left_top
Place the legend on the outside of the plot at its left-top corner.
Sourceat_outside_right
Place the legend on the outside of the plot at its right side.
Sourceat_outside_right_bottom
Place the legend on the outside of the plot at its right-bottom corner.
Sourceat_outside_right_top
Place the legend on the outside of the plot at its right-top corner.
Sourceat_outside_top
Place the legend on the outside of the plot at its top side.
Sourceat_outside_top_left
Place the legend on the outside of the plot at its top-left corner.
Sourceat_outside_top_right
Place the legend on the outside of the plot at its top-right corner.
Sourceat_right
Place the legend on the inside of the plot at its right side.
Sourceat_top
Place the legend on the inside of the plot at its top side.
Sourceat_top_left
Place the legend on the inside of the plot at its top-left corner.
Sourceat_top_right
Place the legend on the inside of the plot at its top-right corner.
Sourcedisplay_expand_height_by(value :
Int32)
Set the height increment/decrement of the legend frame to either enlarge or reduce its height.
Sourcedisplay_expand_width_by(value :
Int32)
Set the width increment/decrement of the legend frame to either enlarge or reduce its width.
Sourcedisplay_horizontal
Set the legend entries to be displayed along the horizontal (in rows).
Sourcedisplay_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).
Sourcedisplay_justify_left
Set the legend labels to be left justified.
Sourcedisplay_justify_right
Set the legend labels to be right justified.
Sourcedisplay_labels_after_symbols
Set the labels in the legend entries to appear after their corresponding symbols (on the right).
Sourcedisplay_labels_before_symbols
Set the labels in the legend entries to appear before their corresponding symbols (on the left).
Sourcedisplay_spacing(value :
Int32)
Set the spacing between the titles in the legend.
Sourcedisplay_start_from_first
Set the legend entries to be displayed in the order from first to last.
Sourcedisplay_start_from_last
Set the legend entries to be displayed in the order from last to first.
Sourcedisplay_symbol_length(value :
Int32)
Set the length of the samples used to generate the symbols in the legend entries.
Sourcedisplay_vertical
Set the legend entries to be displayed along the vertical (in columns).
Sourcedisplay_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).
Sourceopaque
Set the background of the legend box to be opaque.
Sourcerepr
returns a string representation of object of some class
Sourcetitle_center
Place the legend title on the center.
Sourcetitle_left
Place the legend title on the left.
Sourcetitle_right
Place the legend title on the right.
SourceAppends 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>
Sourcetransparent
Set the background of the legend box to be transparent.
Source