Class: CTioga2::Graphics::Styles::HistogramStyle
- Inherits:
-
BasicStyle
- Object
- BasicStyle
- CTioga2::Graphics::Styles::HistogramStyle
- Defined in:
- lib/ctioga2/graphics/styles/plot-types.rb
Overview
This class defines various informations about the look of histograms.
Constant Summary
Constants inherited from BasicStyle
BasicStyle::AllStyles, BasicStyle::OldAttrAccessor
Instance Method Summary collapse
Methods inherited from BasicStyle
alias_for, attr_accessor, attribute_type, attribute_types, attributes, deprecated_attribute, from_hash, inherited, #instance_variable_defined?, options_hash, sub_style, sub_styles, #to_hash, typed_attribute, #update_from_other
Instance Method Details
#set_from_hash(hash, name = "%s") ⇒ Object
154 155 156 157 158 159 160 161 162 163 |
# File 'lib/ctioga2/graphics/styles/plot-types.rb', line 154 def set_from_hash(hash, name = "%s") super if @cumulative == :next @last_neg ||= 0 @last_neg -= 1 @cumulative = @last_neg end end |