Class: YouPlot::Parameters
- Inherits:
-
Struct
- Object
- Struct
- YouPlot::Parameters
- Defined in:
- lib/youplot/parameters.rb
Overview
UnicodePlot parameters. Why Struct, not Hash?
-
The keys are static in Struct.
-
Struct does not conflict with keyword arguments. Hash dose.
Instance Attribute Summary collapse
-
#border ⇒ Object
Returns the value of attribute border.
-
#canvas ⇒ Object
Returns the value of attribute canvas.
-
#closed ⇒ Object
Returns the value of attribute closed.
-
#color ⇒ Object
Returns the value of attribute color.
-
#grid ⇒ Object
Returns the value of attribute grid.
-
#height ⇒ Object
Returns the value of attribute height.
-
#labels ⇒ Object
Returns the value of attribute labels.
-
#margin ⇒ Object
Returns the value of attribute margin.
-
#name ⇒ Object
Returns the value of attribute name.
-
#nbins ⇒ Object
Returns the value of attribute nbins.
-
#padding ⇒ Object
Returns the value of attribute padding.
-
#symbol ⇒ Object
Returns the value of attribute symbol.
-
#title ⇒ Object
Returns the value of attribute title.
-
#width ⇒ Object
Returns the value of attribute width.
-
#xlabel ⇒ Object
Returns the value of attribute xlabel.
-
#xlim ⇒ Object
Returns the value of attribute xlim.
-
#xscale ⇒ Object
Returns the value of attribute xscale.
-
#ylabel ⇒ Object
Returns the value of attribute ylabel.
-
#ylim ⇒ Object
Returns the value of attribute ylim.
Instance Method Summary collapse
Instance Attribute Details
#border ⇒ Object
Returns the value of attribute border
8 9 10 |
# File 'lib/youplot/parameters.rb', line 8 def border @border end |
#canvas ⇒ Object
Returns the value of attribute canvas
8 9 10 |
# File 'lib/youplot/parameters.rb', line 8 def canvas @canvas end |
#closed ⇒ Object
Returns the value of attribute closed
8 9 10 |
# File 'lib/youplot/parameters.rb', line 8 def closed @closed end |
#color ⇒ Object
Returns the value of attribute color
8 9 10 |
# File 'lib/youplot/parameters.rb', line 8 def color @color end |
#grid ⇒ Object
Returns the value of attribute grid
8 9 10 |
# File 'lib/youplot/parameters.rb', line 8 def grid @grid end |
#height ⇒ Object
Returns the value of attribute height
8 9 10 |
# File 'lib/youplot/parameters.rb', line 8 def height @height end |
#labels ⇒ Object
Returns the value of attribute labels
8 9 10 |
# File 'lib/youplot/parameters.rb', line 8 def labels @labels end |
#margin ⇒ Object
Returns the value of attribute margin
8 9 10 |
# File 'lib/youplot/parameters.rb', line 8 def margin @margin end |
#name ⇒ Object
Returns the value of attribute name
8 9 10 |
# File 'lib/youplot/parameters.rb', line 8 def name @name end |
#nbins ⇒ Object
Returns the value of attribute nbins
8 9 10 |
# File 'lib/youplot/parameters.rb', line 8 def nbins @nbins end |
#padding ⇒ Object
Returns the value of attribute padding
8 9 10 |
# File 'lib/youplot/parameters.rb', line 8 def padding @padding end |
#symbol ⇒ Object
Returns the value of attribute symbol
8 9 10 |
# File 'lib/youplot/parameters.rb', line 8 def symbol @symbol end |
#title ⇒ Object
Returns the value of attribute title
8 9 10 |
# File 'lib/youplot/parameters.rb', line 8 def title @title end |
#width ⇒ Object
Returns the value of attribute width
8 9 10 |
# File 'lib/youplot/parameters.rb', line 8 def width @width end |
#xlabel ⇒ Object
Returns the value of attribute xlabel
8 9 10 |
# File 'lib/youplot/parameters.rb', line 8 def xlabel @xlabel end |
#xlim ⇒ Object
Returns the value of attribute xlim
8 9 10 |
# File 'lib/youplot/parameters.rb', line 8 def xlim @xlim end |
#xscale ⇒ Object
Returns the value of attribute xscale
8 9 10 |
# File 'lib/youplot/parameters.rb', line 8 def xscale @xscale end |
#ylabel ⇒ Object
Returns the value of attribute ylabel
8 9 10 |
# File 'lib/youplot/parameters.rb', line 8 def ylabel @ylabel end |
#ylim ⇒ Object
Returns the value of attribute ylim
8 9 10 |
# File 'lib/youplot/parameters.rb', line 8 def ylim @ylim end |
Instance Method Details
#to_hc ⇒ Object
30 31 32 |
# File 'lib/youplot/parameters.rb', line 30 def to_hc to_h.compact end |