<s> from __future__ import absolute_import <EOL> from openpyxl . compat import unicode <EOL> from openpyxl . descriptors . serialisable import Serialisable <EOL> from openpyxl . descriptors import ( <EOL> Typed , <EOL> String , <EOL> Integer , <EOL> Bool , <EOL> Alias , <EOL> Sequence , <EOL> ) <EOL> from openpyxl . descriptors . excel import ExtensionList <EOL> from openpyxl . descriptors . nested import ( <EOL> NestedInteger , <EOL> NestedBool , <EOL> NestedNoneSet , <EOL> NestedText , <EOL> ) <EOL> from . shapes import ShapeProperties <EOL> from . data_source import ( <EOL> AxDataSource , <EOL> NumDataSource , <EOL> NumRef , <EOL> StrRef , <EOL> ) <EOL> from . error_bar import ErrorBars <EOL> from . label import DataLabels <EOL> from . marker import DataPoint , PictureOptions , Marker <EOL> from . trendline import Trendline <EOL> attribute_mapping = { <EOL> '<STR_LIT>' : ( '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , <EOL> '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , ) , <EOL> '<STR_LIT:bar>' : ( '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , <EOL> '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' ) , <EOL> '<STR_LIT>' : ( '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , <EOL> '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' ) , <EOL> '<STR_LIT>' : ( '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , <EOL> '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' ) , <EOL> '<STR_LIT>' : ( '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' ) , <EOL> '<STR_LIT>' : ( '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' ) , <EOL> '<STR_LIT>' : ( '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , <EOL> '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' ) , <EOL> '<STR_LIT>' : ( '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' ) , <EOL> } <EOL> class SeriesLabel ( Serialisable ) : <EOL> tagname = "<STR_LIT>" <EOL> strRef = Typed ( expected_type = StrRef , allow_none = True ) <EOL> v = NestedText ( expected_type = unicode , allow_none = True ) <EOL> value = Alias ( '<STR_LIT:v>' ) <EOL> __elements__ = ( '<STR_LIT>' , '<STR_LIT:v>' ) <EOL> def __init__ ( self , <EOL> strRef = None , <EOL> v = None ) : <EOL> self . strRef = strRef <EOL> self . v = v <EOL> class Series ( Serialisable ) : <EOL> """<STR_LIT>""" <EOL> tagname = "<STR_LIT>" <EOL> idx = NestedInteger ( ) <EOL> order = NestedInteger ( ) <EOL> tx = Typed ( expected_type = SeriesLabel , allow_none = True ) <EOL> title = Alias ( '<STR_LIT>' ) <EOL> spPr = Typed ( expected_type = ShapeProperties , allow_none = True ) <EOL> shapeProperties = Alias ( '<STR_LIT>' ) <EOL> pictureOptions = Typed ( expected_type = PictureOptions , allow_none = True ) <EOL> dPt = Sequence ( expected_type = DataPoint , allow_none = True ) <EOL> data_points = Alias ( "<STR_LIT>" ) <EOL> dLbls = Typed ( expected_type = DataLabels , allow_none = True ) <EOL> labels = Alias ( "<STR_LIT>" ) <EOL> trendline = Typed ( expected_type = Trendline , allow_none = True ) <EOL> errBars = Typed ( expected_type = ErrorBars , allow_none = True ) <EOL> cat = Typed ( expected_type = AxDataSource , allow_none = True ) <EOL> identifiers = Alias ( "<STR_LIT>" ) <EOL> val = Typed ( expected_type = NumDataSource , allow_none = True ) <EOL> extLst = Typed ( expected_type = ExtensionList , allow_none = True ) <EOL> invertIfNegative = NestedBool ( allow_none = True ) <EOL> shape = NestedNoneSet ( values = ( [ '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' , '<STR_LIT>' ] ) ) <EOL> xVal = Typed ( expected_type = AxDataSource , allow_none = True ) <EOL> yVal = Typed ( expected_type = NumDataSource , allow_none = True ) <EOL> bubbleSize = Typed ( expected_type = NumDataSource , allow_none = True ) <EOL> zVal = Alias ( "<STR_LIT>" ) <EOL> bubble3D = NestedBool ( allow_none = True ) <EOL> marker = Typed ( expected_type = Marker , allow_none = True ) <EOL> smooth = NestedBool ( allow_none = True ) <EOL> explosion = NestedInteger ( allow_none = True ) <EOL> __elements__ = ( ) <EOL> def __init__ ( self , <EOL> idx = <NUM_LIT:0> , <EOL> order = <NUM_LIT:0> , <EOL> tx = None , <EOL> spPr = None , <EOL> pictureOptions = None , <EOL> dPt = ( ) , <EOL> dLbls = None , <EOL> trendline = None , <EOL> errBars = None , <EOL> cat = None , <EOL> val = None , <EOL> invertIfNegative = None , <EOL> shape = None , <EOL> xVal = None , <EOL> yVal = None , <EOL> bubbleSize = None , <EOL> bubble3D = None , <EOL> marker = None , <EOL> smooth = None , <EOL> explosion = None <EOL> ) : <EOL> self . idx = idx <EOL> self . order = order <EOL> self . tx = tx <EOL> if spPr is None : <EOL> spPr = ShapeProperties ( ) <EOL> self . spPr = spPr <EOL> self . pictureOptions = pictureOptions <EOL> self . dPt = dPt <EOL> self . dLbls = dLbls <EOL> self . trendline = trendline <EOL> self . errBars = errBars <EOL> self . cat = cat <EOL> self . val = val <EOL> self . invertIfNegative = invertIfNegative <EOL> self . shape = shape <EOL> self . xVal = xVal <EOL> self . yVal = yVal <EOL> self . bubbleSize = bubbleSize <EOL> self . bubble3D = bubble3D <EOL> if marker is None : <EOL> marker = Marker ( ) <EOL> self . marker = marker <EOL> self . smooth = smooth <EOL> self . explosion = explosion <EOL> def to_tree ( self , tagname = None , idx = None ) : <EOL> if idx is not None : <EOL> if self . order == self . idx : <EOL> self . order = idx <EOL> self . idx = idx <EOL> return super ( Series , self ) . to_tree ( tagname ) <EOL> class XYSeries ( Series ) : <EOL> """<STR_LIT>""" <EOL> idx = Series . idx <EOL> order = Series . order <EOL> tx = Series . tx <EOL> spPr = Series . spPr <EOL> dPt = Series . dPt <EOL> dLbls = Series . dLbls <EOL> trendline = Series . trendline <EOL> errBars = Series . errBars <EOL> xVal = Series . xVal <EOL> yVal = Series . yVal <EOL> invertIfNegative = Series . invertIfNegative <EOL> bubbleSize = Series . bubbleSize <EOL> bubble3D = Series . bubble3D <EOL> marker = Series . marker <EOL> smooth = Series . smooth </s>
