Module: CodeRunner::Trinity::TrinityMultiKits

Included in:
CodeRunner::Trinity
Defined in:
lib/trinitycrmod/graphs.rb

Instance Method Summary collapse

Instance Method Details

#calibration_graphkit(options) ⇒ Object



174
175
176
177
178
179
180
181
182
183
184
185
# File 'lib/trinitycrmod/graphs.rb', line 174

def calibration_graphkit(options)
  kit = GraphKit::MultiKit.new(
    [
      ion_hflux_calibration_graphkit(options),
      eln_hflux_calibration_graphkit(options),
      pflux_calibration_graphkit(options)
    ]
  )
  kit.gp.multiplot = "layout 2,2"
  kit.gp.key = "tmargin"
  kit
end

#profiles_graphkit(options) ⇒ Object



153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
# File 'lib/trinitycrmod/graphs.rb', line 153

def profiles_graphkit(options)
  kit = GraphKit::MultiKit.new(
    [
      ion_temp_prof_graphkit(options),
      eln_temp_prof_graphkit(options),
      dens_prof_graphkit(options),
      ang_mom_prof_graphkit(options)
  ]
  )
  kit.each{|k| k.title = nil}
  if options[:horizontal]
    kit.slice(0..2).each{|k| k.xlabel = nil; k.gp.xtics = "format ''"}
    kit[3].gp.xtics = 'format "%2.1f"'
  else
    kit.values_at(0,2).each{|k| k.xlabel = nil; k.gp.xtics = "format ''"}
    kit.gp.multiplot = "layout 2,2"
    kit.gp.key = "tmargin"
  end
  kit

end