Class: RubyPost::AbstractPlot
- Inherits:
-
BaseDrawCommand
- Object
- Object
- BaseDrawCommand
- RubyPost::AbstractPlot
- Defined in:
- lib/simpleplot.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#x ⇒ Object
writeonly
Sets the attribute x.
-
#y ⇒ Object
writeonly
Sets the attribute y.
Attributes inherited from BaseDrawCommand
Instance Method Summary collapse
-
#initialize ⇒ AbstractPlot
constructor
A new instance of AbstractPlot.
- #xmax ⇒ Object
- #xmin ⇒ Object
- #ymax ⇒ Object
- #ymin ⇒ Object
Methods inherited from BaseDrawCommand
#add_option, #color, #colour, #compile_options, #rotate, #scale, #set_drawable, #translate
Methods inherited from Object
Constructor Details
#initialize ⇒ AbstractPlot
Returns a new instance of AbstractPlot.
111 112 113 |
# File 'lib/simpleplot.rb', line 111 def initialize() super() end |
Instance Attribute Details
#x=(value) ⇒ Object (writeonly)
Sets the attribute x
109 110 111 |
# File 'lib/simpleplot.rb', line 109 def x=(value) @x = value end |
#y=(value) ⇒ Object (writeonly)
Sets the attribute y
109 110 111 |
# File 'lib/simpleplot.rb', line 109 def y=(value) @y = value end |
Instance Method Details
#xmax ⇒ Object
115 116 117 |
# File 'lib/simpleplot.rb', line 115 def xmax @x.max end |
#xmin ⇒ Object
119 120 121 |
# File 'lib/simpleplot.rb', line 119 def xmin @x.min end |
#ymax ⇒ Object
123 124 125 |
# File 'lib/simpleplot.rb', line 123 def ymax @y.max end |
#ymin ⇒ Object
127 128 129 |
# File 'lib/simpleplot.rb', line 127 def ymin @y.min end |