152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
|
# File 'lib/trinitycrmod/graphs.rb', line 152
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
|