Class: CTioga2::Graphics::Styles::HistogramStyle

Inherits:
BasicStyle
  • Object
show all
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, aliases, attr_accessor, attribute_type, attribute_types, attributes, convert_string_hash, defined_aliases, deprecated_attribute, from_hash, inherited, #instance_variable_defined?, normalize_hash, normalize_in, normalize_out, options_hash, sub_style, sub_styles, #to_hash, typed_attribute, #update_from_other, #use_defaults_from

Instance Method Details

#set_from_hash(hash, name = "%s") ⇒ Object



188
189
190
191
192
193
194
195
196
197
# File 'lib/ctioga2/graphics/styles/plot-types.rb', line 188

def set_from_hash(hash, name = "%s")
  super

  if @cumulative == :next
    @last_neg ||= 0
    @last_neg -= 1
    @cumulative = @last_neg
  end
    
end