Class: RubyPost::Plot

Inherits:
GraphDataOption show all
Defined in:
lib/graph.rb

Overview

wraps the plot option for the graph macro

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(p = 'btex $\bullet$ etex') ⇒ Plot

default is a latex bullet



172
173
174
# File 'lib/graph.rb', line 172

def initialize(p='btex $\bullet$ etex')
  @dot_type = p
end

Instance Attribute Details

#dot_type=(value) ⇒ Object (writeonly)

Sets the attribute dot_type

Parameters:

  • value

    the value to set the attribute dot_type to.



169
170
171
# File 'lib/graph.rb', line 169

def dot_type=(value)
  @dot_type = value
end

Instance Method Details

#compileObject



176
177
178
# File 'lib/graph.rb', line 176

def compile
  'plot ' + @dot_type.compile
end