lib/rubyplot/backend/base.rb
# Write text anywhere on the canvas. abs_x and abs_y should be specified in terms
#   of Rubyplot Artist Co-ordinates.
#
# @param text [String] String of text to write.
# @param abs_x [Numeric] X co-ordinate of the text in Rubyplot Artist Co-ordinates.
# @param abs_y [Numeric] Y co-ordinate of the text in Rubyplot Aritst Co-ordinates.
# @param font_color [Symbol] Color of the font from Rubyplot::Colors.
# @param font [Symbol] Name of the font.
# @param size [Numeric] Size of the font.
# @param font_weight [Symbol] Measure of 'bigness' of the font.
# @param rotation [Numeric] Angle between 0 and 360 degrees signifying rotation of text.
# @param halign [Symbol] Horizontal alignment of the text from Artist::Text::HAlignment.
# @param valign [Symbol] Vertical alignment of the text from Artist::Text::VAlignment
Write text anywhere on the canvas. abs_x and abs_y should be specified in terms
of Rubyplot Artist Co-ordinates.
Write text anywhere on the canvas . abs_x and abs_y should be specified in terms of Rubyplot Artist Co - ordinates .
def draw_text(text,color:,font: nil,size:,
        font_weight: nil, halign: nil, valign: nil,
        abs_x:, abs_y:,rotation: nil, stroke: nil, abs: false)
        raise NotImplementedError, "not implemented for #{__method__}."
      end
def draw_text ( text , color : , font : nil , size : , font_weight : nil , halign : nil , valign : nil , abs_x : , abs_y : , rotation : nil , stroke : nil , abs : false ) raise NotImplementedError , "not implemented for #{__method__}." end
Write text anywhere on the canvas.
Write text anywhere on the canvas .
text
String of text to write.
String of text to write .
color
font
Name of the font.
Name of the font .
size
Size of the font.
Size of the font .
font_weight
Measure of 'bigness' of the font.
Measure of ' bigness ' of the font .
halign
Horizontal alignment of the text from Artist::Text::HAlignment.
Horizontal alignment of the text from Artist :: Text :: HAlignment .
valign
Vertical alignment of the text from Artist::Text::VAlignment
Vertical alignment of the text from Artist :: Text :: VAlignment
abs_x
X co-ordinate of the text in Rubyplot Artist Co-ordinates.
X co - ordinate of the text in Rubyplot Artist Co - ordinates .
abs_y
Y co-ordinate of the text in Rubyplot Aritst Co-ordinates.
Y co - ordinate of the text in Rubyplot Aritst Co - ordinates .
rotation
Angle between 0 and 360 degrees signifying rotation of text.
Angle between 0 and 360 degrees signifying rotation of text .
stroke
abs
font_color
Color of the font from Rubyplot::Colors.
Color of the font from Rubyplot :: Colors .