130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
|
# File 'lib/trinitycrmod/graphs.rb', line 130
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
|