lib/trinitycrmod/graphs.rb in trinitycrmod-0.2.0 vs lib/trinitycrmod/graphs.rb in trinitycrmod-0.2.1
- old
+ new
@@ -8,11 +8,14 @@
#p rho_array, array
GraphKit.autocreate(x: {data: rho_array[it].to_gslv, title: 'rho', units: ''},
y: {data: array[it].to_gslv, title: options[:title]||"", units: options[:units]||""}
)
end
+ def ang_mom_prof_graphkit(options)
+ return nt_prof_graphkit(options.dup.absorb({header: /ang\s+mom/, title: 'Angular Momentum', units: ''}))
+ end
def ion_temp_prof_graphkit(options)
- return nt_prof_graphkit(options.dup.absorb({header: /i\+ temp/}))
+ return nt_prof_graphkit(options.dup.absorb({header: /i\+ temp/, title: 'Ti', units: 'keV'}))
end
end
include TrinityGraphKits