diff --git a/codegen/datatypes.py b/codegen/datatypes.py index 483043c5ca9..a0df41878ce 100644 --- a/codegen/datatypes.py +++ b/codegen/datatypes.py @@ -242,7 +242,8 @@ def __init__(self""") name_prop = subtype_node.name_property buffer.write(f""" _v = arg.pop('{name_prop}', None) - self.{name_prop} = {name_prop} if {name_prop} is not None else _v""") + self['{name_prop}'] = {name_prop} \ +if {name_prop} is not None else _v""") # ### Literals ### if literal_nodes: diff --git a/plotly/basedatatypes.py b/plotly/basedatatypes.py index 16921089d5c..831ef437a43 100644 --- a/plotly/basedatatypes.py +++ b/plotly/basedatatypes.py @@ -2066,6 +2066,54 @@ def to_plotly_json(self): """ return self.to_dict() + @staticmethod + def _to_ordered_dict(d, skip_uid=False): + """ + Static helper for converting dict or list to structure of ordered + dictionaries + """ + if isinstance(d, dict): + # d is a dict + result = collections.OrderedDict() + for key in sorted(d.keys()): + if skip_uid and key == 'uid': + continue + else: + result[key] = BaseFigure._to_ordered_dict( + d[key], skip_uid=skip_uid) + + elif isinstance(d, list) and d and isinstance(d[0], dict): + # d is a list of dicts + result = [BaseFigure._to_ordered_dict(el, skip_uid=skip_uid) + for el in d] + else: + result = d + + return result + + def to_ordered_dict(self, skip_uid=True): + + # Initialize resulting OrderedDict + # -------------------------------- + result = collections.OrderedDict() + + # Handle data + # ----------- + result['data'] = BaseFigure._to_ordered_dict(self._data, + skip_uid=skip_uid) + + # Handle layout + # ------------- + result['layout'] = BaseFigure._to_ordered_dict(self._layout) + + # Handle frames + # ------------- + if self._frame_objs: + frames_props = [frame._props for frame in self._frame_objs] + result['frames'] = BaseFigure._to_ordered_dict(frames_props) + + return result + # Static helpers # -------------- @staticmethod diff --git a/plotly/graph_objs/_area.py b/plotly/graph_objs/_area.py index 599ec4b9a11..c4e4c9b18fd 100644 --- a/plotly/graph_objs/_area.py +++ b/plotly/graph_objs/_area.py @@ -740,45 +740,47 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('customdata', None) - self.customdata = customdata if customdata is not None else _v + self['customdata'] = customdata if customdata is not None else _v _v = arg.pop('customdatasrc', None) - self.customdatasrc = customdatasrc if customdatasrc is not None else _v + self['customdatasrc' + ] = customdatasrc if customdatasrc is not None else _v _v = arg.pop('hoverinfo', None) - self.hoverinfo = hoverinfo if hoverinfo is not None else _v + self['hoverinfo'] = hoverinfo if hoverinfo is not None else _v _v = arg.pop('hoverinfosrc', None) - self.hoverinfosrc = hoverinfosrc if hoverinfosrc is not None else _v + self['hoverinfosrc'] = hoverinfosrc if hoverinfosrc is not None else _v _v = arg.pop('hoverlabel', None) - self.hoverlabel = hoverlabel if hoverlabel is not None else _v + self['hoverlabel'] = hoverlabel if hoverlabel is not None else _v _v = arg.pop('ids', None) - self.ids = ids if ids is not None else _v + self['ids'] = ids if ids is not None else _v _v = arg.pop('idssrc', None) - self.idssrc = idssrc if idssrc is not None else _v + self['idssrc'] = idssrc if idssrc is not None else _v _v = arg.pop('legendgroup', None) - self.legendgroup = legendgroup if legendgroup is not None else _v + self['legendgroup'] = legendgroup if legendgroup is not None else _v _v = arg.pop('marker', None) - self.marker = marker if marker is not None else _v + self['marker'] = marker if marker is not None else _v _v = arg.pop('name', None) - self.name = name if name is not None else _v + self['name'] = name if name is not None else _v _v = arg.pop('opacity', None) - self.opacity = opacity if opacity is not None else _v + self['opacity'] = opacity if opacity is not None else _v _v = arg.pop('r', None) - self.r = r if r is not None else _v + self['r'] = r if r is not None else _v _v = arg.pop('rsrc', None) - self.rsrc = rsrc if rsrc is not None else _v + self['rsrc'] = rsrc if rsrc is not None else _v _v = arg.pop('selectedpoints', None) - self.selectedpoints = selectedpoints if selectedpoints is not None else _v + self['selectedpoints' + ] = selectedpoints if selectedpoints is not None else _v _v = arg.pop('showlegend', None) - self.showlegend = showlegend if showlegend is not None else _v + self['showlegend'] = showlegend if showlegend is not None else _v _v = arg.pop('stream', None) - self.stream = stream if stream is not None else _v + self['stream'] = stream if stream is not None else _v _v = arg.pop('t', None) - self.t = t if t is not None else _v + self['t'] = t if t is not None else _v _v = arg.pop('tsrc', None) - self.tsrc = tsrc if tsrc is not None else _v + self['tsrc'] = tsrc if tsrc is not None else _v _v = arg.pop('uid', None) - self.uid = uid if uid is not None else _v + self['uid'] = uid if uid is not None else _v _v = arg.pop('visible', None) - self.visible = visible if visible is not None else _v + self['visible'] = visible if visible is not None else _v # Read-only literals # ------------------ diff --git a/plotly/graph_objs/_bar.py b/plotly/graph_objs/_bar.py index 28770ca0656..bf8918c7190 100644 --- a/plotly/graph_objs/_bar.py +++ b/plotly/graph_objs/_bar.py @@ -2059,113 +2059,119 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('base', None) - self.base = base if base is not None else _v + self['base'] = base if base is not None else _v _v = arg.pop('basesrc', None) - self.basesrc = basesrc if basesrc is not None else _v + self['basesrc'] = basesrc if basesrc is not None else _v _v = arg.pop('cliponaxis', None) - self.cliponaxis = cliponaxis if cliponaxis is not None else _v + self['cliponaxis'] = cliponaxis if cliponaxis is not None else _v _v = arg.pop('constraintext', None) - self.constraintext = constraintext if constraintext is not None else _v + self['constraintext' + ] = constraintext if constraintext is not None else _v _v = arg.pop('customdata', None) - self.customdata = customdata if customdata is not None else _v + self['customdata'] = customdata if customdata is not None else _v _v = arg.pop('customdatasrc', None) - self.customdatasrc = customdatasrc if customdatasrc is not None else _v + self['customdatasrc' + ] = customdatasrc if customdatasrc is not None else _v _v = arg.pop('dx', None) - self.dx = dx if dx is not None else _v + self['dx'] = dx if dx is not None else _v _v = arg.pop('dy', None) - self.dy = dy if dy is not None else _v + self['dy'] = dy if dy is not None else _v _v = arg.pop('error_x', None) - self.error_x = error_x if error_x is not None else _v + self['error_x'] = error_x if error_x is not None else _v _v = arg.pop('error_y', None) - self.error_y = error_y if error_y is not None else _v + self['error_y'] = error_y if error_y is not None else _v _v = arg.pop('hoverinfo', None) - self.hoverinfo = hoverinfo if hoverinfo is not None else _v + self['hoverinfo'] = hoverinfo if hoverinfo is not None else _v _v = arg.pop('hoverinfosrc', None) - self.hoverinfosrc = hoverinfosrc if hoverinfosrc is not None else _v + self['hoverinfosrc'] = hoverinfosrc if hoverinfosrc is not None else _v _v = arg.pop('hoverlabel', None) - self.hoverlabel = hoverlabel if hoverlabel is not None else _v + self['hoverlabel'] = hoverlabel if hoverlabel is not None else _v _v = arg.pop('hovertext', None) - self.hovertext = hovertext if hovertext is not None else _v + self['hovertext'] = hovertext if hovertext is not None else _v _v = arg.pop('hovertextsrc', None) - self.hovertextsrc = hovertextsrc if hovertextsrc is not None else _v + self['hovertextsrc'] = hovertextsrc if hovertextsrc is not None else _v _v = arg.pop('ids', None) - self.ids = ids if ids is not None else _v + self['ids'] = ids if ids is not None else _v _v = arg.pop('idssrc', None) - self.idssrc = idssrc if idssrc is not None else _v + self['idssrc'] = idssrc if idssrc is not None else _v _v = arg.pop('insidetextfont', None) - self.insidetextfont = insidetextfont if insidetextfont is not None else _v + self['insidetextfont' + ] = insidetextfont if insidetextfont is not None else _v _v = arg.pop('legendgroup', None) - self.legendgroup = legendgroup if legendgroup is not None else _v + self['legendgroup'] = legendgroup if legendgroup is not None else _v _v = arg.pop('marker', None) - self.marker = marker if marker is not None else _v + self['marker'] = marker if marker is not None else _v _v = arg.pop('name', None) - self.name = name if name is not None else _v + self['name'] = name if name is not None else _v _v = arg.pop('offset', None) - self.offset = offset if offset is not None else _v + self['offset'] = offset if offset is not None else _v _v = arg.pop('offsetsrc', None) - self.offsetsrc = offsetsrc if offsetsrc is not None else _v + self['offsetsrc'] = offsetsrc if offsetsrc is not None else _v _v = arg.pop('opacity', None) - self.opacity = opacity if opacity is not None else _v + self['opacity'] = opacity if opacity is not None else _v _v = arg.pop('orientation', None) - self.orientation = orientation if orientation is not None else _v + self['orientation'] = orientation if orientation is not None else _v _v = arg.pop('outsidetextfont', None) - self.outsidetextfont = outsidetextfont if outsidetextfont is not None else _v + self['outsidetextfont' + ] = outsidetextfont if outsidetextfont is not None else _v _v = arg.pop('r', None) - self.r = r if r is not None else _v + self['r'] = r if r is not None else _v _v = arg.pop('rsrc', None) - self.rsrc = rsrc if rsrc is not None else _v + self['rsrc'] = rsrc if rsrc is not None else _v _v = arg.pop('selected', None) - self.selected = selected if selected is not None else _v + self['selected'] = selected if selected is not None else _v _v = arg.pop('selectedpoints', None) - self.selectedpoints = selectedpoints if selectedpoints is not None else _v + self['selectedpoints' + ] = selectedpoints if selectedpoints is not None else _v _v = arg.pop('showlegend', None) - self.showlegend = showlegend if showlegend is not None else _v + self['showlegend'] = showlegend if showlegend is not None else _v _v = arg.pop('stream', None) - self.stream = stream if stream is not None else _v + self['stream'] = stream if stream is not None else _v _v = arg.pop('t', None) - self.t = t if t is not None else _v + self['t'] = t if t is not None else _v _v = arg.pop('text', None) - self.text = text if text is not None else _v + self['text'] = text if text is not None else _v _v = arg.pop('textfont', None) - self.textfont = textfont if textfont is not None else _v + self['textfont'] = textfont if textfont is not None else _v _v = arg.pop('textposition', None) - self.textposition = textposition if textposition is not None else _v + self['textposition'] = textposition if textposition is not None else _v _v = arg.pop('textpositionsrc', None) - self.textpositionsrc = textpositionsrc if textpositionsrc is not None else _v + self['textpositionsrc' + ] = textpositionsrc if textpositionsrc is not None else _v _v = arg.pop('textsrc', None) - self.textsrc = textsrc if textsrc is not None else _v + self['textsrc'] = textsrc if textsrc is not None else _v _v = arg.pop('tsrc', None) - self.tsrc = tsrc if tsrc is not None else _v + self['tsrc'] = tsrc if tsrc is not None else _v _v = arg.pop('uid', None) - self.uid = uid if uid is not None else _v + self['uid'] = uid if uid is not None else _v _v = arg.pop('unselected', None) - self.unselected = unselected if unselected is not None else _v + self['unselected'] = unselected if unselected is not None else _v _v = arg.pop('visible', None) - self.visible = visible if visible is not None else _v + self['visible'] = visible if visible is not None else _v _v = arg.pop('width', None) - self.width = width if width is not None else _v + self['width'] = width if width is not None else _v _v = arg.pop('widthsrc', None) - self.widthsrc = widthsrc if widthsrc is not None else _v + self['widthsrc'] = widthsrc if widthsrc is not None else _v _v = arg.pop('x', None) - self.x = x if x is not None else _v + self['x'] = x if x is not None else _v _v = arg.pop('x0', None) - self.x0 = x0 if x0 is not None else _v + self['x0'] = x0 if x0 is not None else _v _v = arg.pop('xaxis', None) - self.xaxis = xaxis if xaxis is not None else _v + self['xaxis'] = xaxis if xaxis is not None else _v _v = arg.pop('xcalendar', None) - self.xcalendar = xcalendar if xcalendar is not None else _v + self['xcalendar'] = xcalendar if xcalendar is not None else _v _v = arg.pop('xsrc', None) - self.xsrc = xsrc if xsrc is not None else _v + self['xsrc'] = xsrc if xsrc is not None else _v _v = arg.pop('y', None) - self.y = y if y is not None else _v + self['y'] = y if y is not None else _v _v = arg.pop('y0', None) - self.y0 = y0 if y0 is not None else _v + self['y0'] = y0 if y0 is not None else _v _v = arg.pop('yaxis', None) - self.yaxis = yaxis if yaxis is not None else _v + self['yaxis'] = yaxis if yaxis is not None else _v _v = arg.pop('ycalendar', None) - self.ycalendar = ycalendar if ycalendar is not None else _v + self['ycalendar'] = ycalendar if ycalendar is not None else _v _v = arg.pop('ysrc', None) - self.ysrc = ysrc if ysrc is not None else _v + self['ysrc'] = ysrc if ysrc is not None else _v # Read-only literals # ------------------ diff --git a/plotly/graph_objs/_box.py b/plotly/graph_objs/_box.py index 16024facd18..878277093f3 100644 --- a/plotly/graph_objs/_box.py +++ b/plotly/graph_objs/_box.py @@ -1487,87 +1487,89 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('boxmean', None) - self.boxmean = boxmean if boxmean is not None else _v + self['boxmean'] = boxmean if boxmean is not None else _v _v = arg.pop('boxpoints', None) - self.boxpoints = boxpoints if boxpoints is not None else _v + self['boxpoints'] = boxpoints if boxpoints is not None else _v _v = arg.pop('customdata', None) - self.customdata = customdata if customdata is not None else _v + self['customdata'] = customdata if customdata is not None else _v _v = arg.pop('customdatasrc', None) - self.customdatasrc = customdatasrc if customdatasrc is not None else _v + self['customdatasrc' + ] = customdatasrc if customdatasrc is not None else _v _v = arg.pop('fillcolor', None) - self.fillcolor = fillcolor if fillcolor is not None else _v + self['fillcolor'] = fillcolor if fillcolor is not None else _v _v = arg.pop('hoverinfo', None) - self.hoverinfo = hoverinfo if hoverinfo is not None else _v + self['hoverinfo'] = hoverinfo if hoverinfo is not None else _v _v = arg.pop('hoverinfosrc', None) - self.hoverinfosrc = hoverinfosrc if hoverinfosrc is not None else _v + self['hoverinfosrc'] = hoverinfosrc if hoverinfosrc is not None else _v _v = arg.pop('hoverlabel', None) - self.hoverlabel = hoverlabel if hoverlabel is not None else _v + self['hoverlabel'] = hoverlabel if hoverlabel is not None else _v _v = arg.pop('hoveron', None) - self.hoveron = hoveron if hoveron is not None else _v + self['hoveron'] = hoveron if hoveron is not None else _v _v = arg.pop('ids', None) - self.ids = ids if ids is not None else _v + self['ids'] = ids if ids is not None else _v _v = arg.pop('idssrc', None) - self.idssrc = idssrc if idssrc is not None else _v + self['idssrc'] = idssrc if idssrc is not None else _v _v = arg.pop('jitter', None) - self.jitter = jitter if jitter is not None else _v + self['jitter'] = jitter if jitter is not None else _v _v = arg.pop('legendgroup', None) - self.legendgroup = legendgroup if legendgroup is not None else _v + self['legendgroup'] = legendgroup if legendgroup is not None else _v _v = arg.pop('line', None) - self.line = line if line is not None else _v + self['line'] = line if line is not None else _v _v = arg.pop('marker', None) - self.marker = marker if marker is not None else _v + self['marker'] = marker if marker is not None else _v _v = arg.pop('name', None) - self.name = name if name is not None else _v + self['name'] = name if name is not None else _v _v = arg.pop('notched', None) - self.notched = notched if notched is not None else _v + self['notched'] = notched if notched is not None else _v _v = arg.pop('notchwidth', None) - self.notchwidth = notchwidth if notchwidth is not None else _v + self['notchwidth'] = notchwidth if notchwidth is not None else _v _v = arg.pop('opacity', None) - self.opacity = opacity if opacity is not None else _v + self['opacity'] = opacity if opacity is not None else _v _v = arg.pop('orientation', None) - self.orientation = orientation if orientation is not None else _v + self['orientation'] = orientation if orientation is not None else _v _v = arg.pop('pointpos', None) - self.pointpos = pointpos if pointpos is not None else _v + self['pointpos'] = pointpos if pointpos is not None else _v _v = arg.pop('selected', None) - self.selected = selected if selected is not None else _v + self['selected'] = selected if selected is not None else _v _v = arg.pop('selectedpoints', None) - self.selectedpoints = selectedpoints if selectedpoints is not None else _v + self['selectedpoints' + ] = selectedpoints if selectedpoints is not None else _v _v = arg.pop('showlegend', None) - self.showlegend = showlegend if showlegend is not None else _v + self['showlegend'] = showlegend if showlegend is not None else _v _v = arg.pop('stream', None) - self.stream = stream if stream is not None else _v + self['stream'] = stream if stream is not None else _v _v = arg.pop('text', None) - self.text = text if text is not None else _v + self['text'] = text if text is not None else _v _v = arg.pop('textsrc', None) - self.textsrc = textsrc if textsrc is not None else _v + self['textsrc'] = textsrc if textsrc is not None else _v _v = arg.pop('uid', None) - self.uid = uid if uid is not None else _v + self['uid'] = uid if uid is not None else _v _v = arg.pop('unselected', None) - self.unselected = unselected if unselected is not None else _v + self['unselected'] = unselected if unselected is not None else _v _v = arg.pop('visible', None) - self.visible = visible if visible is not None else _v + self['visible'] = visible if visible is not None else _v _v = arg.pop('whiskerwidth', None) - self.whiskerwidth = whiskerwidth if whiskerwidth is not None else _v + self['whiskerwidth'] = whiskerwidth if whiskerwidth is not None else _v _v = arg.pop('x', None) - self.x = x if x is not None else _v + self['x'] = x if x is not None else _v _v = arg.pop('x0', None) - self.x0 = x0 if x0 is not None else _v + self['x0'] = x0 if x0 is not None else _v _v = arg.pop('xaxis', None) - self.xaxis = xaxis if xaxis is not None else _v + self['xaxis'] = xaxis if xaxis is not None else _v _v = arg.pop('xcalendar', None) - self.xcalendar = xcalendar if xcalendar is not None else _v + self['xcalendar'] = xcalendar if xcalendar is not None else _v _v = arg.pop('xsrc', None) - self.xsrc = xsrc if xsrc is not None else _v + self['xsrc'] = xsrc if xsrc is not None else _v _v = arg.pop('y', None) - self.y = y if y is not None else _v + self['y'] = y if y is not None else _v _v = arg.pop('y0', None) - self.y0 = y0 if y0 is not None else _v + self['y0'] = y0 if y0 is not None else _v _v = arg.pop('yaxis', None) - self.yaxis = yaxis if yaxis is not None else _v + self['yaxis'] = yaxis if yaxis is not None else _v _v = arg.pop('ycalendar', None) - self.ycalendar = ycalendar if ycalendar is not None else _v + self['ycalendar'] = ycalendar if ycalendar is not None else _v _v = arg.pop('ysrc', None) - self.ysrc = ysrc if ysrc is not None else _v + self['ysrc'] = ysrc if ysrc is not None else _v # Read-only literals # ------------------ diff --git a/plotly/graph_objs/_candlestick.py b/plotly/graph_objs/_candlestick.py index ddfa4f490d1..62324856863 100644 --- a/plotly/graph_objs/_candlestick.py +++ b/plotly/graph_objs/_candlestick.py @@ -1161,73 +1161,75 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('close', None) - self.close = close if close is not None else _v + self['close'] = close if close is not None else _v _v = arg.pop('closesrc', None) - self.closesrc = closesrc if closesrc is not None else _v + self['closesrc'] = closesrc if closesrc is not None else _v _v = arg.pop('customdata', None) - self.customdata = customdata if customdata is not None else _v + self['customdata'] = customdata if customdata is not None else _v _v = arg.pop('customdatasrc', None) - self.customdatasrc = customdatasrc if customdatasrc is not None else _v + self['customdatasrc' + ] = customdatasrc if customdatasrc is not None else _v _v = arg.pop('decreasing', None) - self.decreasing = decreasing if decreasing is not None else _v + self['decreasing'] = decreasing if decreasing is not None else _v _v = arg.pop('high', None) - self.high = high if high is not None else _v + self['high'] = high if high is not None else _v _v = arg.pop('highsrc', None) - self.highsrc = highsrc if highsrc is not None else _v + self['highsrc'] = highsrc if highsrc is not None else _v _v = arg.pop('hoverinfo', None) - self.hoverinfo = hoverinfo if hoverinfo is not None else _v + self['hoverinfo'] = hoverinfo if hoverinfo is not None else _v _v = arg.pop('hoverinfosrc', None) - self.hoverinfosrc = hoverinfosrc if hoverinfosrc is not None else _v + self['hoverinfosrc'] = hoverinfosrc if hoverinfosrc is not None else _v _v = arg.pop('hoverlabel', None) - self.hoverlabel = hoverlabel if hoverlabel is not None else _v + self['hoverlabel'] = hoverlabel if hoverlabel is not None else _v _v = arg.pop('ids', None) - self.ids = ids if ids is not None else _v + self['ids'] = ids if ids is not None else _v _v = arg.pop('idssrc', None) - self.idssrc = idssrc if idssrc is not None else _v + self['idssrc'] = idssrc if idssrc is not None else _v _v = arg.pop('increasing', None) - self.increasing = increasing if increasing is not None else _v + self['increasing'] = increasing if increasing is not None else _v _v = arg.pop('legendgroup', None) - self.legendgroup = legendgroup if legendgroup is not None else _v + self['legendgroup'] = legendgroup if legendgroup is not None else _v _v = arg.pop('line', None) - self.line = line if line is not None else _v + self['line'] = line if line is not None else _v _v = arg.pop('low', None) - self.low = low if low is not None else _v + self['low'] = low if low is not None else _v _v = arg.pop('lowsrc', None) - self.lowsrc = lowsrc if lowsrc is not None else _v + self['lowsrc'] = lowsrc if lowsrc is not None else _v _v = arg.pop('name', None) - self.name = name if name is not None else _v + self['name'] = name if name is not None else _v _v = arg.pop('opacity', None) - self.opacity = opacity if opacity is not None else _v + self['opacity'] = opacity if opacity is not None else _v _v = arg.pop('open', None) - self.open = open if open is not None else _v + self['open'] = open if open is not None else _v _v = arg.pop('opensrc', None) - self.opensrc = opensrc if opensrc is not None else _v + self['opensrc'] = opensrc if opensrc is not None else _v _v = arg.pop('selectedpoints', None) - self.selectedpoints = selectedpoints if selectedpoints is not None else _v + self['selectedpoints' + ] = selectedpoints if selectedpoints is not None else _v _v = arg.pop('showlegend', None) - self.showlegend = showlegend if showlegend is not None else _v + self['showlegend'] = showlegend if showlegend is not None else _v _v = arg.pop('stream', None) - self.stream = stream if stream is not None else _v + self['stream'] = stream if stream is not None else _v _v = arg.pop('text', None) - self.text = text if text is not None else _v + self['text'] = text if text is not None else _v _v = arg.pop('textsrc', None) - self.textsrc = textsrc if textsrc is not None else _v + self['textsrc'] = textsrc if textsrc is not None else _v _v = arg.pop('uid', None) - self.uid = uid if uid is not None else _v + self['uid'] = uid if uid is not None else _v _v = arg.pop('visible', None) - self.visible = visible if visible is not None else _v + self['visible'] = visible if visible is not None else _v _v = arg.pop('whiskerwidth', None) - self.whiskerwidth = whiskerwidth if whiskerwidth is not None else _v + self['whiskerwidth'] = whiskerwidth if whiskerwidth is not None else _v _v = arg.pop('x', None) - self.x = x if x is not None else _v + self['x'] = x if x is not None else _v _v = arg.pop('xaxis', None) - self.xaxis = xaxis if xaxis is not None else _v + self['xaxis'] = xaxis if xaxis is not None else _v _v = arg.pop('xcalendar', None) - self.xcalendar = xcalendar if xcalendar is not None else _v + self['xcalendar'] = xcalendar if xcalendar is not None else _v _v = arg.pop('xsrc', None) - self.xsrc = xsrc if xsrc is not None else _v + self['xsrc'] = xsrc if xsrc is not None else _v _v = arg.pop('yaxis', None) - self.yaxis = yaxis if yaxis is not None else _v + self['yaxis'] = yaxis if yaxis is not None else _v # Read-only literals # ------------------ diff --git a/plotly/graph_objs/_carpet.py b/plotly/graph_objs/_carpet.py index a5345aa5dad..2103450c372 100644 --- a/plotly/graph_objs/_carpet.py +++ b/plotly/graph_objs/_carpet.py @@ -1637,75 +1637,77 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('a', None) - self.a = a if a is not None else _v + self['a'] = a if a is not None else _v _v = arg.pop('a0', None) - self.a0 = a0 if a0 is not None else _v + self['a0'] = a0 if a0 is not None else _v _v = arg.pop('aaxis', None) - self.aaxis = aaxis if aaxis is not None else _v + self['aaxis'] = aaxis if aaxis is not None else _v _v = arg.pop('asrc', None) - self.asrc = asrc if asrc is not None else _v + self['asrc'] = asrc if asrc is not None else _v _v = arg.pop('b', None) - self.b = b if b is not None else _v + self['b'] = b if b is not None else _v _v = arg.pop('b0', None) - self.b0 = b0 if b0 is not None else _v + self['b0'] = b0 if b0 is not None else _v _v = arg.pop('baxis', None) - self.baxis = baxis if baxis is not None else _v + self['baxis'] = baxis if baxis is not None else _v _v = arg.pop('bsrc', None) - self.bsrc = bsrc if bsrc is not None else _v + self['bsrc'] = bsrc if bsrc is not None else _v _v = arg.pop('carpet', None) - self.carpet = carpet if carpet is not None else _v + self['carpet'] = carpet if carpet is not None else _v _v = arg.pop('cheaterslope', None) - self.cheaterslope = cheaterslope if cheaterslope is not None else _v + self['cheaterslope'] = cheaterslope if cheaterslope is not None else _v _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('customdata', None) - self.customdata = customdata if customdata is not None else _v + self['customdata'] = customdata if customdata is not None else _v _v = arg.pop('customdatasrc', None) - self.customdatasrc = customdatasrc if customdatasrc is not None else _v + self['customdatasrc' + ] = customdatasrc if customdatasrc is not None else _v _v = arg.pop('da', None) - self.da = da if da is not None else _v + self['da'] = da if da is not None else _v _v = arg.pop('db', None) - self.db = db if db is not None else _v + self['db'] = db if db is not None else _v _v = arg.pop('font', None) - self.font = font if font is not None else _v + self['font'] = font if font is not None else _v _v = arg.pop('hoverinfo', None) - self.hoverinfo = hoverinfo if hoverinfo is not None else _v + self['hoverinfo'] = hoverinfo if hoverinfo is not None else _v _v = arg.pop('hoverinfosrc', None) - self.hoverinfosrc = hoverinfosrc if hoverinfosrc is not None else _v + self['hoverinfosrc'] = hoverinfosrc if hoverinfosrc is not None else _v _v = arg.pop('hoverlabel', None) - self.hoverlabel = hoverlabel if hoverlabel is not None else _v + self['hoverlabel'] = hoverlabel if hoverlabel is not None else _v _v = arg.pop('ids', None) - self.ids = ids if ids is not None else _v + self['ids'] = ids if ids is not None else _v _v = arg.pop('idssrc', None) - self.idssrc = idssrc if idssrc is not None else _v + self['idssrc'] = idssrc if idssrc is not None else _v _v = arg.pop('legendgroup', None) - self.legendgroup = legendgroup if legendgroup is not None else _v + self['legendgroup'] = legendgroup if legendgroup is not None else _v _v = arg.pop('name', None) - self.name = name if name is not None else _v + self['name'] = name if name is not None else _v _v = arg.pop('opacity', None) - self.opacity = opacity if opacity is not None else _v + self['opacity'] = opacity if opacity is not None else _v _v = arg.pop('selectedpoints', None) - self.selectedpoints = selectedpoints if selectedpoints is not None else _v + self['selectedpoints' + ] = selectedpoints if selectedpoints is not None else _v _v = arg.pop('showlegend', None) - self.showlegend = showlegend if showlegend is not None else _v + self['showlegend'] = showlegend if showlegend is not None else _v _v = arg.pop('stream', None) - self.stream = stream if stream is not None else _v + self['stream'] = stream if stream is not None else _v _v = arg.pop('uid', None) - self.uid = uid if uid is not None else _v + self['uid'] = uid if uid is not None else _v _v = arg.pop('visible', None) - self.visible = visible if visible is not None else _v + self['visible'] = visible if visible is not None else _v _v = arg.pop('x', None) - self.x = x if x is not None else _v + self['x'] = x if x is not None else _v _v = arg.pop('xaxis', None) - self.xaxis = xaxis if xaxis is not None else _v + self['xaxis'] = xaxis if xaxis is not None else _v _v = arg.pop('xsrc', None) - self.xsrc = xsrc if xsrc is not None else _v + self['xsrc'] = xsrc if xsrc is not None else _v _v = arg.pop('y', None) - self.y = y if y is not None else _v + self['y'] = y if y is not None else _v _v = arg.pop('yaxis', None) - self.yaxis = yaxis if yaxis is not None else _v + self['yaxis'] = yaxis if yaxis is not None else _v _v = arg.pop('ysrc', None) - self.ysrc = ysrc if ysrc is not None else _v + self['ysrc'] = ysrc if ysrc is not None else _v # Read-only literals # ------------------ diff --git a/plotly/graph_objs/_choropleth.py b/plotly/graph_objs/_choropleth.py index 2155d251b48..7d0fb50d623 100644 --- a/plotly/graph_objs/_choropleth.py +++ b/plotly/graph_objs/_choropleth.py @@ -1405,73 +1405,76 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('autocolorscale', None) - self.autocolorscale = autocolorscale if autocolorscale is not None else _v + self['autocolorscale' + ] = autocolorscale if autocolorscale is not None else _v _v = arg.pop('colorbar', None) - self.colorbar = colorbar if colorbar is not None else _v + self['colorbar'] = colorbar if colorbar is not None else _v _v = arg.pop('colorscale', None) - self.colorscale = colorscale if colorscale is not None else _v + self['colorscale'] = colorscale if colorscale is not None else _v _v = arg.pop('customdata', None) - self.customdata = customdata if customdata is not None else _v + self['customdata'] = customdata if customdata is not None else _v _v = arg.pop('customdatasrc', None) - self.customdatasrc = customdatasrc if customdatasrc is not None else _v + self['customdatasrc' + ] = customdatasrc if customdatasrc is not None else _v _v = arg.pop('geo', None) - self.geo = geo if geo is not None else _v + self['geo'] = geo if geo is not None else _v _v = arg.pop('hoverinfo', None) - self.hoverinfo = hoverinfo if hoverinfo is not None else _v + self['hoverinfo'] = hoverinfo if hoverinfo is not None else _v _v = arg.pop('hoverinfosrc', None) - self.hoverinfosrc = hoverinfosrc if hoverinfosrc is not None else _v + self['hoverinfosrc'] = hoverinfosrc if hoverinfosrc is not None else _v _v = arg.pop('hoverlabel', None) - self.hoverlabel = hoverlabel if hoverlabel is not None else _v + self['hoverlabel'] = hoverlabel if hoverlabel is not None else _v _v = arg.pop('ids', None) - self.ids = ids if ids is not None else _v + self['ids'] = ids if ids is not None else _v _v = arg.pop('idssrc', None) - self.idssrc = idssrc if idssrc is not None else _v + self['idssrc'] = idssrc if idssrc is not None else _v _v = arg.pop('legendgroup', None) - self.legendgroup = legendgroup if legendgroup is not None else _v + self['legendgroup'] = legendgroup if legendgroup is not None else _v _v = arg.pop('locationmode', None) - self.locationmode = locationmode if locationmode is not None else _v + self['locationmode'] = locationmode if locationmode is not None else _v _v = arg.pop('locations', None) - self.locations = locations if locations is not None else _v + self['locations'] = locations if locations is not None else _v _v = arg.pop('locationssrc', None) - self.locationssrc = locationssrc if locationssrc is not None else _v + self['locationssrc'] = locationssrc if locationssrc is not None else _v _v = arg.pop('marker', None) - self.marker = marker if marker is not None else _v + self['marker'] = marker if marker is not None else _v _v = arg.pop('name', None) - self.name = name if name is not None else _v + self['name'] = name if name is not None else _v _v = arg.pop('opacity', None) - self.opacity = opacity if opacity is not None else _v + self['opacity'] = opacity if opacity is not None else _v _v = arg.pop('reversescale', None) - self.reversescale = reversescale if reversescale is not None else _v + self['reversescale'] = reversescale if reversescale is not None else _v _v = arg.pop('selected', None) - self.selected = selected if selected is not None else _v + self['selected'] = selected if selected is not None else _v _v = arg.pop('selectedpoints', None) - self.selectedpoints = selectedpoints if selectedpoints is not None else _v + self['selectedpoints' + ] = selectedpoints if selectedpoints is not None else _v _v = arg.pop('showlegend', None) - self.showlegend = showlegend if showlegend is not None else _v + self['showlegend'] = showlegend if showlegend is not None else _v _v = arg.pop('showscale', None) - self.showscale = showscale if showscale is not None else _v + self['showscale'] = showscale if showscale is not None else _v _v = arg.pop('stream', None) - self.stream = stream if stream is not None else _v + self['stream'] = stream if stream is not None else _v _v = arg.pop('text', None) - self.text = text if text is not None else _v + self['text'] = text if text is not None else _v _v = arg.pop('textsrc', None) - self.textsrc = textsrc if textsrc is not None else _v + self['textsrc'] = textsrc if textsrc is not None else _v _v = arg.pop('uid', None) - self.uid = uid if uid is not None else _v + self['uid'] = uid if uid is not None else _v _v = arg.pop('unselected', None) - self.unselected = unselected if unselected is not None else _v + self['unselected'] = unselected if unselected is not None else _v _v = arg.pop('visible', None) - self.visible = visible if visible is not None else _v + self['visible'] = visible if visible is not None else _v _v = arg.pop('z', None) - self.z = z if z is not None else _v + self['z'] = z if z is not None else _v _v = arg.pop('zauto', None) - self.zauto = zauto if zauto is not None else _v + self['zauto'] = zauto if zauto is not None else _v _v = arg.pop('zmax', None) - self.zmax = zmax if zmax is not None else _v + self['zmax'] = zmax if zmax is not None else _v _v = arg.pop('zmin', None) - self.zmin = zmin if zmin is not None else _v + self['zmin'] = zmin if zmin is not None else _v _v = arg.pop('zsrc', None) - self.zsrc = zsrc if zsrc is not None else _v + self['zsrc'] = zsrc if zsrc is not None else _v # Read-only literals # ------------------ diff --git a/plotly/graph_objs/_cone.py b/plotly/graph_objs/_cone.py index 24595692204..69b38045abe 100644 --- a/plotly/graph_objs/_cone.py +++ b/plotly/graph_objs/_cone.py @@ -1707,91 +1707,95 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('anchor', None) - self.anchor = anchor if anchor is not None else _v + self['anchor'] = anchor if anchor is not None else _v _v = arg.pop('autocolorscale', None) - self.autocolorscale = autocolorscale if autocolorscale is not None else _v + self['autocolorscale' + ] = autocolorscale if autocolorscale is not None else _v _v = arg.pop('cauto', None) - self.cauto = cauto if cauto is not None else _v + self['cauto'] = cauto if cauto is not None else _v _v = arg.pop('cmax', None) - self.cmax = cmax if cmax is not None else _v + self['cmax'] = cmax if cmax is not None else _v _v = arg.pop('cmin', None) - self.cmin = cmin if cmin is not None else _v + self['cmin'] = cmin if cmin is not None else _v _v = arg.pop('colorbar', None) - self.colorbar = colorbar if colorbar is not None else _v + self['colorbar'] = colorbar if colorbar is not None else _v _v = arg.pop('colorscale', None) - self.colorscale = colorscale if colorscale is not None else _v + self['colorscale'] = colorscale if colorscale is not None else _v _v = arg.pop('customdata', None) - self.customdata = customdata if customdata is not None else _v + self['customdata'] = customdata if customdata is not None else _v _v = arg.pop('customdatasrc', None) - self.customdatasrc = customdatasrc if customdatasrc is not None else _v + self['customdatasrc' + ] = customdatasrc if customdatasrc is not None else _v _v = arg.pop('hoverinfo', None) - self.hoverinfo = hoverinfo if hoverinfo is not None else _v + self['hoverinfo'] = hoverinfo if hoverinfo is not None else _v _v = arg.pop('hoverinfosrc', None) - self.hoverinfosrc = hoverinfosrc if hoverinfosrc is not None else _v + self['hoverinfosrc'] = hoverinfosrc if hoverinfosrc is not None else _v _v = arg.pop('hoverlabel', None) - self.hoverlabel = hoverlabel if hoverlabel is not None else _v + self['hoverlabel'] = hoverlabel if hoverlabel is not None else _v _v = arg.pop('ids', None) - self.ids = ids if ids is not None else _v + self['ids'] = ids if ids is not None else _v _v = arg.pop('idssrc', None) - self.idssrc = idssrc if idssrc is not None else _v + self['idssrc'] = idssrc if idssrc is not None else _v _v = arg.pop('legendgroup', None) - self.legendgroup = legendgroup if legendgroup is not None else _v + self['legendgroup'] = legendgroup if legendgroup is not None else _v _v = arg.pop('lighting', None) - self.lighting = lighting if lighting is not None else _v + self['lighting'] = lighting if lighting is not None else _v _v = arg.pop('lightposition', None) - self.lightposition = lightposition if lightposition is not None else _v + self['lightposition' + ] = lightposition if lightposition is not None else _v _v = arg.pop('name', None) - self.name = name if name is not None else _v + self['name'] = name if name is not None else _v _v = arg.pop('opacity', None) - self.opacity = opacity if opacity is not None else _v + self['opacity'] = opacity if opacity is not None else _v _v = arg.pop('reversescale', None) - self.reversescale = reversescale if reversescale is not None else _v + self['reversescale'] = reversescale if reversescale is not None else _v _v = arg.pop('scene', None) - self.scene = scene if scene is not None else _v + self['scene'] = scene if scene is not None else _v _v = arg.pop('selectedpoints', None) - self.selectedpoints = selectedpoints if selectedpoints is not None else _v + self['selectedpoints' + ] = selectedpoints if selectedpoints is not None else _v _v = arg.pop('showlegend', None) - self.showlegend = showlegend if showlegend is not None else _v + self['showlegend'] = showlegend if showlegend is not None else _v _v = arg.pop('showscale', None) - self.showscale = showscale if showscale is not None else _v + self['showscale'] = showscale if showscale is not None else _v _v = arg.pop('sizemode', None) - self.sizemode = sizemode if sizemode is not None else _v + self['sizemode'] = sizemode if sizemode is not None else _v _v = arg.pop('sizeref', None) - self.sizeref = sizeref if sizeref is not None else _v + self['sizeref'] = sizeref if sizeref is not None else _v _v = arg.pop('stream', None) - self.stream = stream if stream is not None else _v + self['stream'] = stream if stream is not None else _v _v = arg.pop('text', None) - self.text = text if text is not None else _v + self['text'] = text if text is not None else _v _v = arg.pop('textsrc', None) - self.textsrc = textsrc if textsrc is not None else _v + self['textsrc'] = textsrc if textsrc is not None else _v _v = arg.pop('u', None) - self.u = u if u is not None else _v + self['u'] = u if u is not None else _v _v = arg.pop('uid', None) - self.uid = uid if uid is not None else _v + self['uid'] = uid if uid is not None else _v _v = arg.pop('usrc', None) - self.usrc = usrc if usrc is not None else _v + self['usrc'] = usrc if usrc is not None else _v _v = arg.pop('v', None) - self.v = v if v is not None else _v + self['v'] = v if v is not None else _v _v = arg.pop('visible', None) - self.visible = visible if visible is not None else _v + self['visible'] = visible if visible is not None else _v _v = arg.pop('vsrc', None) - self.vsrc = vsrc if vsrc is not None else _v + self['vsrc'] = vsrc if vsrc is not None else _v _v = arg.pop('w', None) - self.w = w if w is not None else _v + self['w'] = w if w is not None else _v _v = arg.pop('wsrc', None) - self.wsrc = wsrc if wsrc is not None else _v + self['wsrc'] = wsrc if wsrc is not None else _v _v = arg.pop('x', None) - self.x = x if x is not None else _v + self['x'] = x if x is not None else _v _v = arg.pop('xsrc', None) - self.xsrc = xsrc if xsrc is not None else _v + self['xsrc'] = xsrc if xsrc is not None else _v _v = arg.pop('y', None) - self.y = y if y is not None else _v + self['y'] = y if y is not None else _v _v = arg.pop('ysrc', None) - self.ysrc = ysrc if ysrc is not None else _v + self['ysrc'] = ysrc if ysrc is not None else _v _v = arg.pop('z', None) - self.z = z if z is not None else _v + self['z'] = z if z is not None else _v _v = arg.pop('zsrc', None) - self.zsrc = zsrc if zsrc is not None else _v + self['zsrc'] = zsrc if zsrc is not None else _v # Read-only literals # ------------------ diff --git a/plotly/graph_objs/_contour.py b/plotly/graph_objs/_contour.py index 68f77770692..7957d32cbc3 100644 --- a/plotly/graph_objs/_contour.py +++ b/plotly/graph_objs/_contour.py @@ -1977,103 +1977,106 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('autocolorscale', None) - self.autocolorscale = autocolorscale if autocolorscale is not None else _v + self['autocolorscale' + ] = autocolorscale if autocolorscale is not None else _v _v = arg.pop('autocontour', None) - self.autocontour = autocontour if autocontour is not None else _v + self['autocontour'] = autocontour if autocontour is not None else _v _v = arg.pop('colorbar', None) - self.colorbar = colorbar if colorbar is not None else _v + self['colorbar'] = colorbar if colorbar is not None else _v _v = arg.pop('colorscale', None) - self.colorscale = colorscale if colorscale is not None else _v + self['colorscale'] = colorscale if colorscale is not None else _v _v = arg.pop('connectgaps', None) - self.connectgaps = connectgaps if connectgaps is not None else _v + self['connectgaps'] = connectgaps if connectgaps is not None else _v _v = arg.pop('contours', None) - self.contours = contours if contours is not None else _v + self['contours'] = contours if contours is not None else _v _v = arg.pop('customdata', None) - self.customdata = customdata if customdata is not None else _v + self['customdata'] = customdata if customdata is not None else _v _v = arg.pop('customdatasrc', None) - self.customdatasrc = customdatasrc if customdatasrc is not None else _v + self['customdatasrc' + ] = customdatasrc if customdatasrc is not None else _v _v = arg.pop('dx', None) - self.dx = dx if dx is not None else _v + self['dx'] = dx if dx is not None else _v _v = arg.pop('dy', None) - self.dy = dy if dy is not None else _v + self['dy'] = dy if dy is not None else _v _v = arg.pop('fillcolor', None) - self.fillcolor = fillcolor if fillcolor is not None else _v + self['fillcolor'] = fillcolor if fillcolor is not None else _v _v = arg.pop('hoverinfo', None) - self.hoverinfo = hoverinfo if hoverinfo is not None else _v + self['hoverinfo'] = hoverinfo if hoverinfo is not None else _v _v = arg.pop('hoverinfosrc', None) - self.hoverinfosrc = hoverinfosrc if hoverinfosrc is not None else _v + self['hoverinfosrc'] = hoverinfosrc if hoverinfosrc is not None else _v _v = arg.pop('hoverlabel', None) - self.hoverlabel = hoverlabel if hoverlabel is not None else _v + self['hoverlabel'] = hoverlabel if hoverlabel is not None else _v _v = arg.pop('ids', None) - self.ids = ids if ids is not None else _v + self['ids'] = ids if ids is not None else _v _v = arg.pop('idssrc', None) - self.idssrc = idssrc if idssrc is not None else _v + self['idssrc'] = idssrc if idssrc is not None else _v _v = arg.pop('legendgroup', None) - self.legendgroup = legendgroup if legendgroup is not None else _v + self['legendgroup'] = legendgroup if legendgroup is not None else _v _v = arg.pop('line', None) - self.line = line if line is not None else _v + self['line'] = line if line is not None else _v _v = arg.pop('name', None) - self.name = name if name is not None else _v + self['name'] = name if name is not None else _v _v = arg.pop('ncontours', None) - self.ncontours = ncontours if ncontours is not None else _v + self['ncontours'] = ncontours if ncontours is not None else _v _v = arg.pop('opacity', None) - self.opacity = opacity if opacity is not None else _v + self['opacity'] = opacity if opacity is not None else _v _v = arg.pop('reversescale', None) - self.reversescale = reversescale if reversescale is not None else _v + self['reversescale'] = reversescale if reversescale is not None else _v _v = arg.pop('selectedpoints', None) - self.selectedpoints = selectedpoints if selectedpoints is not None else _v + self['selectedpoints' + ] = selectedpoints if selectedpoints is not None else _v _v = arg.pop('showlegend', None) - self.showlegend = showlegend if showlegend is not None else _v + self['showlegend'] = showlegend if showlegend is not None else _v _v = arg.pop('showscale', None) - self.showscale = showscale if showscale is not None else _v + self['showscale'] = showscale if showscale is not None else _v _v = arg.pop('stream', None) - self.stream = stream if stream is not None else _v + self['stream'] = stream if stream is not None else _v _v = arg.pop('text', None) - self.text = text if text is not None else _v + self['text'] = text if text is not None else _v _v = arg.pop('textsrc', None) - self.textsrc = textsrc if textsrc is not None else _v + self['textsrc'] = textsrc if textsrc is not None else _v _v = arg.pop('transpose', None) - self.transpose = transpose if transpose is not None else _v + self['transpose'] = transpose if transpose is not None else _v _v = arg.pop('uid', None) - self.uid = uid if uid is not None else _v + self['uid'] = uid if uid is not None else _v _v = arg.pop('visible', None) - self.visible = visible if visible is not None else _v + self['visible'] = visible if visible is not None else _v _v = arg.pop('x', None) - self.x = x if x is not None else _v + self['x'] = x if x is not None else _v _v = arg.pop('x0', None) - self.x0 = x0 if x0 is not None else _v + self['x0'] = x0 if x0 is not None else _v _v = arg.pop('xaxis', None) - self.xaxis = xaxis if xaxis is not None else _v + self['xaxis'] = xaxis if xaxis is not None else _v _v = arg.pop('xcalendar', None) - self.xcalendar = xcalendar if xcalendar is not None else _v + self['xcalendar'] = xcalendar if xcalendar is not None else _v _v = arg.pop('xsrc', None) - self.xsrc = xsrc if xsrc is not None else _v + self['xsrc'] = xsrc if xsrc is not None else _v _v = arg.pop('xtype', None) - self.xtype = xtype if xtype is not None else _v + self['xtype'] = xtype if xtype is not None else _v _v = arg.pop('y', None) - self.y = y if y is not None else _v + self['y'] = y if y is not None else _v _v = arg.pop('y0', None) - self.y0 = y0 if y0 is not None else _v + self['y0'] = y0 if y0 is not None else _v _v = arg.pop('yaxis', None) - self.yaxis = yaxis if yaxis is not None else _v + self['yaxis'] = yaxis if yaxis is not None else _v _v = arg.pop('ycalendar', None) - self.ycalendar = ycalendar if ycalendar is not None else _v + self['ycalendar'] = ycalendar if ycalendar is not None else _v _v = arg.pop('ysrc', None) - self.ysrc = ysrc if ysrc is not None else _v + self['ysrc'] = ysrc if ysrc is not None else _v _v = arg.pop('ytype', None) - self.ytype = ytype if ytype is not None else _v + self['ytype'] = ytype if ytype is not None else _v _v = arg.pop('z', None) - self.z = z if z is not None else _v + self['z'] = z if z is not None else _v _v = arg.pop('zauto', None) - self.zauto = zauto if zauto is not None else _v + self['zauto'] = zauto if zauto is not None else _v _v = arg.pop('zhoverformat', None) - self.zhoverformat = zhoverformat if zhoverformat is not None else _v + self['zhoverformat'] = zhoverformat if zhoverformat is not None else _v _v = arg.pop('zmax', None) - self.zmax = zmax if zmax is not None else _v + self['zmax'] = zmax if zmax is not None else _v _v = arg.pop('zmin', None) - self.zmin = zmin if zmin is not None else _v + self['zmin'] = zmin if zmin is not None else _v _v = arg.pop('zsrc', None) - self.zsrc = zsrc if zsrc is not None else _v + self['zsrc'] = zsrc if zsrc is not None else _v # Read-only literals # ------------------ diff --git a/plotly/graph_objs/_contourcarpet.py b/plotly/graph_objs/_contourcarpet.py index 98efb967dd0..70daeaa5be6 100644 --- a/plotly/graph_objs/_contourcarpet.py +++ b/plotly/graph_objs/_contourcarpet.py @@ -1882,97 +1882,100 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('a', None) - self.a = a if a is not None else _v + self['a'] = a if a is not None else _v _v = arg.pop('a0', None) - self.a0 = a0 if a0 is not None else _v + self['a0'] = a0 if a0 is not None else _v _v = arg.pop('asrc', None) - self.asrc = asrc if asrc is not None else _v + self['asrc'] = asrc if asrc is not None else _v _v = arg.pop('atype', None) - self.atype = atype if atype is not None else _v + self['atype'] = atype if atype is not None else _v _v = arg.pop('autocolorscale', None) - self.autocolorscale = autocolorscale if autocolorscale is not None else _v + self['autocolorscale' + ] = autocolorscale if autocolorscale is not None else _v _v = arg.pop('autocontour', None) - self.autocontour = autocontour if autocontour is not None else _v + self['autocontour'] = autocontour if autocontour is not None else _v _v = arg.pop('b', None) - self.b = b if b is not None else _v + self['b'] = b if b is not None else _v _v = arg.pop('b0', None) - self.b0 = b0 if b0 is not None else _v + self['b0'] = b0 if b0 is not None else _v _v = arg.pop('bsrc', None) - self.bsrc = bsrc if bsrc is not None else _v + self['bsrc'] = bsrc if bsrc is not None else _v _v = arg.pop('btype', None) - self.btype = btype if btype is not None else _v + self['btype'] = btype if btype is not None else _v _v = arg.pop('carpet', None) - self.carpet = carpet if carpet is not None else _v + self['carpet'] = carpet if carpet is not None else _v _v = arg.pop('colorbar', None) - self.colorbar = colorbar if colorbar is not None else _v + self['colorbar'] = colorbar if colorbar is not None else _v _v = arg.pop('colorscale', None) - self.colorscale = colorscale if colorscale is not None else _v + self['colorscale'] = colorscale if colorscale is not None else _v _v = arg.pop('contours', None) - self.contours = contours if contours is not None else _v + self['contours'] = contours if contours is not None else _v _v = arg.pop('customdata', None) - self.customdata = customdata if customdata is not None else _v + self['customdata'] = customdata if customdata is not None else _v _v = arg.pop('customdatasrc', None) - self.customdatasrc = customdatasrc if customdatasrc is not None else _v + self['customdatasrc' + ] = customdatasrc if customdatasrc is not None else _v _v = arg.pop('da', None) - self.da = da if da is not None else _v + self['da'] = da if da is not None else _v _v = arg.pop('db', None) - self.db = db if db is not None else _v + self['db'] = db if db is not None else _v _v = arg.pop('fillcolor', None) - self.fillcolor = fillcolor if fillcolor is not None else _v + self['fillcolor'] = fillcolor if fillcolor is not None else _v _v = arg.pop('hoverinfo', None) - self.hoverinfo = hoverinfo if hoverinfo is not None else _v + self['hoverinfo'] = hoverinfo if hoverinfo is not None else _v _v = arg.pop('hoverinfosrc', None) - self.hoverinfosrc = hoverinfosrc if hoverinfosrc is not None else _v + self['hoverinfosrc'] = hoverinfosrc if hoverinfosrc is not None else _v _v = arg.pop('hoverlabel', None) - self.hoverlabel = hoverlabel if hoverlabel is not None else _v + self['hoverlabel'] = hoverlabel if hoverlabel is not None else _v _v = arg.pop('ids', None) - self.ids = ids if ids is not None else _v + self['ids'] = ids if ids is not None else _v _v = arg.pop('idssrc', None) - self.idssrc = idssrc if idssrc is not None else _v + self['idssrc'] = idssrc if idssrc is not None else _v _v = arg.pop('legendgroup', None) - self.legendgroup = legendgroup if legendgroup is not None else _v + self['legendgroup'] = legendgroup if legendgroup is not None else _v _v = arg.pop('line', None) - self.line = line if line is not None else _v + self['line'] = line if line is not None else _v _v = arg.pop('name', None) - self.name = name if name is not None else _v + self['name'] = name if name is not None else _v _v = arg.pop('ncontours', None) - self.ncontours = ncontours if ncontours is not None else _v + self['ncontours'] = ncontours if ncontours is not None else _v _v = arg.pop('opacity', None) - self.opacity = opacity if opacity is not None else _v + self['opacity'] = opacity if opacity is not None else _v _v = arg.pop('reversescale', None) - self.reversescale = reversescale if reversescale is not None else _v + self['reversescale'] = reversescale if reversescale is not None else _v _v = arg.pop('selectedpoints', None) - self.selectedpoints = selectedpoints if selectedpoints is not None else _v + self['selectedpoints' + ] = selectedpoints if selectedpoints is not None else _v _v = arg.pop('showlegend', None) - self.showlegend = showlegend if showlegend is not None else _v + self['showlegend'] = showlegend if showlegend is not None else _v _v = arg.pop('showscale', None) - self.showscale = showscale if showscale is not None else _v + self['showscale'] = showscale if showscale is not None else _v _v = arg.pop('stream', None) - self.stream = stream if stream is not None else _v + self['stream'] = stream if stream is not None else _v _v = arg.pop('text', None) - self.text = text if text is not None else _v + self['text'] = text if text is not None else _v _v = arg.pop('textsrc', None) - self.textsrc = textsrc if textsrc is not None else _v + self['textsrc'] = textsrc if textsrc is not None else _v _v = arg.pop('transpose', None) - self.transpose = transpose if transpose is not None else _v + self['transpose'] = transpose if transpose is not None else _v _v = arg.pop('uid', None) - self.uid = uid if uid is not None else _v + self['uid'] = uid if uid is not None else _v _v = arg.pop('visible', None) - self.visible = visible if visible is not None else _v + self['visible'] = visible if visible is not None else _v _v = arg.pop('xaxis', None) - self.xaxis = xaxis if xaxis is not None else _v + self['xaxis'] = xaxis if xaxis is not None else _v _v = arg.pop('yaxis', None) - self.yaxis = yaxis if yaxis is not None else _v + self['yaxis'] = yaxis if yaxis is not None else _v _v = arg.pop('z', None) - self.z = z if z is not None else _v + self['z'] = z if z is not None else _v _v = arg.pop('zauto', None) - self.zauto = zauto if zauto is not None else _v + self['zauto'] = zauto if zauto is not None else _v _v = arg.pop('zmax', None) - self.zmax = zmax if zmax is not None else _v + self['zmax'] = zmax if zmax is not None else _v _v = arg.pop('zmin', None) - self.zmin = zmin if zmin is not None else _v + self['zmin'] = zmin if zmin is not None else _v _v = arg.pop('zsrc', None) - self.zsrc = zsrc if zsrc is not None else _v + self['zsrc'] = zsrc if zsrc is not None else _v # Read-only literals # ------------------ diff --git a/plotly/graph_objs/_frame.py b/plotly/graph_objs/_frame.py index 9b0daff6a1c..f7ae2ccb471 100644 --- a/plotly/graph_objs/_frame.py +++ b/plotly/graph_objs/_frame.py @@ -238,17 +238,17 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('baseframe', None) - self.baseframe = baseframe if baseframe is not None else _v + self['baseframe'] = baseframe if baseframe is not None else _v _v = arg.pop('data', None) - self.data = data if data is not None else _v + self['data'] = data if data is not None else _v _v = arg.pop('group', None) - self.group = group if group is not None else _v + self['group'] = group if group is not None else _v _v = arg.pop('layout', None) - self.layout = layout if layout is not None else _v + self['layout'] = layout if layout is not None else _v _v = arg.pop('name', None) - self.name = name if name is not None else _v + self['name'] = name if name is not None else _v _v = arg.pop('traces', None) - self.traces = traces if traces is not None else _v + self['traces'] = traces if traces is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/_heatmap.py b/plotly/graph_objs/_heatmap.py index bd0f27b6d32..1d79687bccf 100644 --- a/plotly/graph_objs/_heatmap.py +++ b/plotly/graph_objs/_heatmap.py @@ -1778,99 +1778,102 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('autocolorscale', None) - self.autocolorscale = autocolorscale if autocolorscale is not None else _v + self['autocolorscale' + ] = autocolorscale if autocolorscale is not None else _v _v = arg.pop('colorbar', None) - self.colorbar = colorbar if colorbar is not None else _v + self['colorbar'] = colorbar if colorbar is not None else _v _v = arg.pop('colorscale', None) - self.colorscale = colorscale if colorscale is not None else _v + self['colorscale'] = colorscale if colorscale is not None else _v _v = arg.pop('connectgaps', None) - self.connectgaps = connectgaps if connectgaps is not None else _v + self['connectgaps'] = connectgaps if connectgaps is not None else _v _v = arg.pop('customdata', None) - self.customdata = customdata if customdata is not None else _v + self['customdata'] = customdata if customdata is not None else _v _v = arg.pop('customdatasrc', None) - self.customdatasrc = customdatasrc if customdatasrc is not None else _v + self['customdatasrc' + ] = customdatasrc if customdatasrc is not None else _v _v = arg.pop('dx', None) - self.dx = dx if dx is not None else _v + self['dx'] = dx if dx is not None else _v _v = arg.pop('dy', None) - self.dy = dy if dy is not None else _v + self['dy'] = dy if dy is not None else _v _v = arg.pop('hoverinfo', None) - self.hoverinfo = hoverinfo if hoverinfo is not None else _v + self['hoverinfo'] = hoverinfo if hoverinfo is not None else _v _v = arg.pop('hoverinfosrc', None) - self.hoverinfosrc = hoverinfosrc if hoverinfosrc is not None else _v + self['hoverinfosrc'] = hoverinfosrc if hoverinfosrc is not None else _v _v = arg.pop('hoverlabel', None) - self.hoverlabel = hoverlabel if hoverlabel is not None else _v + self['hoverlabel'] = hoverlabel if hoverlabel is not None else _v _v = arg.pop('ids', None) - self.ids = ids if ids is not None else _v + self['ids'] = ids if ids is not None else _v _v = arg.pop('idssrc', None) - self.idssrc = idssrc if idssrc is not None else _v + self['idssrc'] = idssrc if idssrc is not None else _v _v = arg.pop('legendgroup', None) - self.legendgroup = legendgroup if legendgroup is not None else _v + self['legendgroup'] = legendgroup if legendgroup is not None else _v _v = arg.pop('name', None) - self.name = name if name is not None else _v + self['name'] = name if name is not None else _v _v = arg.pop('opacity', None) - self.opacity = opacity if opacity is not None else _v + self['opacity'] = opacity if opacity is not None else _v _v = arg.pop('reversescale', None) - self.reversescale = reversescale if reversescale is not None else _v + self['reversescale'] = reversescale if reversescale is not None else _v _v = arg.pop('selectedpoints', None) - self.selectedpoints = selectedpoints if selectedpoints is not None else _v + self['selectedpoints' + ] = selectedpoints if selectedpoints is not None else _v _v = arg.pop('showlegend', None) - self.showlegend = showlegend if showlegend is not None else _v + self['showlegend'] = showlegend if showlegend is not None else _v _v = arg.pop('showscale', None) - self.showscale = showscale if showscale is not None else _v + self['showscale'] = showscale if showscale is not None else _v _v = arg.pop('stream', None) - self.stream = stream if stream is not None else _v + self['stream'] = stream if stream is not None else _v _v = arg.pop('text', None) - self.text = text if text is not None else _v + self['text'] = text if text is not None else _v _v = arg.pop('textsrc', None) - self.textsrc = textsrc if textsrc is not None else _v + self['textsrc'] = textsrc if textsrc is not None else _v _v = arg.pop('transpose', None) - self.transpose = transpose if transpose is not None else _v + self['transpose'] = transpose if transpose is not None else _v _v = arg.pop('uid', None) - self.uid = uid if uid is not None else _v + self['uid'] = uid if uid is not None else _v _v = arg.pop('visible', None) - self.visible = visible if visible is not None else _v + self['visible'] = visible if visible is not None else _v _v = arg.pop('x', None) - self.x = x if x is not None else _v + self['x'] = x if x is not None else _v _v = arg.pop('x0', None) - self.x0 = x0 if x0 is not None else _v + self['x0'] = x0 if x0 is not None else _v _v = arg.pop('xaxis', None) - self.xaxis = xaxis if xaxis is not None else _v + self['xaxis'] = xaxis if xaxis is not None else _v _v = arg.pop('xcalendar', None) - self.xcalendar = xcalendar if xcalendar is not None else _v + self['xcalendar'] = xcalendar if xcalendar is not None else _v _v = arg.pop('xgap', None) - self.xgap = xgap if xgap is not None else _v + self['xgap'] = xgap if xgap is not None else _v _v = arg.pop('xsrc', None) - self.xsrc = xsrc if xsrc is not None else _v + self['xsrc'] = xsrc if xsrc is not None else _v _v = arg.pop('xtype', None) - self.xtype = xtype if xtype is not None else _v + self['xtype'] = xtype if xtype is not None else _v _v = arg.pop('y', None) - self.y = y if y is not None else _v + self['y'] = y if y is not None else _v _v = arg.pop('y0', None) - self.y0 = y0 if y0 is not None else _v + self['y0'] = y0 if y0 is not None else _v _v = arg.pop('yaxis', None) - self.yaxis = yaxis if yaxis is not None else _v + self['yaxis'] = yaxis if yaxis is not None else _v _v = arg.pop('ycalendar', None) - self.ycalendar = ycalendar if ycalendar is not None else _v + self['ycalendar'] = ycalendar if ycalendar is not None else _v _v = arg.pop('ygap', None) - self.ygap = ygap if ygap is not None else _v + self['ygap'] = ygap if ygap is not None else _v _v = arg.pop('ysrc', None) - self.ysrc = ysrc if ysrc is not None else _v + self['ysrc'] = ysrc if ysrc is not None else _v _v = arg.pop('ytype', None) - self.ytype = ytype if ytype is not None else _v + self['ytype'] = ytype if ytype is not None else _v _v = arg.pop('z', None) - self.z = z if z is not None else _v + self['z'] = z if z is not None else _v _v = arg.pop('zauto', None) - self.zauto = zauto if zauto is not None else _v + self['zauto'] = zauto if zauto is not None else _v _v = arg.pop('zhoverformat', None) - self.zhoverformat = zhoverformat if zhoverformat is not None else _v + self['zhoverformat'] = zhoverformat if zhoverformat is not None else _v _v = arg.pop('zmax', None) - self.zmax = zmax if zmax is not None else _v + self['zmax'] = zmax if zmax is not None else _v _v = arg.pop('zmin', None) - self.zmin = zmin if zmin is not None else _v + self['zmin'] = zmin if zmin is not None else _v _v = arg.pop('zsmooth', None) - self.zsmooth = zsmooth if zsmooth is not None else _v + self['zsmooth'] = zsmooth if zsmooth is not None else _v _v = arg.pop('zsrc', None) - self.zsrc = zsrc if zsrc is not None else _v + self['zsrc'] = zsrc if zsrc is not None else _v # Read-only literals # ------------------ diff --git a/plotly/graph_objs/_heatmapgl.py b/plotly/graph_objs/_heatmapgl.py index 0a90feaf0a0..02000274352 100644 --- a/plotly/graph_objs/_heatmapgl.py +++ b/plotly/graph_objs/_heatmapgl.py @@ -1561,85 +1561,88 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('autocolorscale', None) - self.autocolorscale = autocolorscale if autocolorscale is not None else _v + self['autocolorscale' + ] = autocolorscale if autocolorscale is not None else _v _v = arg.pop('colorbar', None) - self.colorbar = colorbar if colorbar is not None else _v + self['colorbar'] = colorbar if colorbar is not None else _v _v = arg.pop('colorscale', None) - self.colorscale = colorscale if colorscale is not None else _v + self['colorscale'] = colorscale if colorscale is not None else _v _v = arg.pop('customdata', None) - self.customdata = customdata if customdata is not None else _v + self['customdata'] = customdata if customdata is not None else _v _v = arg.pop('customdatasrc', None) - self.customdatasrc = customdatasrc if customdatasrc is not None else _v + self['customdatasrc' + ] = customdatasrc if customdatasrc is not None else _v _v = arg.pop('dx', None) - self.dx = dx if dx is not None else _v + self['dx'] = dx if dx is not None else _v _v = arg.pop('dy', None) - self.dy = dy if dy is not None else _v + self['dy'] = dy if dy is not None else _v _v = arg.pop('hoverinfo', None) - self.hoverinfo = hoverinfo if hoverinfo is not None else _v + self['hoverinfo'] = hoverinfo if hoverinfo is not None else _v _v = arg.pop('hoverinfosrc', None) - self.hoverinfosrc = hoverinfosrc if hoverinfosrc is not None else _v + self['hoverinfosrc'] = hoverinfosrc if hoverinfosrc is not None else _v _v = arg.pop('hoverlabel', None) - self.hoverlabel = hoverlabel if hoverlabel is not None else _v + self['hoverlabel'] = hoverlabel if hoverlabel is not None else _v _v = arg.pop('ids', None) - self.ids = ids if ids is not None else _v + self['ids'] = ids if ids is not None else _v _v = arg.pop('idssrc', None) - self.idssrc = idssrc if idssrc is not None else _v + self['idssrc'] = idssrc if idssrc is not None else _v _v = arg.pop('legendgroup', None) - self.legendgroup = legendgroup if legendgroup is not None else _v + self['legendgroup'] = legendgroup if legendgroup is not None else _v _v = arg.pop('name', None) - self.name = name if name is not None else _v + self['name'] = name if name is not None else _v _v = arg.pop('opacity', None) - self.opacity = opacity if opacity is not None else _v + self['opacity'] = opacity if opacity is not None else _v _v = arg.pop('reversescale', None) - self.reversescale = reversescale if reversescale is not None else _v + self['reversescale'] = reversescale if reversescale is not None else _v _v = arg.pop('selectedpoints', None) - self.selectedpoints = selectedpoints if selectedpoints is not None else _v + self['selectedpoints' + ] = selectedpoints if selectedpoints is not None else _v _v = arg.pop('showlegend', None) - self.showlegend = showlegend if showlegend is not None else _v + self['showlegend'] = showlegend if showlegend is not None else _v _v = arg.pop('showscale', None) - self.showscale = showscale if showscale is not None else _v + self['showscale'] = showscale if showscale is not None else _v _v = arg.pop('stream', None) - self.stream = stream if stream is not None else _v + self['stream'] = stream if stream is not None else _v _v = arg.pop('text', None) - self.text = text if text is not None else _v + self['text'] = text if text is not None else _v _v = arg.pop('textsrc', None) - self.textsrc = textsrc if textsrc is not None else _v + self['textsrc'] = textsrc if textsrc is not None else _v _v = arg.pop('transpose', None) - self.transpose = transpose if transpose is not None else _v + self['transpose'] = transpose if transpose is not None else _v _v = arg.pop('uid', None) - self.uid = uid if uid is not None else _v + self['uid'] = uid if uid is not None else _v _v = arg.pop('visible', None) - self.visible = visible if visible is not None else _v + self['visible'] = visible if visible is not None else _v _v = arg.pop('x', None) - self.x = x if x is not None else _v + self['x'] = x if x is not None else _v _v = arg.pop('x0', None) - self.x0 = x0 if x0 is not None else _v + self['x0'] = x0 if x0 is not None else _v _v = arg.pop('xaxis', None) - self.xaxis = xaxis if xaxis is not None else _v + self['xaxis'] = xaxis if xaxis is not None else _v _v = arg.pop('xsrc', None) - self.xsrc = xsrc if xsrc is not None else _v + self['xsrc'] = xsrc if xsrc is not None else _v _v = arg.pop('xtype', None) - self.xtype = xtype if xtype is not None else _v + self['xtype'] = xtype if xtype is not None else _v _v = arg.pop('y', None) - self.y = y if y is not None else _v + self['y'] = y if y is not None else _v _v = arg.pop('y0', None) - self.y0 = y0 if y0 is not None else _v + self['y0'] = y0 if y0 is not None else _v _v = arg.pop('yaxis', None) - self.yaxis = yaxis if yaxis is not None else _v + self['yaxis'] = yaxis if yaxis is not None else _v _v = arg.pop('ysrc', None) - self.ysrc = ysrc if ysrc is not None else _v + self['ysrc'] = ysrc if ysrc is not None else _v _v = arg.pop('ytype', None) - self.ytype = ytype if ytype is not None else _v + self['ytype'] = ytype if ytype is not None else _v _v = arg.pop('z', None) - self.z = z if z is not None else _v + self['z'] = z if z is not None else _v _v = arg.pop('zauto', None) - self.zauto = zauto if zauto is not None else _v + self['zauto'] = zauto if zauto is not None else _v _v = arg.pop('zmax', None) - self.zmax = zmax if zmax is not None else _v + self['zmax'] = zmax if zmax is not None else _v _v = arg.pop('zmin', None) - self.zmin = zmin if zmin is not None else _v + self['zmin'] = zmin if zmin is not None else _v _v = arg.pop('zsrc', None) - self.zsrc = zsrc if zsrc is not None else _v + self['zsrc'] = zsrc if zsrc is not None else _v # Read-only literals # ------------------ diff --git a/plotly/graph_objs/_histogram.py b/plotly/graph_objs/_histogram.py index 76e529565d4..ca68a59dabc 100644 --- a/plotly/graph_objs/_histogram.py +++ b/plotly/graph_objs/_histogram.py @@ -1669,85 +1669,87 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('autobinx', None) - self.autobinx = autobinx if autobinx is not None else _v + self['autobinx'] = autobinx if autobinx is not None else _v _v = arg.pop('autobiny', None) - self.autobiny = autobiny if autobiny is not None else _v + self['autobiny'] = autobiny if autobiny is not None else _v _v = arg.pop('cumulative', None) - self.cumulative = cumulative if cumulative is not None else _v + self['cumulative'] = cumulative if cumulative is not None else _v _v = arg.pop('customdata', None) - self.customdata = customdata if customdata is not None else _v + self['customdata'] = customdata if customdata is not None else _v _v = arg.pop('customdatasrc', None) - self.customdatasrc = customdatasrc if customdatasrc is not None else _v + self['customdatasrc' + ] = customdatasrc if customdatasrc is not None else _v _v = arg.pop('error_x', None) - self.error_x = error_x if error_x is not None else _v + self['error_x'] = error_x if error_x is not None else _v _v = arg.pop('error_y', None) - self.error_y = error_y if error_y is not None else _v + self['error_y'] = error_y if error_y is not None else _v _v = arg.pop('histfunc', None) - self.histfunc = histfunc if histfunc is not None else _v + self['histfunc'] = histfunc if histfunc is not None else _v _v = arg.pop('histnorm', None) - self.histnorm = histnorm if histnorm is not None else _v + self['histnorm'] = histnorm if histnorm is not None else _v _v = arg.pop('hoverinfo', None) - self.hoverinfo = hoverinfo if hoverinfo is not None else _v + self['hoverinfo'] = hoverinfo if hoverinfo is not None else _v _v = arg.pop('hoverinfosrc', None) - self.hoverinfosrc = hoverinfosrc if hoverinfosrc is not None else _v + self['hoverinfosrc'] = hoverinfosrc if hoverinfosrc is not None else _v _v = arg.pop('hoverlabel', None) - self.hoverlabel = hoverlabel if hoverlabel is not None else _v + self['hoverlabel'] = hoverlabel if hoverlabel is not None else _v _v = arg.pop('ids', None) - self.ids = ids if ids is not None else _v + self['ids'] = ids if ids is not None else _v _v = arg.pop('idssrc', None) - self.idssrc = idssrc if idssrc is not None else _v + self['idssrc'] = idssrc if idssrc is not None else _v _v = arg.pop('legendgroup', None) - self.legendgroup = legendgroup if legendgroup is not None else _v + self['legendgroup'] = legendgroup if legendgroup is not None else _v _v = arg.pop('marker', None) - self.marker = marker if marker is not None else _v + self['marker'] = marker if marker is not None else _v _v = arg.pop('name', None) - self.name = name if name is not None else _v + self['name'] = name if name is not None else _v _v = arg.pop('nbinsx', None) - self.nbinsx = nbinsx if nbinsx is not None else _v + self['nbinsx'] = nbinsx if nbinsx is not None else _v _v = arg.pop('nbinsy', None) - self.nbinsy = nbinsy if nbinsy is not None else _v + self['nbinsy'] = nbinsy if nbinsy is not None else _v _v = arg.pop('opacity', None) - self.opacity = opacity if opacity is not None else _v + self['opacity'] = opacity if opacity is not None else _v _v = arg.pop('orientation', None) - self.orientation = orientation if orientation is not None else _v + self['orientation'] = orientation if orientation is not None else _v _v = arg.pop('selected', None) - self.selected = selected if selected is not None else _v + self['selected'] = selected if selected is not None else _v _v = arg.pop('selectedpoints', None) - self.selectedpoints = selectedpoints if selectedpoints is not None else _v + self['selectedpoints' + ] = selectedpoints if selectedpoints is not None else _v _v = arg.pop('showlegend', None) - self.showlegend = showlegend if showlegend is not None else _v + self['showlegend'] = showlegend if showlegend is not None else _v _v = arg.pop('stream', None) - self.stream = stream if stream is not None else _v + self['stream'] = stream if stream is not None else _v _v = arg.pop('text', None) - self.text = text if text is not None else _v + self['text'] = text if text is not None else _v _v = arg.pop('textsrc', None) - self.textsrc = textsrc if textsrc is not None else _v + self['textsrc'] = textsrc if textsrc is not None else _v _v = arg.pop('uid', None) - self.uid = uid if uid is not None else _v + self['uid'] = uid if uid is not None else _v _v = arg.pop('unselected', None) - self.unselected = unselected if unselected is not None else _v + self['unselected'] = unselected if unselected is not None else _v _v = arg.pop('visible', None) - self.visible = visible if visible is not None else _v + self['visible'] = visible if visible is not None else _v _v = arg.pop('x', None) - self.x = x if x is not None else _v + self['x'] = x if x is not None else _v _v = arg.pop('xaxis', None) - self.xaxis = xaxis if xaxis is not None else _v + self['xaxis'] = xaxis if xaxis is not None else _v _v = arg.pop('xbins', None) - self.xbins = xbins if xbins is not None else _v + self['xbins'] = xbins if xbins is not None else _v _v = arg.pop('xcalendar', None) - self.xcalendar = xcalendar if xcalendar is not None else _v + self['xcalendar'] = xcalendar if xcalendar is not None else _v _v = arg.pop('xsrc', None) - self.xsrc = xsrc if xsrc is not None else _v + self['xsrc'] = xsrc if xsrc is not None else _v _v = arg.pop('y', None) - self.y = y if y is not None else _v + self['y'] = y if y is not None else _v _v = arg.pop('yaxis', None) - self.yaxis = yaxis if yaxis is not None else _v + self['yaxis'] = yaxis if yaxis is not None else _v _v = arg.pop('ybins', None) - self.ybins = ybins if ybins is not None else _v + self['ybins'] = ybins if ybins is not None else _v _v = arg.pop('ycalendar', None) - self.ycalendar = ycalendar if ycalendar is not None else _v + self['ycalendar'] = ycalendar if ycalendar is not None else _v _v = arg.pop('ysrc', None) - self.ysrc = ysrc if ysrc is not None else _v + self['ysrc'] = ysrc if ysrc is not None else _v # Read-only literals # ------------------ diff --git a/plotly/graph_objs/_histogram2d.py b/plotly/graph_objs/_histogram2d.py index a429e371a21..5d950f05522 100644 --- a/plotly/graph_objs/_histogram2d.py +++ b/plotly/graph_objs/_histogram2d.py @@ -1844,97 +1844,100 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('autobinx', None) - self.autobinx = autobinx if autobinx is not None else _v + self['autobinx'] = autobinx if autobinx is not None else _v _v = arg.pop('autobiny', None) - self.autobiny = autobiny if autobiny is not None else _v + self['autobiny'] = autobiny if autobiny is not None else _v _v = arg.pop('autocolorscale', None) - self.autocolorscale = autocolorscale if autocolorscale is not None else _v + self['autocolorscale' + ] = autocolorscale if autocolorscale is not None else _v _v = arg.pop('colorbar', None) - self.colorbar = colorbar if colorbar is not None else _v + self['colorbar'] = colorbar if colorbar is not None else _v _v = arg.pop('colorscale', None) - self.colorscale = colorscale if colorscale is not None else _v + self['colorscale'] = colorscale if colorscale is not None else _v _v = arg.pop('customdata', None) - self.customdata = customdata if customdata is not None else _v + self['customdata'] = customdata if customdata is not None else _v _v = arg.pop('customdatasrc', None) - self.customdatasrc = customdatasrc if customdatasrc is not None else _v + self['customdatasrc' + ] = customdatasrc if customdatasrc is not None else _v _v = arg.pop('histfunc', None) - self.histfunc = histfunc if histfunc is not None else _v + self['histfunc'] = histfunc if histfunc is not None else _v _v = arg.pop('histnorm', None) - self.histnorm = histnorm if histnorm is not None else _v + self['histnorm'] = histnorm if histnorm is not None else _v _v = arg.pop('hoverinfo', None) - self.hoverinfo = hoverinfo if hoverinfo is not None else _v + self['hoverinfo'] = hoverinfo if hoverinfo is not None else _v _v = arg.pop('hoverinfosrc', None) - self.hoverinfosrc = hoverinfosrc if hoverinfosrc is not None else _v + self['hoverinfosrc'] = hoverinfosrc if hoverinfosrc is not None else _v _v = arg.pop('hoverlabel', None) - self.hoverlabel = hoverlabel if hoverlabel is not None else _v + self['hoverlabel'] = hoverlabel if hoverlabel is not None else _v _v = arg.pop('ids', None) - self.ids = ids if ids is not None else _v + self['ids'] = ids if ids is not None else _v _v = arg.pop('idssrc', None) - self.idssrc = idssrc if idssrc is not None else _v + self['idssrc'] = idssrc if idssrc is not None else _v _v = arg.pop('legendgroup', None) - self.legendgroup = legendgroup if legendgroup is not None else _v + self['legendgroup'] = legendgroup if legendgroup is not None else _v _v = arg.pop('marker', None) - self.marker = marker if marker is not None else _v + self['marker'] = marker if marker is not None else _v _v = arg.pop('name', None) - self.name = name if name is not None else _v + self['name'] = name if name is not None else _v _v = arg.pop('nbinsx', None) - self.nbinsx = nbinsx if nbinsx is not None else _v + self['nbinsx'] = nbinsx if nbinsx is not None else _v _v = arg.pop('nbinsy', None) - self.nbinsy = nbinsy if nbinsy is not None else _v + self['nbinsy'] = nbinsy if nbinsy is not None else _v _v = arg.pop('opacity', None) - self.opacity = opacity if opacity is not None else _v + self['opacity'] = opacity if opacity is not None else _v _v = arg.pop('reversescale', None) - self.reversescale = reversescale if reversescale is not None else _v + self['reversescale'] = reversescale if reversescale is not None else _v _v = arg.pop('selectedpoints', None) - self.selectedpoints = selectedpoints if selectedpoints is not None else _v + self['selectedpoints' + ] = selectedpoints if selectedpoints is not None else _v _v = arg.pop('showlegend', None) - self.showlegend = showlegend if showlegend is not None else _v + self['showlegend'] = showlegend if showlegend is not None else _v _v = arg.pop('showscale', None) - self.showscale = showscale if showscale is not None else _v + self['showscale'] = showscale if showscale is not None else _v _v = arg.pop('stream', None) - self.stream = stream if stream is not None else _v + self['stream'] = stream if stream is not None else _v _v = arg.pop('uid', None) - self.uid = uid if uid is not None else _v + self['uid'] = uid if uid is not None else _v _v = arg.pop('visible', None) - self.visible = visible if visible is not None else _v + self['visible'] = visible if visible is not None else _v _v = arg.pop('x', None) - self.x = x if x is not None else _v + self['x'] = x if x is not None else _v _v = arg.pop('xaxis', None) - self.xaxis = xaxis if xaxis is not None else _v + self['xaxis'] = xaxis if xaxis is not None else _v _v = arg.pop('xbins', None) - self.xbins = xbins if xbins is not None else _v + self['xbins'] = xbins if xbins is not None else _v _v = arg.pop('xcalendar', None) - self.xcalendar = xcalendar if xcalendar is not None else _v + self['xcalendar'] = xcalendar if xcalendar is not None else _v _v = arg.pop('xgap', None) - self.xgap = xgap if xgap is not None else _v + self['xgap'] = xgap if xgap is not None else _v _v = arg.pop('xsrc', None) - self.xsrc = xsrc if xsrc is not None else _v + self['xsrc'] = xsrc if xsrc is not None else _v _v = arg.pop('y', None) - self.y = y if y is not None else _v + self['y'] = y if y is not None else _v _v = arg.pop('yaxis', None) - self.yaxis = yaxis if yaxis is not None else _v + self['yaxis'] = yaxis if yaxis is not None else _v _v = arg.pop('ybins', None) - self.ybins = ybins if ybins is not None else _v + self['ybins'] = ybins if ybins is not None else _v _v = arg.pop('ycalendar', None) - self.ycalendar = ycalendar if ycalendar is not None else _v + self['ycalendar'] = ycalendar if ycalendar is not None else _v _v = arg.pop('ygap', None) - self.ygap = ygap if ygap is not None else _v + self['ygap'] = ygap if ygap is not None else _v _v = arg.pop('ysrc', None) - self.ysrc = ysrc if ysrc is not None else _v + self['ysrc'] = ysrc if ysrc is not None else _v _v = arg.pop('z', None) - self.z = z if z is not None else _v + self['z'] = z if z is not None else _v _v = arg.pop('zauto', None) - self.zauto = zauto if zauto is not None else _v + self['zauto'] = zauto if zauto is not None else _v _v = arg.pop('zhoverformat', None) - self.zhoverformat = zhoverformat if zhoverformat is not None else _v + self['zhoverformat'] = zhoverformat if zhoverformat is not None else _v _v = arg.pop('zmax', None) - self.zmax = zmax if zmax is not None else _v + self['zmax'] = zmax if zmax is not None else _v _v = arg.pop('zmin', None) - self.zmin = zmin if zmin is not None else _v + self['zmin'] = zmin if zmin is not None else _v _v = arg.pop('zsmooth', None) - self.zsmooth = zsmooth if zsmooth is not None else _v + self['zsmooth'] = zsmooth if zsmooth is not None else _v _v = arg.pop('zsrc', None) - self.zsrc = zsrc if zsrc is not None else _v + self['zsrc'] = zsrc if zsrc is not None else _v # Read-only literals # ------------------ diff --git a/plotly/graph_objs/_histogram2dcontour.py b/plotly/graph_objs/_histogram2dcontour.py index 2744c2eb8a4..0220409a9eb 100644 --- a/plotly/graph_objs/_histogram2dcontour.py +++ b/plotly/graph_objs/_histogram2dcontour.py @@ -1991,99 +1991,102 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('autobinx', None) - self.autobinx = autobinx if autobinx is not None else _v + self['autobinx'] = autobinx if autobinx is not None else _v _v = arg.pop('autobiny', None) - self.autobiny = autobiny if autobiny is not None else _v + self['autobiny'] = autobiny if autobiny is not None else _v _v = arg.pop('autocolorscale', None) - self.autocolorscale = autocolorscale if autocolorscale is not None else _v + self['autocolorscale' + ] = autocolorscale if autocolorscale is not None else _v _v = arg.pop('autocontour', None) - self.autocontour = autocontour if autocontour is not None else _v + self['autocontour'] = autocontour if autocontour is not None else _v _v = arg.pop('colorbar', None) - self.colorbar = colorbar if colorbar is not None else _v + self['colorbar'] = colorbar if colorbar is not None else _v _v = arg.pop('colorscale', None) - self.colorscale = colorscale if colorscale is not None else _v + self['colorscale'] = colorscale if colorscale is not None else _v _v = arg.pop('contours', None) - self.contours = contours if contours is not None else _v + self['contours'] = contours if contours is not None else _v _v = arg.pop('customdata', None) - self.customdata = customdata if customdata is not None else _v + self['customdata'] = customdata if customdata is not None else _v _v = arg.pop('customdatasrc', None) - self.customdatasrc = customdatasrc if customdatasrc is not None else _v + self['customdatasrc' + ] = customdatasrc if customdatasrc is not None else _v _v = arg.pop('histfunc', None) - self.histfunc = histfunc if histfunc is not None else _v + self['histfunc'] = histfunc if histfunc is not None else _v _v = arg.pop('histnorm', None) - self.histnorm = histnorm if histnorm is not None else _v + self['histnorm'] = histnorm if histnorm is not None else _v _v = arg.pop('hoverinfo', None) - self.hoverinfo = hoverinfo if hoverinfo is not None else _v + self['hoverinfo'] = hoverinfo if hoverinfo is not None else _v _v = arg.pop('hoverinfosrc', None) - self.hoverinfosrc = hoverinfosrc if hoverinfosrc is not None else _v + self['hoverinfosrc'] = hoverinfosrc if hoverinfosrc is not None else _v _v = arg.pop('hoverlabel', None) - self.hoverlabel = hoverlabel if hoverlabel is not None else _v + self['hoverlabel'] = hoverlabel if hoverlabel is not None else _v _v = arg.pop('ids', None) - self.ids = ids if ids is not None else _v + self['ids'] = ids if ids is not None else _v _v = arg.pop('idssrc', None) - self.idssrc = idssrc if idssrc is not None else _v + self['idssrc'] = idssrc if idssrc is not None else _v _v = arg.pop('legendgroup', None) - self.legendgroup = legendgroup if legendgroup is not None else _v + self['legendgroup'] = legendgroup if legendgroup is not None else _v _v = arg.pop('line', None) - self.line = line if line is not None else _v + self['line'] = line if line is not None else _v _v = arg.pop('marker', None) - self.marker = marker if marker is not None else _v + self['marker'] = marker if marker is not None else _v _v = arg.pop('name', None) - self.name = name if name is not None else _v + self['name'] = name if name is not None else _v _v = arg.pop('nbinsx', None) - self.nbinsx = nbinsx if nbinsx is not None else _v + self['nbinsx'] = nbinsx if nbinsx is not None else _v _v = arg.pop('nbinsy', None) - self.nbinsy = nbinsy if nbinsy is not None else _v + self['nbinsy'] = nbinsy if nbinsy is not None else _v _v = arg.pop('ncontours', None) - self.ncontours = ncontours if ncontours is not None else _v + self['ncontours'] = ncontours if ncontours is not None else _v _v = arg.pop('opacity', None) - self.opacity = opacity if opacity is not None else _v + self['opacity'] = opacity if opacity is not None else _v _v = arg.pop('reversescale', None) - self.reversescale = reversescale if reversescale is not None else _v + self['reversescale'] = reversescale if reversescale is not None else _v _v = arg.pop('selectedpoints', None) - self.selectedpoints = selectedpoints if selectedpoints is not None else _v + self['selectedpoints' + ] = selectedpoints if selectedpoints is not None else _v _v = arg.pop('showlegend', None) - self.showlegend = showlegend if showlegend is not None else _v + self['showlegend'] = showlegend if showlegend is not None else _v _v = arg.pop('showscale', None) - self.showscale = showscale if showscale is not None else _v + self['showscale'] = showscale if showscale is not None else _v _v = arg.pop('stream', None) - self.stream = stream if stream is not None else _v + self['stream'] = stream if stream is not None else _v _v = arg.pop('uid', None) - self.uid = uid if uid is not None else _v + self['uid'] = uid if uid is not None else _v _v = arg.pop('visible', None) - self.visible = visible if visible is not None else _v + self['visible'] = visible if visible is not None else _v _v = arg.pop('x', None) - self.x = x if x is not None else _v + self['x'] = x if x is not None else _v _v = arg.pop('xaxis', None) - self.xaxis = xaxis if xaxis is not None else _v + self['xaxis'] = xaxis if xaxis is not None else _v _v = arg.pop('xbins', None) - self.xbins = xbins if xbins is not None else _v + self['xbins'] = xbins if xbins is not None else _v _v = arg.pop('xcalendar', None) - self.xcalendar = xcalendar if xcalendar is not None else _v + self['xcalendar'] = xcalendar if xcalendar is not None else _v _v = arg.pop('xsrc', None) - self.xsrc = xsrc if xsrc is not None else _v + self['xsrc'] = xsrc if xsrc is not None else _v _v = arg.pop('y', None) - self.y = y if y is not None else _v + self['y'] = y if y is not None else _v _v = arg.pop('yaxis', None) - self.yaxis = yaxis if yaxis is not None else _v + self['yaxis'] = yaxis if yaxis is not None else _v _v = arg.pop('ybins', None) - self.ybins = ybins if ybins is not None else _v + self['ybins'] = ybins if ybins is not None else _v _v = arg.pop('ycalendar', None) - self.ycalendar = ycalendar if ycalendar is not None else _v + self['ycalendar'] = ycalendar if ycalendar is not None else _v _v = arg.pop('ysrc', None) - self.ysrc = ysrc if ysrc is not None else _v + self['ysrc'] = ysrc if ysrc is not None else _v _v = arg.pop('z', None) - self.z = z if z is not None else _v + self['z'] = z if z is not None else _v _v = arg.pop('zauto', None) - self.zauto = zauto if zauto is not None else _v + self['zauto'] = zauto if zauto is not None else _v _v = arg.pop('zhoverformat', None) - self.zhoverformat = zhoverformat if zhoverformat is not None else _v + self['zhoverformat'] = zhoverformat if zhoverformat is not None else _v _v = arg.pop('zmax', None) - self.zmax = zmax if zmax is not None else _v + self['zmax'] = zmax if zmax is not None else _v _v = arg.pop('zmin', None) - self.zmin = zmin if zmin is not None else _v + self['zmin'] = zmin if zmin is not None else _v _v = arg.pop('zsrc', None) - self.zsrc = zsrc if zsrc is not None else _v + self['zsrc'] = zsrc if zsrc is not None else _v # Read-only literals # ------------------ diff --git a/plotly/graph_objs/_layout.py b/plotly/graph_objs/_layout.py index ed7a768560f..9c10568f48f 100644 --- a/plotly/graph_objs/_layout.py +++ b/plotly/graph_objs/_layout.py @@ -3777,113 +3777,120 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('angularaxis', None) - self.angularaxis = angularaxis if angularaxis is not None else _v + self['angularaxis'] = angularaxis if angularaxis is not None else _v _v = arg.pop('annotations', None) - self.annotations = annotations if annotations is not None else _v + self['annotations'] = annotations if annotations is not None else _v _v = arg.pop('autosize', None) - self.autosize = autosize if autosize is not None else _v + self['autosize'] = autosize if autosize is not None else _v _v = arg.pop('bargap', None) - self.bargap = bargap if bargap is not None else _v + self['bargap'] = bargap if bargap is not None else _v _v = arg.pop('bargroupgap', None) - self.bargroupgap = bargroupgap if bargroupgap is not None else _v + self['bargroupgap'] = bargroupgap if bargroupgap is not None else _v _v = arg.pop('barmode', None) - self.barmode = barmode if barmode is not None else _v + self['barmode'] = barmode if barmode is not None else _v _v = arg.pop('barnorm', None) - self.barnorm = barnorm if barnorm is not None else _v + self['barnorm'] = barnorm if barnorm is not None else _v _v = arg.pop('boxgap', None) - self.boxgap = boxgap if boxgap is not None else _v + self['boxgap'] = boxgap if boxgap is not None else _v _v = arg.pop('boxgroupgap', None) - self.boxgroupgap = boxgroupgap if boxgroupgap is not None else _v + self['boxgroupgap'] = boxgroupgap if boxgroupgap is not None else _v _v = arg.pop('boxmode', None) - self.boxmode = boxmode if boxmode is not None else _v + self['boxmode'] = boxmode if boxmode is not None else _v _v = arg.pop('calendar', None) - self.calendar = calendar if calendar is not None else _v + self['calendar'] = calendar if calendar is not None else _v _v = arg.pop('colorway', None) - self.colorway = colorway if colorway is not None else _v + self['colorway'] = colorway if colorway is not None else _v _v = arg.pop('datarevision', None) - self.datarevision = datarevision if datarevision is not None else _v + self['datarevision'] = datarevision if datarevision is not None else _v _v = arg.pop('direction', None) - self.direction = direction if direction is not None else _v + self['direction'] = direction if direction is not None else _v _v = arg.pop('dragmode', None) - self.dragmode = dragmode if dragmode is not None else _v + self['dragmode'] = dragmode if dragmode is not None else _v _v = arg.pop('extendpiecolors', None) - self.extendpiecolors = extendpiecolors if extendpiecolors is not None else _v + self['extendpiecolors' + ] = extendpiecolors if extendpiecolors is not None else _v _v = arg.pop('font', None) - self.font = font if font is not None else _v + self['font'] = font if font is not None else _v _v = arg.pop('geo', None) - self.geo = geo if geo is not None else _v + self['geo'] = geo if geo is not None else _v _v = arg.pop('grid', None) - self.grid = grid if grid is not None else _v + self['grid'] = grid if grid is not None else _v _v = arg.pop('height', None) - self.height = height if height is not None else _v + self['height'] = height if height is not None else _v _v = arg.pop('hiddenlabels', None) - self.hiddenlabels = hiddenlabels if hiddenlabels is not None else _v + self['hiddenlabels'] = hiddenlabels if hiddenlabels is not None else _v _v = arg.pop('hiddenlabelssrc', None) - self.hiddenlabelssrc = hiddenlabelssrc if hiddenlabelssrc is not None else _v + self['hiddenlabelssrc' + ] = hiddenlabelssrc if hiddenlabelssrc is not None else _v _v = arg.pop('hidesources', None) - self.hidesources = hidesources if hidesources is not None else _v + self['hidesources'] = hidesources if hidesources is not None else _v _v = arg.pop('hoverdistance', None) - self.hoverdistance = hoverdistance if hoverdistance is not None else _v + self['hoverdistance' + ] = hoverdistance if hoverdistance is not None else _v _v = arg.pop('hoverlabel', None) - self.hoverlabel = hoverlabel if hoverlabel is not None else _v + self['hoverlabel'] = hoverlabel if hoverlabel is not None else _v _v = arg.pop('hovermode', None) - self.hovermode = hovermode if hovermode is not None else _v + self['hovermode'] = hovermode if hovermode is not None else _v _v = arg.pop('images', None) - self.images = images if images is not None else _v + self['images'] = images if images is not None else _v _v = arg.pop('legend', None) - self.legend = legend if legend is not None else _v + self['legend'] = legend if legend is not None else _v _v = arg.pop('mapbox', None) - self.mapbox = mapbox if mapbox is not None else _v + self['mapbox'] = mapbox if mapbox is not None else _v _v = arg.pop('margin', None) - self.margin = margin if margin is not None else _v + self['margin'] = margin if margin is not None else _v _v = arg.pop('orientation', None) - self.orientation = orientation if orientation is not None else _v + self['orientation'] = orientation if orientation is not None else _v _v = arg.pop('paper_bgcolor', None) - self.paper_bgcolor = paper_bgcolor if paper_bgcolor is not None else _v + self['paper_bgcolor' + ] = paper_bgcolor if paper_bgcolor is not None else _v _v = arg.pop('piecolorway', None) - self.piecolorway = piecolorway if piecolorway is not None else _v + self['piecolorway'] = piecolorway if piecolorway is not None else _v _v = arg.pop('plot_bgcolor', None) - self.plot_bgcolor = plot_bgcolor if plot_bgcolor is not None else _v + self['plot_bgcolor'] = plot_bgcolor if plot_bgcolor is not None else _v _v = arg.pop('polar', None) - self.polar = polar if polar is not None else _v + self['polar'] = polar if polar is not None else _v _v = arg.pop('radialaxis', None) - self.radialaxis = radialaxis if radialaxis is not None else _v + self['radialaxis'] = radialaxis if radialaxis is not None else _v _v = arg.pop('scene', None) - self.scene = scene if scene is not None else _v + self['scene'] = scene if scene is not None else _v _v = arg.pop('selectdirection', None) - self.selectdirection = selectdirection if selectdirection is not None else _v + self['selectdirection' + ] = selectdirection if selectdirection is not None else _v _v = arg.pop('separators', None) - self.separators = separators if separators is not None else _v + self['separators'] = separators if separators is not None else _v _v = arg.pop('shapes', None) - self.shapes = shapes if shapes is not None else _v + self['shapes'] = shapes if shapes is not None else _v _v = arg.pop('showlegend', None) - self.showlegend = showlegend if showlegend is not None else _v + self['showlegend'] = showlegend if showlegend is not None else _v _v = arg.pop('sliders', None) - self.sliders = sliders if sliders is not None else _v + self['sliders'] = sliders if sliders is not None else _v _v = arg.pop('spikedistance', None) - self.spikedistance = spikedistance if spikedistance is not None else _v + self['spikedistance' + ] = spikedistance if spikedistance is not None else _v _v = arg.pop('template', None) - self.template = template if template is not None else _v + self['template'] = template if template is not None else _v _v = arg.pop('ternary', None) - self.ternary = ternary if ternary is not None else _v + self['ternary'] = ternary if ternary is not None else _v _v = arg.pop('title', None) - self.title = title if title is not None else _v + self['title'] = title if title is not None else _v _v = arg.pop('titlefont', None) - self.titlefont = titlefont if titlefont is not None else _v + self['titlefont'] = titlefont if titlefont is not None else _v _v = arg.pop('updatemenus', None) - self.updatemenus = updatemenus if updatemenus is not None else _v + self['updatemenus'] = updatemenus if updatemenus is not None else _v _v = arg.pop('violingap', None) - self.violingap = violingap if violingap is not None else _v + self['violingap'] = violingap if violingap is not None else _v _v = arg.pop('violingroupgap', None) - self.violingroupgap = violingroupgap if violingroupgap is not None else _v + self['violingroupgap' + ] = violingroupgap if violingroupgap is not None else _v _v = arg.pop('violinmode', None) - self.violinmode = violinmode if violinmode is not None else _v + self['violinmode'] = violinmode if violinmode is not None else _v _v = arg.pop('width', None) - self.width = width if width is not None else _v + self['width'] = width if width is not None else _v _v = arg.pop('xaxis', None) - self.xaxis = xaxis if xaxis is not None else _v + self['xaxis'] = xaxis if xaxis is not None else _v _v = arg.pop('yaxis', None) - self.yaxis = yaxis if yaxis is not None else _v + self['yaxis'] = yaxis if yaxis is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/_mesh3d.py b/plotly/graph_objs/_mesh3d.py index 0d746709981..773fc284300 100644 --- a/plotly/graph_objs/_mesh3d.py +++ b/plotly/graph_objs/_mesh3d.py @@ -2155,113 +2155,118 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('alphahull', None) - self.alphahull = alphahull if alphahull is not None else _v + self['alphahull'] = alphahull if alphahull is not None else _v _v = arg.pop('autocolorscale', None) - self.autocolorscale = autocolorscale if autocolorscale is not None else _v + self['autocolorscale' + ] = autocolorscale if autocolorscale is not None else _v _v = arg.pop('cauto', None) - self.cauto = cauto if cauto is not None else _v + self['cauto'] = cauto if cauto is not None else _v _v = arg.pop('cmax', None) - self.cmax = cmax if cmax is not None else _v + self['cmax'] = cmax if cmax is not None else _v _v = arg.pop('cmin', None) - self.cmin = cmin if cmin is not None else _v + self['cmin'] = cmin if cmin is not None else _v _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('colorbar', None) - self.colorbar = colorbar if colorbar is not None else _v + self['colorbar'] = colorbar if colorbar is not None else _v _v = arg.pop('colorscale', None) - self.colorscale = colorscale if colorscale is not None else _v + self['colorscale'] = colorscale if colorscale is not None else _v _v = arg.pop('contour', None) - self.contour = contour if contour is not None else _v + self['contour'] = contour if contour is not None else _v _v = arg.pop('customdata', None) - self.customdata = customdata if customdata is not None else _v + self['customdata'] = customdata if customdata is not None else _v _v = arg.pop('customdatasrc', None) - self.customdatasrc = customdatasrc if customdatasrc is not None else _v + self['customdatasrc' + ] = customdatasrc if customdatasrc is not None else _v _v = arg.pop('delaunayaxis', None) - self.delaunayaxis = delaunayaxis if delaunayaxis is not None else _v + self['delaunayaxis'] = delaunayaxis if delaunayaxis is not None else _v _v = arg.pop('facecolor', None) - self.facecolor = facecolor if facecolor is not None else _v + self['facecolor'] = facecolor if facecolor is not None else _v _v = arg.pop('facecolorsrc', None) - self.facecolorsrc = facecolorsrc if facecolorsrc is not None else _v + self['facecolorsrc'] = facecolorsrc if facecolorsrc is not None else _v _v = arg.pop('flatshading', None) - self.flatshading = flatshading if flatshading is not None else _v + self['flatshading'] = flatshading if flatshading is not None else _v _v = arg.pop('hoverinfo', None) - self.hoverinfo = hoverinfo if hoverinfo is not None else _v + self['hoverinfo'] = hoverinfo if hoverinfo is not None else _v _v = arg.pop('hoverinfosrc', None) - self.hoverinfosrc = hoverinfosrc if hoverinfosrc is not None else _v + self['hoverinfosrc'] = hoverinfosrc if hoverinfosrc is not None else _v _v = arg.pop('hoverlabel', None) - self.hoverlabel = hoverlabel if hoverlabel is not None else _v + self['hoverlabel'] = hoverlabel if hoverlabel is not None else _v _v = arg.pop('i', None) - self.i = i if i is not None else _v + self['i'] = i if i is not None else _v _v = arg.pop('ids', None) - self.ids = ids if ids is not None else _v + self['ids'] = ids if ids is not None else _v _v = arg.pop('idssrc', None) - self.idssrc = idssrc if idssrc is not None else _v + self['idssrc'] = idssrc if idssrc is not None else _v _v = arg.pop('intensity', None) - self.intensity = intensity if intensity is not None else _v + self['intensity'] = intensity if intensity is not None else _v _v = arg.pop('intensitysrc', None) - self.intensitysrc = intensitysrc if intensitysrc is not None else _v + self['intensitysrc'] = intensitysrc if intensitysrc is not None else _v _v = arg.pop('isrc', None) - self.isrc = isrc if isrc is not None else _v + self['isrc'] = isrc if isrc is not None else _v _v = arg.pop('j', None) - self.j = j if j is not None else _v + self['j'] = j if j is not None else _v _v = arg.pop('jsrc', None) - self.jsrc = jsrc if jsrc is not None else _v + self['jsrc'] = jsrc if jsrc is not None else _v _v = arg.pop('k', None) - self.k = k if k is not None else _v + self['k'] = k if k is not None else _v _v = arg.pop('ksrc', None) - self.ksrc = ksrc if ksrc is not None else _v + self['ksrc'] = ksrc if ksrc is not None else _v _v = arg.pop('legendgroup', None) - self.legendgroup = legendgroup if legendgroup is not None else _v + self['legendgroup'] = legendgroup if legendgroup is not None else _v _v = arg.pop('lighting', None) - self.lighting = lighting if lighting is not None else _v + self['lighting'] = lighting if lighting is not None else _v _v = arg.pop('lightposition', None) - self.lightposition = lightposition if lightposition is not None else _v + self['lightposition' + ] = lightposition if lightposition is not None else _v _v = arg.pop('name', None) - self.name = name if name is not None else _v + self['name'] = name if name is not None else _v _v = arg.pop('opacity', None) - self.opacity = opacity if opacity is not None else _v + self['opacity'] = opacity if opacity is not None else _v _v = arg.pop('reversescale', None) - self.reversescale = reversescale if reversescale is not None else _v + self['reversescale'] = reversescale if reversescale is not None else _v _v = arg.pop('scene', None) - self.scene = scene if scene is not None else _v + self['scene'] = scene if scene is not None else _v _v = arg.pop('selectedpoints', None) - self.selectedpoints = selectedpoints if selectedpoints is not None else _v + self['selectedpoints' + ] = selectedpoints if selectedpoints is not None else _v _v = arg.pop('showlegend', None) - self.showlegend = showlegend if showlegend is not None else _v + self['showlegend'] = showlegend if showlegend is not None else _v _v = arg.pop('showscale', None) - self.showscale = showscale if showscale is not None else _v + self['showscale'] = showscale if showscale is not None else _v _v = arg.pop('stream', None) - self.stream = stream if stream is not None else _v + self['stream'] = stream if stream is not None else _v _v = arg.pop('text', None) - self.text = text if text is not None else _v + self['text'] = text if text is not None else _v _v = arg.pop('textsrc', None) - self.textsrc = textsrc if textsrc is not None else _v + self['textsrc'] = textsrc if textsrc is not None else _v _v = arg.pop('uid', None) - self.uid = uid if uid is not None else _v + self['uid'] = uid if uid is not None else _v _v = arg.pop('vertexcolor', None) - self.vertexcolor = vertexcolor if vertexcolor is not None else _v + self['vertexcolor'] = vertexcolor if vertexcolor is not None else _v _v = arg.pop('vertexcolorsrc', None) - self.vertexcolorsrc = vertexcolorsrc if vertexcolorsrc is not None else _v + self['vertexcolorsrc' + ] = vertexcolorsrc if vertexcolorsrc is not None else _v _v = arg.pop('visible', None) - self.visible = visible if visible is not None else _v + self['visible'] = visible if visible is not None else _v _v = arg.pop('x', None) - self.x = x if x is not None else _v + self['x'] = x if x is not None else _v _v = arg.pop('xcalendar', None) - self.xcalendar = xcalendar if xcalendar is not None else _v + self['xcalendar'] = xcalendar if xcalendar is not None else _v _v = arg.pop('xsrc', None) - self.xsrc = xsrc if xsrc is not None else _v + self['xsrc'] = xsrc if xsrc is not None else _v _v = arg.pop('y', None) - self.y = y if y is not None else _v + self['y'] = y if y is not None else _v _v = arg.pop('ycalendar', None) - self.ycalendar = ycalendar if ycalendar is not None else _v + self['ycalendar'] = ycalendar if ycalendar is not None else _v _v = arg.pop('ysrc', None) - self.ysrc = ysrc if ysrc is not None else _v + self['ysrc'] = ysrc if ysrc is not None else _v _v = arg.pop('z', None) - self.z = z if z is not None else _v + self['z'] = z if z is not None else _v _v = arg.pop('zcalendar', None) - self.zcalendar = zcalendar if zcalendar is not None else _v + self['zcalendar'] = zcalendar if zcalendar is not None else _v _v = arg.pop('zsrc', None) - self.zsrc = zsrc if zsrc is not None else _v + self['zsrc'] = zsrc if zsrc is not None else _v # Read-only literals # ------------------ diff --git a/plotly/graph_objs/_ohlc.py b/plotly/graph_objs/_ohlc.py index a02b2d13e48..04a8486a41f 100644 --- a/plotly/graph_objs/_ohlc.py +++ b/plotly/graph_objs/_ohlc.py @@ -1152,73 +1152,75 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('close', None) - self.close = close if close is not None else _v + self['close'] = close if close is not None else _v _v = arg.pop('closesrc', None) - self.closesrc = closesrc if closesrc is not None else _v + self['closesrc'] = closesrc if closesrc is not None else _v _v = arg.pop('customdata', None) - self.customdata = customdata if customdata is not None else _v + self['customdata'] = customdata if customdata is not None else _v _v = arg.pop('customdatasrc', None) - self.customdatasrc = customdatasrc if customdatasrc is not None else _v + self['customdatasrc' + ] = customdatasrc if customdatasrc is not None else _v _v = arg.pop('decreasing', None) - self.decreasing = decreasing if decreasing is not None else _v + self['decreasing'] = decreasing if decreasing is not None else _v _v = arg.pop('high', None) - self.high = high if high is not None else _v + self['high'] = high if high is not None else _v _v = arg.pop('highsrc', None) - self.highsrc = highsrc if highsrc is not None else _v + self['highsrc'] = highsrc if highsrc is not None else _v _v = arg.pop('hoverinfo', None) - self.hoverinfo = hoverinfo if hoverinfo is not None else _v + self['hoverinfo'] = hoverinfo if hoverinfo is not None else _v _v = arg.pop('hoverinfosrc', None) - self.hoverinfosrc = hoverinfosrc if hoverinfosrc is not None else _v + self['hoverinfosrc'] = hoverinfosrc if hoverinfosrc is not None else _v _v = arg.pop('hoverlabel', None) - self.hoverlabel = hoverlabel if hoverlabel is not None else _v + self['hoverlabel'] = hoverlabel if hoverlabel is not None else _v _v = arg.pop('ids', None) - self.ids = ids if ids is not None else _v + self['ids'] = ids if ids is not None else _v _v = arg.pop('idssrc', None) - self.idssrc = idssrc if idssrc is not None else _v + self['idssrc'] = idssrc if idssrc is not None else _v _v = arg.pop('increasing', None) - self.increasing = increasing if increasing is not None else _v + self['increasing'] = increasing if increasing is not None else _v _v = arg.pop('legendgroup', None) - self.legendgroup = legendgroup if legendgroup is not None else _v + self['legendgroup'] = legendgroup if legendgroup is not None else _v _v = arg.pop('line', None) - self.line = line if line is not None else _v + self['line'] = line if line is not None else _v _v = arg.pop('low', None) - self.low = low if low is not None else _v + self['low'] = low if low is not None else _v _v = arg.pop('lowsrc', None) - self.lowsrc = lowsrc if lowsrc is not None else _v + self['lowsrc'] = lowsrc if lowsrc is not None else _v _v = arg.pop('name', None) - self.name = name if name is not None else _v + self['name'] = name if name is not None else _v _v = arg.pop('opacity', None) - self.opacity = opacity if opacity is not None else _v + self['opacity'] = opacity if opacity is not None else _v _v = arg.pop('open', None) - self.open = open if open is not None else _v + self['open'] = open if open is not None else _v _v = arg.pop('opensrc', None) - self.opensrc = opensrc if opensrc is not None else _v + self['opensrc'] = opensrc if opensrc is not None else _v _v = arg.pop('selectedpoints', None) - self.selectedpoints = selectedpoints if selectedpoints is not None else _v + self['selectedpoints' + ] = selectedpoints if selectedpoints is not None else _v _v = arg.pop('showlegend', None) - self.showlegend = showlegend if showlegend is not None else _v + self['showlegend'] = showlegend if showlegend is not None else _v _v = arg.pop('stream', None) - self.stream = stream if stream is not None else _v + self['stream'] = stream if stream is not None else _v _v = arg.pop('text', None) - self.text = text if text is not None else _v + self['text'] = text if text is not None else _v _v = arg.pop('textsrc', None) - self.textsrc = textsrc if textsrc is not None else _v + self['textsrc'] = textsrc if textsrc is not None else _v _v = arg.pop('tickwidth', None) - self.tickwidth = tickwidth if tickwidth is not None else _v + self['tickwidth'] = tickwidth if tickwidth is not None else _v _v = arg.pop('uid', None) - self.uid = uid if uid is not None else _v + self['uid'] = uid if uid is not None else _v _v = arg.pop('visible', None) - self.visible = visible if visible is not None else _v + self['visible'] = visible if visible is not None else _v _v = arg.pop('x', None) - self.x = x if x is not None else _v + self['x'] = x if x is not None else _v _v = arg.pop('xaxis', None) - self.xaxis = xaxis if xaxis is not None else _v + self['xaxis'] = xaxis if xaxis is not None else _v _v = arg.pop('xcalendar', None) - self.xcalendar = xcalendar if xcalendar is not None else _v + self['xcalendar'] = xcalendar if xcalendar is not None else _v _v = arg.pop('xsrc', None) - self.xsrc = xsrc if xsrc is not None else _v + self['xsrc'] = xsrc if xsrc is not None else _v _v = arg.pop('yaxis', None) - self.yaxis = yaxis if yaxis is not None else _v + self['yaxis'] = yaxis if yaxis is not None else _v # Read-only literals # ------------------ diff --git a/plotly/graph_objs/_parcoords.py b/plotly/graph_objs/_parcoords.py index 3c4936a548d..f2d8a69c6cd 100644 --- a/plotly/graph_objs/_parcoords.py +++ b/plotly/graph_objs/_parcoords.py @@ -979,47 +979,49 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('customdata', None) - self.customdata = customdata if customdata is not None else _v + self['customdata'] = customdata if customdata is not None else _v _v = arg.pop('customdatasrc', None) - self.customdatasrc = customdatasrc if customdatasrc is not None else _v + self['customdatasrc' + ] = customdatasrc if customdatasrc is not None else _v _v = arg.pop('dimensions', None) - self.dimensions = dimensions if dimensions is not None else _v + self['dimensions'] = dimensions if dimensions is not None else _v _v = arg.pop('domain', None) - self.domain = domain if domain is not None else _v + self['domain'] = domain if domain is not None else _v _v = arg.pop('hoverinfo', None) - self.hoverinfo = hoverinfo if hoverinfo is not None else _v + self['hoverinfo'] = hoverinfo if hoverinfo is not None else _v _v = arg.pop('hoverinfosrc', None) - self.hoverinfosrc = hoverinfosrc if hoverinfosrc is not None else _v + self['hoverinfosrc'] = hoverinfosrc if hoverinfosrc is not None else _v _v = arg.pop('hoverlabel', None) - self.hoverlabel = hoverlabel if hoverlabel is not None else _v + self['hoverlabel'] = hoverlabel if hoverlabel is not None else _v _v = arg.pop('ids', None) - self.ids = ids if ids is not None else _v + self['ids'] = ids if ids is not None else _v _v = arg.pop('idssrc', None) - self.idssrc = idssrc if idssrc is not None else _v + self['idssrc'] = idssrc if idssrc is not None else _v _v = arg.pop('labelfont', None) - self.labelfont = labelfont if labelfont is not None else _v + self['labelfont'] = labelfont if labelfont is not None else _v _v = arg.pop('legendgroup', None) - self.legendgroup = legendgroup if legendgroup is not None else _v + self['legendgroup'] = legendgroup if legendgroup is not None else _v _v = arg.pop('line', None) - self.line = line if line is not None else _v + self['line'] = line if line is not None else _v _v = arg.pop('name', None) - self.name = name if name is not None else _v + self['name'] = name if name is not None else _v _v = arg.pop('opacity', None) - self.opacity = opacity if opacity is not None else _v + self['opacity'] = opacity if opacity is not None else _v _v = arg.pop('rangefont', None) - self.rangefont = rangefont if rangefont is not None else _v + self['rangefont'] = rangefont if rangefont is not None else _v _v = arg.pop('selectedpoints', None) - self.selectedpoints = selectedpoints if selectedpoints is not None else _v + self['selectedpoints' + ] = selectedpoints if selectedpoints is not None else _v _v = arg.pop('showlegend', None) - self.showlegend = showlegend if showlegend is not None else _v + self['showlegend'] = showlegend if showlegend is not None else _v _v = arg.pop('stream', None) - self.stream = stream if stream is not None else _v + self['stream'] = stream if stream is not None else _v _v = arg.pop('tickfont', None) - self.tickfont = tickfont if tickfont is not None else _v + self['tickfont'] = tickfont if tickfont is not None else _v _v = arg.pop('uid', None) - self.uid = uid if uid is not None else _v + self['uid'] = uid if uid is not None else _v _v = arg.pop('visible', None) - self.visible = visible if visible is not None else _v + self['visible'] = visible if visible is not None else _v # Read-only literals # ------------------ diff --git a/plotly/graph_objs/_pie.py b/plotly/graph_objs/_pie.py index 0709ac80d69..02c30d605ab 100644 --- a/plotly/graph_objs/_pie.py +++ b/plotly/graph_objs/_pie.py @@ -1420,85 +1420,90 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('customdata', None) - self.customdata = customdata if customdata is not None else _v + self['customdata'] = customdata if customdata is not None else _v _v = arg.pop('customdatasrc', None) - self.customdatasrc = customdatasrc if customdatasrc is not None else _v + self['customdatasrc' + ] = customdatasrc if customdatasrc is not None else _v _v = arg.pop('direction', None) - self.direction = direction if direction is not None else _v + self['direction'] = direction if direction is not None else _v _v = arg.pop('dlabel', None) - self.dlabel = dlabel if dlabel is not None else _v + self['dlabel'] = dlabel if dlabel is not None else _v _v = arg.pop('domain', None) - self.domain = domain if domain is not None else _v + self['domain'] = domain if domain is not None else _v _v = arg.pop('hole', None) - self.hole = hole if hole is not None else _v + self['hole'] = hole if hole is not None else _v _v = arg.pop('hoverinfo', None) - self.hoverinfo = hoverinfo if hoverinfo is not None else _v + self['hoverinfo'] = hoverinfo if hoverinfo is not None else _v _v = arg.pop('hoverinfosrc', None) - self.hoverinfosrc = hoverinfosrc if hoverinfosrc is not None else _v + self['hoverinfosrc'] = hoverinfosrc if hoverinfosrc is not None else _v _v = arg.pop('hoverlabel', None) - self.hoverlabel = hoverlabel if hoverlabel is not None else _v + self['hoverlabel'] = hoverlabel if hoverlabel is not None else _v _v = arg.pop('hovertext', None) - self.hovertext = hovertext if hovertext is not None else _v + self['hovertext'] = hovertext if hovertext is not None else _v _v = arg.pop('hovertextsrc', None) - self.hovertextsrc = hovertextsrc if hovertextsrc is not None else _v + self['hovertextsrc'] = hovertextsrc if hovertextsrc is not None else _v _v = arg.pop('ids', None) - self.ids = ids if ids is not None else _v + self['ids'] = ids if ids is not None else _v _v = arg.pop('idssrc', None) - self.idssrc = idssrc if idssrc is not None else _v + self['idssrc'] = idssrc if idssrc is not None else _v _v = arg.pop('insidetextfont', None) - self.insidetextfont = insidetextfont if insidetextfont is not None else _v + self['insidetextfont' + ] = insidetextfont if insidetextfont is not None else _v _v = arg.pop('label0', None) - self.label0 = label0 if label0 is not None else _v + self['label0'] = label0 if label0 is not None else _v _v = arg.pop('labels', None) - self.labels = labels if labels is not None else _v + self['labels'] = labels if labels is not None else _v _v = arg.pop('labelssrc', None) - self.labelssrc = labelssrc if labelssrc is not None else _v + self['labelssrc'] = labelssrc if labelssrc is not None else _v _v = arg.pop('legendgroup', None) - self.legendgroup = legendgroup if legendgroup is not None else _v + self['legendgroup'] = legendgroup if legendgroup is not None else _v _v = arg.pop('marker', None) - self.marker = marker if marker is not None else _v + self['marker'] = marker if marker is not None else _v _v = arg.pop('name', None) - self.name = name if name is not None else _v + self['name'] = name if name is not None else _v _v = arg.pop('opacity', None) - self.opacity = opacity if opacity is not None else _v + self['opacity'] = opacity if opacity is not None else _v _v = arg.pop('outsidetextfont', None) - self.outsidetextfont = outsidetextfont if outsidetextfont is not None else _v + self['outsidetextfont' + ] = outsidetextfont if outsidetextfont is not None else _v _v = arg.pop('pull', None) - self.pull = pull if pull is not None else _v + self['pull'] = pull if pull is not None else _v _v = arg.pop('pullsrc', None) - self.pullsrc = pullsrc if pullsrc is not None else _v + self['pullsrc'] = pullsrc if pullsrc is not None else _v _v = arg.pop('rotation', None) - self.rotation = rotation if rotation is not None else _v + self['rotation'] = rotation if rotation is not None else _v _v = arg.pop('scalegroup', None) - self.scalegroup = scalegroup if scalegroup is not None else _v + self['scalegroup'] = scalegroup if scalegroup is not None else _v _v = arg.pop('selectedpoints', None) - self.selectedpoints = selectedpoints if selectedpoints is not None else _v + self['selectedpoints' + ] = selectedpoints if selectedpoints is not None else _v _v = arg.pop('showlegend', None) - self.showlegend = showlegend if showlegend is not None else _v + self['showlegend'] = showlegend if showlegend is not None else _v _v = arg.pop('sort', None) - self.sort = sort if sort is not None else _v + self['sort'] = sort if sort is not None else _v _v = arg.pop('stream', None) - self.stream = stream if stream is not None else _v + self['stream'] = stream if stream is not None else _v _v = arg.pop('text', None) - self.text = text if text is not None else _v + self['text'] = text if text is not None else _v _v = arg.pop('textfont', None) - self.textfont = textfont if textfont is not None else _v + self['textfont'] = textfont if textfont is not None else _v _v = arg.pop('textinfo', None) - self.textinfo = textinfo if textinfo is not None else _v + self['textinfo'] = textinfo if textinfo is not None else _v _v = arg.pop('textposition', None) - self.textposition = textposition if textposition is not None else _v + self['textposition'] = textposition if textposition is not None else _v _v = arg.pop('textpositionsrc', None) - self.textpositionsrc = textpositionsrc if textpositionsrc is not None else _v + self['textpositionsrc' + ] = textpositionsrc if textpositionsrc is not None else _v _v = arg.pop('textsrc', None) - self.textsrc = textsrc if textsrc is not None else _v + self['textsrc'] = textsrc if textsrc is not None else _v _v = arg.pop('uid', None) - self.uid = uid if uid is not None else _v + self['uid'] = uid if uid is not None else _v _v = arg.pop('values', None) - self.values = values if values is not None else _v + self['values'] = values if values is not None else _v _v = arg.pop('valuessrc', None) - self.valuessrc = valuessrc if valuessrc is not None else _v + self['valuessrc'] = valuessrc if valuessrc is not None else _v _v = arg.pop('visible', None) - self.visible = visible if visible is not None else _v + self['visible'] = visible if visible is not None else _v # Read-only literals # ------------------ diff --git a/plotly/graph_objs/_pointcloud.py b/plotly/graph_objs/_pointcloud.py index 209b588cc8f..8c84845c14d 100644 --- a/plotly/graph_objs/_pointcloud.py +++ b/plotly/graph_objs/_pointcloud.py @@ -1138,69 +1138,71 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('customdata', None) - self.customdata = customdata if customdata is not None else _v + self['customdata'] = customdata if customdata is not None else _v _v = arg.pop('customdatasrc', None) - self.customdatasrc = customdatasrc if customdatasrc is not None else _v + self['customdatasrc' + ] = customdatasrc if customdatasrc is not None else _v _v = arg.pop('hoverinfo', None) - self.hoverinfo = hoverinfo if hoverinfo is not None else _v + self['hoverinfo'] = hoverinfo if hoverinfo is not None else _v _v = arg.pop('hoverinfosrc', None) - self.hoverinfosrc = hoverinfosrc if hoverinfosrc is not None else _v + self['hoverinfosrc'] = hoverinfosrc if hoverinfosrc is not None else _v _v = arg.pop('hoverlabel', None) - self.hoverlabel = hoverlabel if hoverlabel is not None else _v + self['hoverlabel'] = hoverlabel if hoverlabel is not None else _v _v = arg.pop('ids', None) - self.ids = ids if ids is not None else _v + self['ids'] = ids if ids is not None else _v _v = arg.pop('idssrc', None) - self.idssrc = idssrc if idssrc is not None else _v + self['idssrc'] = idssrc if idssrc is not None else _v _v = arg.pop('indices', None) - self.indices = indices if indices is not None else _v + self['indices'] = indices if indices is not None else _v _v = arg.pop('indicessrc', None) - self.indicessrc = indicessrc if indicessrc is not None else _v + self['indicessrc'] = indicessrc if indicessrc is not None else _v _v = arg.pop('legendgroup', None) - self.legendgroup = legendgroup if legendgroup is not None else _v + self['legendgroup'] = legendgroup if legendgroup is not None else _v _v = arg.pop('marker', None) - self.marker = marker if marker is not None else _v + self['marker'] = marker if marker is not None else _v _v = arg.pop('name', None) - self.name = name if name is not None else _v + self['name'] = name if name is not None else _v _v = arg.pop('opacity', None) - self.opacity = opacity if opacity is not None else _v + self['opacity'] = opacity if opacity is not None else _v _v = arg.pop('selectedpoints', None) - self.selectedpoints = selectedpoints if selectedpoints is not None else _v + self['selectedpoints' + ] = selectedpoints if selectedpoints is not None else _v _v = arg.pop('showlegend', None) - self.showlegend = showlegend if showlegend is not None else _v + self['showlegend'] = showlegend if showlegend is not None else _v _v = arg.pop('stream', None) - self.stream = stream if stream is not None else _v + self['stream'] = stream if stream is not None else _v _v = arg.pop('text', None) - self.text = text if text is not None else _v + self['text'] = text if text is not None else _v _v = arg.pop('textsrc', None) - self.textsrc = textsrc if textsrc is not None else _v + self['textsrc'] = textsrc if textsrc is not None else _v _v = arg.pop('uid', None) - self.uid = uid if uid is not None else _v + self['uid'] = uid if uid is not None else _v _v = arg.pop('visible', None) - self.visible = visible if visible is not None else _v + self['visible'] = visible if visible is not None else _v _v = arg.pop('x', None) - self.x = x if x is not None else _v + self['x'] = x if x is not None else _v _v = arg.pop('xaxis', None) - self.xaxis = xaxis if xaxis is not None else _v + self['xaxis'] = xaxis if xaxis is not None else _v _v = arg.pop('xbounds', None) - self.xbounds = xbounds if xbounds is not None else _v + self['xbounds'] = xbounds if xbounds is not None else _v _v = arg.pop('xboundssrc', None) - self.xboundssrc = xboundssrc if xboundssrc is not None else _v + self['xboundssrc'] = xboundssrc if xboundssrc is not None else _v _v = arg.pop('xsrc', None) - self.xsrc = xsrc if xsrc is not None else _v + self['xsrc'] = xsrc if xsrc is not None else _v _v = arg.pop('xy', None) - self.xy = xy if xy is not None else _v + self['xy'] = xy if xy is not None else _v _v = arg.pop('xysrc', None) - self.xysrc = xysrc if xysrc is not None else _v + self['xysrc'] = xysrc if xysrc is not None else _v _v = arg.pop('y', None) - self.y = y if y is not None else _v + self['y'] = y if y is not None else _v _v = arg.pop('yaxis', None) - self.yaxis = yaxis if yaxis is not None else _v + self['yaxis'] = yaxis if yaxis is not None else _v _v = arg.pop('ybounds', None) - self.ybounds = ybounds if ybounds is not None else _v + self['ybounds'] = ybounds if ybounds is not None else _v _v = arg.pop('yboundssrc', None) - self.yboundssrc = yboundssrc if yboundssrc is not None else _v + self['yboundssrc'] = yboundssrc if yboundssrc is not None else _v _v = arg.pop('ysrc', None) - self.ysrc = ysrc if ysrc is not None else _v + self['ysrc'] = ysrc if ysrc is not None else _v # Read-only literals # ------------------ diff --git a/plotly/graph_objs/_sankey.py b/plotly/graph_objs/_sankey.py index 6ae7f27108e..1a08f72018b 100644 --- a/plotly/graph_objs/_sankey.py +++ b/plotly/graph_objs/_sankey.py @@ -930,51 +930,53 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('arrangement', None) - self.arrangement = arrangement if arrangement is not None else _v + self['arrangement'] = arrangement if arrangement is not None else _v _v = arg.pop('customdata', None) - self.customdata = customdata if customdata is not None else _v + self['customdata'] = customdata if customdata is not None else _v _v = arg.pop('customdatasrc', None) - self.customdatasrc = customdatasrc if customdatasrc is not None else _v + self['customdatasrc' + ] = customdatasrc if customdatasrc is not None else _v _v = arg.pop('domain', None) - self.domain = domain if domain is not None else _v + self['domain'] = domain if domain is not None else _v _v = arg.pop('hoverinfo', None) - self.hoverinfo = hoverinfo if hoverinfo is not None else _v + self['hoverinfo'] = hoverinfo if hoverinfo is not None else _v _v = arg.pop('hoverinfosrc', None) - self.hoverinfosrc = hoverinfosrc if hoverinfosrc is not None else _v + self['hoverinfosrc'] = hoverinfosrc if hoverinfosrc is not None else _v _v = arg.pop('hoverlabel', None) - self.hoverlabel = hoverlabel if hoverlabel is not None else _v + self['hoverlabel'] = hoverlabel if hoverlabel is not None else _v _v = arg.pop('ids', None) - self.ids = ids if ids is not None else _v + self['ids'] = ids if ids is not None else _v _v = arg.pop('idssrc', None) - self.idssrc = idssrc if idssrc is not None else _v + self['idssrc'] = idssrc if idssrc is not None else _v _v = arg.pop('legendgroup', None) - self.legendgroup = legendgroup if legendgroup is not None else _v + self['legendgroup'] = legendgroup if legendgroup is not None else _v _v = arg.pop('link', None) - self.link = link if link is not None else _v + self['link'] = link if link is not None else _v _v = arg.pop('name', None) - self.name = name if name is not None else _v + self['name'] = name if name is not None else _v _v = arg.pop('node', None) - self.node = node if node is not None else _v + self['node'] = node if node is not None else _v _v = arg.pop('opacity', None) - self.opacity = opacity if opacity is not None else _v + self['opacity'] = opacity if opacity is not None else _v _v = arg.pop('orientation', None) - self.orientation = orientation if orientation is not None else _v + self['orientation'] = orientation if orientation is not None else _v _v = arg.pop('selectedpoints', None) - self.selectedpoints = selectedpoints if selectedpoints is not None else _v + self['selectedpoints' + ] = selectedpoints if selectedpoints is not None else _v _v = arg.pop('showlegend', None) - self.showlegend = showlegend if showlegend is not None else _v + self['showlegend'] = showlegend if showlegend is not None else _v _v = arg.pop('stream', None) - self.stream = stream if stream is not None else _v + self['stream'] = stream if stream is not None else _v _v = arg.pop('textfont', None) - self.textfont = textfont if textfont is not None else _v + self['textfont'] = textfont if textfont is not None else _v _v = arg.pop('uid', None) - self.uid = uid if uid is not None else _v + self['uid'] = uid if uid is not None else _v _v = arg.pop('valueformat', None) - self.valueformat = valueformat if valueformat is not None else _v + self['valueformat'] = valueformat if valueformat is not None else _v _v = arg.pop('valuesuffix', None) - self.valuesuffix = valuesuffix if valuesuffix is not None else _v + self['valuesuffix'] = valuesuffix if valuesuffix is not None else _v _v = arg.pop('visible', None) - self.visible = visible if visible is not None else _v + self['visible'] = visible if visible is not None else _v # Read-only literals # ------------------ diff --git a/plotly/graph_objs/_scatter.py b/plotly/graph_objs/_scatter.py index 84fe9f78ced..e490243c1c2 100644 --- a/plotly/graph_objs/_scatter.py +++ b/plotly/graph_objs/_scatter.py @@ -2040,105 +2040,108 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('cliponaxis', None) - self.cliponaxis = cliponaxis if cliponaxis is not None else _v + self['cliponaxis'] = cliponaxis if cliponaxis is not None else _v _v = arg.pop('connectgaps', None) - self.connectgaps = connectgaps if connectgaps is not None else _v + self['connectgaps'] = connectgaps if connectgaps is not None else _v _v = arg.pop('customdata', None) - self.customdata = customdata if customdata is not None else _v + self['customdata'] = customdata if customdata is not None else _v _v = arg.pop('customdatasrc', None) - self.customdatasrc = customdatasrc if customdatasrc is not None else _v + self['customdatasrc' + ] = customdatasrc if customdatasrc is not None else _v _v = arg.pop('dx', None) - self.dx = dx if dx is not None else _v + self['dx'] = dx if dx is not None else _v _v = arg.pop('dy', None) - self.dy = dy if dy is not None else _v + self['dy'] = dy if dy is not None else _v _v = arg.pop('error_x', None) - self.error_x = error_x if error_x is not None else _v + self['error_x'] = error_x if error_x is not None else _v _v = arg.pop('error_y', None) - self.error_y = error_y if error_y is not None else _v + self['error_y'] = error_y if error_y is not None else _v _v = arg.pop('fill', None) - self.fill = fill if fill is not None else _v + self['fill'] = fill if fill is not None else _v _v = arg.pop('fillcolor', None) - self.fillcolor = fillcolor if fillcolor is not None else _v + self['fillcolor'] = fillcolor if fillcolor is not None else _v _v = arg.pop('hoverinfo', None) - self.hoverinfo = hoverinfo if hoverinfo is not None else _v + self['hoverinfo'] = hoverinfo if hoverinfo is not None else _v _v = arg.pop('hoverinfosrc', None) - self.hoverinfosrc = hoverinfosrc if hoverinfosrc is not None else _v + self['hoverinfosrc'] = hoverinfosrc if hoverinfosrc is not None else _v _v = arg.pop('hoverlabel', None) - self.hoverlabel = hoverlabel if hoverlabel is not None else _v + self['hoverlabel'] = hoverlabel if hoverlabel is not None else _v _v = arg.pop('hoveron', None) - self.hoveron = hoveron if hoveron is not None else _v + self['hoveron'] = hoveron if hoveron is not None else _v _v = arg.pop('hovertext', None) - self.hovertext = hovertext if hovertext is not None else _v + self['hovertext'] = hovertext if hovertext is not None else _v _v = arg.pop('hovertextsrc', None) - self.hovertextsrc = hovertextsrc if hovertextsrc is not None else _v + self['hovertextsrc'] = hovertextsrc if hovertextsrc is not None else _v _v = arg.pop('ids', None) - self.ids = ids if ids is not None else _v + self['ids'] = ids if ids is not None else _v _v = arg.pop('idssrc', None) - self.idssrc = idssrc if idssrc is not None else _v + self['idssrc'] = idssrc if idssrc is not None else _v _v = arg.pop('legendgroup', None) - self.legendgroup = legendgroup if legendgroup is not None else _v + self['legendgroup'] = legendgroup if legendgroup is not None else _v _v = arg.pop('line', None) - self.line = line if line is not None else _v + self['line'] = line if line is not None else _v _v = arg.pop('marker', None) - self.marker = marker if marker is not None else _v + self['marker'] = marker if marker is not None else _v _v = arg.pop('mode', None) - self.mode = mode if mode is not None else _v + self['mode'] = mode if mode is not None else _v _v = arg.pop('name', None) - self.name = name if name is not None else _v + self['name'] = name if name is not None else _v _v = arg.pop('opacity', None) - self.opacity = opacity if opacity is not None else _v + self['opacity'] = opacity if opacity is not None else _v _v = arg.pop('r', None) - self.r = r if r is not None else _v + self['r'] = r if r is not None else _v _v = arg.pop('rsrc', None) - self.rsrc = rsrc if rsrc is not None else _v + self['rsrc'] = rsrc if rsrc is not None else _v _v = arg.pop('selected', None) - self.selected = selected if selected is not None else _v + self['selected'] = selected if selected is not None else _v _v = arg.pop('selectedpoints', None) - self.selectedpoints = selectedpoints if selectedpoints is not None else _v + self['selectedpoints' + ] = selectedpoints if selectedpoints is not None else _v _v = arg.pop('showlegend', None) - self.showlegend = showlegend if showlegend is not None else _v + self['showlegend'] = showlegend if showlegend is not None else _v _v = arg.pop('stream', None) - self.stream = stream if stream is not None else _v + self['stream'] = stream if stream is not None else _v _v = arg.pop('t', None) - self.t = t if t is not None else _v + self['t'] = t if t is not None else _v _v = arg.pop('text', None) - self.text = text if text is not None else _v + self['text'] = text if text is not None else _v _v = arg.pop('textfont', None) - self.textfont = textfont if textfont is not None else _v + self['textfont'] = textfont if textfont is not None else _v _v = arg.pop('textposition', None) - self.textposition = textposition if textposition is not None else _v + self['textposition'] = textposition if textposition is not None else _v _v = arg.pop('textpositionsrc', None) - self.textpositionsrc = textpositionsrc if textpositionsrc is not None else _v + self['textpositionsrc' + ] = textpositionsrc if textpositionsrc is not None else _v _v = arg.pop('textsrc', None) - self.textsrc = textsrc if textsrc is not None else _v + self['textsrc'] = textsrc if textsrc is not None else _v _v = arg.pop('tsrc', None) - self.tsrc = tsrc if tsrc is not None else _v + self['tsrc'] = tsrc if tsrc is not None else _v _v = arg.pop('uid', None) - self.uid = uid if uid is not None else _v + self['uid'] = uid if uid is not None else _v _v = arg.pop('unselected', None) - self.unselected = unselected if unselected is not None else _v + self['unselected'] = unselected if unselected is not None else _v _v = arg.pop('visible', None) - self.visible = visible if visible is not None else _v + self['visible'] = visible if visible is not None else _v _v = arg.pop('x', None) - self.x = x if x is not None else _v + self['x'] = x if x is not None else _v _v = arg.pop('x0', None) - self.x0 = x0 if x0 is not None else _v + self['x0'] = x0 if x0 is not None else _v _v = arg.pop('xaxis', None) - self.xaxis = xaxis if xaxis is not None else _v + self['xaxis'] = xaxis if xaxis is not None else _v _v = arg.pop('xcalendar', None) - self.xcalendar = xcalendar if xcalendar is not None else _v + self['xcalendar'] = xcalendar if xcalendar is not None else _v _v = arg.pop('xsrc', None) - self.xsrc = xsrc if xsrc is not None else _v + self['xsrc'] = xsrc if xsrc is not None else _v _v = arg.pop('y', None) - self.y = y if y is not None else _v + self['y'] = y if y is not None else _v _v = arg.pop('y0', None) - self.y0 = y0 if y0 is not None else _v + self['y0'] = y0 if y0 is not None else _v _v = arg.pop('yaxis', None) - self.yaxis = yaxis if yaxis is not None else _v + self['yaxis'] = yaxis if yaxis is not None else _v _v = arg.pop('ycalendar', None) - self.ycalendar = ycalendar if ycalendar is not None else _v + self['ycalendar'] = ycalendar if ycalendar is not None else _v _v = arg.pop('ysrc', None) - self.ysrc = ysrc if ysrc is not None else _v + self['ysrc'] = ysrc if ysrc is not None else _v # Read-only literals # ------------------ diff --git a/plotly/graph_objs/_scatter3d.py b/plotly/graph_objs/_scatter3d.py index e5cf8696ef4..57ec89543a5 100644 --- a/plotly/graph_objs/_scatter3d.py +++ b/plotly/graph_objs/_scatter3d.py @@ -1799,87 +1799,89 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('connectgaps', None) - self.connectgaps = connectgaps if connectgaps is not None else _v + self['connectgaps'] = connectgaps if connectgaps is not None else _v _v = arg.pop('customdata', None) - self.customdata = customdata if customdata is not None else _v + self['customdata'] = customdata if customdata is not None else _v _v = arg.pop('customdatasrc', None) - self.customdatasrc = customdatasrc if customdatasrc is not None else _v + self['customdatasrc' + ] = customdatasrc if customdatasrc is not None else _v _v = arg.pop('error_x', None) - self.error_x = error_x if error_x is not None else _v + self['error_x'] = error_x if error_x is not None else _v _v = arg.pop('error_y', None) - self.error_y = error_y if error_y is not None else _v + self['error_y'] = error_y if error_y is not None else _v _v = arg.pop('error_z', None) - self.error_z = error_z if error_z is not None else _v + self['error_z'] = error_z if error_z is not None else _v _v = arg.pop('hoverinfo', None) - self.hoverinfo = hoverinfo if hoverinfo is not None else _v + self['hoverinfo'] = hoverinfo if hoverinfo is not None else _v _v = arg.pop('hoverinfosrc', None) - self.hoverinfosrc = hoverinfosrc if hoverinfosrc is not None else _v + self['hoverinfosrc'] = hoverinfosrc if hoverinfosrc is not None else _v _v = arg.pop('hoverlabel', None) - self.hoverlabel = hoverlabel if hoverlabel is not None else _v + self['hoverlabel'] = hoverlabel if hoverlabel is not None else _v _v = arg.pop('hovertext', None) - self.hovertext = hovertext if hovertext is not None else _v + self['hovertext'] = hovertext if hovertext is not None else _v _v = arg.pop('hovertextsrc', None) - self.hovertextsrc = hovertextsrc if hovertextsrc is not None else _v + self['hovertextsrc'] = hovertextsrc if hovertextsrc is not None else _v _v = arg.pop('ids', None) - self.ids = ids if ids is not None else _v + self['ids'] = ids if ids is not None else _v _v = arg.pop('idssrc', None) - self.idssrc = idssrc if idssrc is not None else _v + self['idssrc'] = idssrc if idssrc is not None else _v _v = arg.pop('legendgroup', None) - self.legendgroup = legendgroup if legendgroup is not None else _v + self['legendgroup'] = legendgroup if legendgroup is not None else _v _v = arg.pop('line', None) - self.line = line if line is not None else _v + self['line'] = line if line is not None else _v _v = arg.pop('marker', None) - self.marker = marker if marker is not None else _v + self['marker'] = marker if marker is not None else _v _v = arg.pop('mode', None) - self.mode = mode if mode is not None else _v + self['mode'] = mode if mode is not None else _v _v = arg.pop('name', None) - self.name = name if name is not None else _v + self['name'] = name if name is not None else _v _v = arg.pop('opacity', None) - self.opacity = opacity if opacity is not None else _v + self['opacity'] = opacity if opacity is not None else _v _v = arg.pop('projection', None) - self.projection = projection if projection is not None else _v + self['projection'] = projection if projection is not None else _v _v = arg.pop('scene', None) - self.scene = scene if scene is not None else _v + self['scene'] = scene if scene is not None else _v _v = arg.pop('selectedpoints', None) - self.selectedpoints = selectedpoints if selectedpoints is not None else _v + self['selectedpoints' + ] = selectedpoints if selectedpoints is not None else _v _v = arg.pop('showlegend', None) - self.showlegend = showlegend if showlegend is not None else _v + self['showlegend'] = showlegend if showlegend is not None else _v _v = arg.pop('stream', None) - self.stream = stream if stream is not None else _v + self['stream'] = stream if stream is not None else _v _v = arg.pop('surfaceaxis', None) - self.surfaceaxis = surfaceaxis if surfaceaxis is not None else _v + self['surfaceaxis'] = surfaceaxis if surfaceaxis is not None else _v _v = arg.pop('surfacecolor', None) - self.surfacecolor = surfacecolor if surfacecolor is not None else _v + self['surfacecolor'] = surfacecolor if surfacecolor is not None else _v _v = arg.pop('text', None) - self.text = text if text is not None else _v + self['text'] = text if text is not None else _v _v = arg.pop('textfont', None) - self.textfont = textfont if textfont is not None else _v + self['textfont'] = textfont if textfont is not None else _v _v = arg.pop('textposition', None) - self.textposition = textposition if textposition is not None else _v + self['textposition'] = textposition if textposition is not None else _v _v = arg.pop('textsrc', None) - self.textsrc = textsrc if textsrc is not None else _v + self['textsrc'] = textsrc if textsrc is not None else _v _v = arg.pop('uid', None) - self.uid = uid if uid is not None else _v + self['uid'] = uid if uid is not None else _v _v = arg.pop('visible', None) - self.visible = visible if visible is not None else _v + self['visible'] = visible if visible is not None else _v _v = arg.pop('x', None) - self.x = x if x is not None else _v + self['x'] = x if x is not None else _v _v = arg.pop('xcalendar', None) - self.xcalendar = xcalendar if xcalendar is not None else _v + self['xcalendar'] = xcalendar if xcalendar is not None else _v _v = arg.pop('xsrc', None) - self.xsrc = xsrc if xsrc is not None else _v + self['xsrc'] = xsrc if xsrc is not None else _v _v = arg.pop('y', None) - self.y = y if y is not None else _v + self['y'] = y if y is not None else _v _v = arg.pop('ycalendar', None) - self.ycalendar = ycalendar if ycalendar is not None else _v + self['ycalendar'] = ycalendar if ycalendar is not None else _v _v = arg.pop('ysrc', None) - self.ysrc = ysrc if ysrc is not None else _v + self['ysrc'] = ysrc if ysrc is not None else _v _v = arg.pop('z', None) - self.z = z if z is not None else _v + self['z'] = z if z is not None else _v _v = arg.pop('zcalendar', None) - self.zcalendar = zcalendar if zcalendar is not None else _v + self['zcalendar'] = zcalendar if zcalendar is not None else _v _v = arg.pop('zsrc', None) - self.zsrc = zsrc if zsrc is not None else _v + self['zsrc'] = zsrc if zsrc is not None else _v # Read-only literals # ------------------ diff --git a/plotly/graph_objs/_scattercarpet.py b/plotly/graph_objs/_scattercarpet.py index 26a8017247c..1127026f599 100644 --- a/plotly/graph_objs/_scattercarpet.py +++ b/plotly/graph_objs/_scattercarpet.py @@ -1503,77 +1503,80 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('a', None) - self.a = a if a is not None else _v + self['a'] = a if a is not None else _v _v = arg.pop('asrc', None) - self.asrc = asrc if asrc is not None else _v + self['asrc'] = asrc if asrc is not None else _v _v = arg.pop('b', None) - self.b = b if b is not None else _v + self['b'] = b if b is not None else _v _v = arg.pop('bsrc', None) - self.bsrc = bsrc if bsrc is not None else _v + self['bsrc'] = bsrc if bsrc is not None else _v _v = arg.pop('carpet', None) - self.carpet = carpet if carpet is not None else _v + self['carpet'] = carpet if carpet is not None else _v _v = arg.pop('connectgaps', None) - self.connectgaps = connectgaps if connectgaps is not None else _v + self['connectgaps'] = connectgaps if connectgaps is not None else _v _v = arg.pop('customdata', None) - self.customdata = customdata if customdata is not None else _v + self['customdata'] = customdata if customdata is not None else _v _v = arg.pop('customdatasrc', None) - self.customdatasrc = customdatasrc if customdatasrc is not None else _v + self['customdatasrc' + ] = customdatasrc if customdatasrc is not None else _v _v = arg.pop('fill', None) - self.fill = fill if fill is not None else _v + self['fill'] = fill if fill is not None else _v _v = arg.pop('fillcolor', None) - self.fillcolor = fillcolor if fillcolor is not None else _v + self['fillcolor'] = fillcolor if fillcolor is not None else _v _v = arg.pop('hoverinfo', None) - self.hoverinfo = hoverinfo if hoverinfo is not None else _v + self['hoverinfo'] = hoverinfo if hoverinfo is not None else _v _v = arg.pop('hoverinfosrc', None) - self.hoverinfosrc = hoverinfosrc if hoverinfosrc is not None else _v + self['hoverinfosrc'] = hoverinfosrc if hoverinfosrc is not None else _v _v = arg.pop('hoverlabel', None) - self.hoverlabel = hoverlabel if hoverlabel is not None else _v + self['hoverlabel'] = hoverlabel if hoverlabel is not None else _v _v = arg.pop('hoveron', None) - self.hoveron = hoveron if hoveron is not None else _v + self['hoveron'] = hoveron if hoveron is not None else _v _v = arg.pop('ids', None) - self.ids = ids if ids is not None else _v + self['ids'] = ids if ids is not None else _v _v = arg.pop('idssrc', None) - self.idssrc = idssrc if idssrc is not None else _v + self['idssrc'] = idssrc if idssrc is not None else _v _v = arg.pop('legendgroup', None) - self.legendgroup = legendgroup if legendgroup is not None else _v + self['legendgroup'] = legendgroup if legendgroup is not None else _v _v = arg.pop('line', None) - self.line = line if line is not None else _v + self['line'] = line if line is not None else _v _v = arg.pop('marker', None) - self.marker = marker if marker is not None else _v + self['marker'] = marker if marker is not None else _v _v = arg.pop('mode', None) - self.mode = mode if mode is not None else _v + self['mode'] = mode if mode is not None else _v _v = arg.pop('name', None) - self.name = name if name is not None else _v + self['name'] = name if name is not None else _v _v = arg.pop('opacity', None) - self.opacity = opacity if opacity is not None else _v + self['opacity'] = opacity if opacity is not None else _v _v = arg.pop('selected', None) - self.selected = selected if selected is not None else _v + self['selected'] = selected if selected is not None else _v _v = arg.pop('selectedpoints', None) - self.selectedpoints = selectedpoints if selectedpoints is not None else _v + self['selectedpoints' + ] = selectedpoints if selectedpoints is not None else _v _v = arg.pop('showlegend', None) - self.showlegend = showlegend if showlegend is not None else _v + self['showlegend'] = showlegend if showlegend is not None else _v _v = arg.pop('stream', None) - self.stream = stream if stream is not None else _v + self['stream'] = stream if stream is not None else _v _v = arg.pop('text', None) - self.text = text if text is not None else _v + self['text'] = text if text is not None else _v _v = arg.pop('textfont', None) - self.textfont = textfont if textfont is not None else _v + self['textfont'] = textfont if textfont is not None else _v _v = arg.pop('textposition', None) - self.textposition = textposition if textposition is not None else _v + self['textposition'] = textposition if textposition is not None else _v _v = arg.pop('textpositionsrc', None) - self.textpositionsrc = textpositionsrc if textpositionsrc is not None else _v + self['textpositionsrc' + ] = textpositionsrc if textpositionsrc is not None else _v _v = arg.pop('textsrc', None) - self.textsrc = textsrc if textsrc is not None else _v + self['textsrc'] = textsrc if textsrc is not None else _v _v = arg.pop('uid', None) - self.uid = uid if uid is not None else _v + self['uid'] = uid if uid is not None else _v _v = arg.pop('unselected', None) - self.unselected = unselected if unselected is not None else _v + self['unselected'] = unselected if unselected is not None else _v _v = arg.pop('visible', None) - self.visible = visible if visible is not None else _v + self['visible'] = visible if visible is not None else _v _v = arg.pop('xaxis', None) - self.xaxis = xaxis if xaxis is not None else _v + self['xaxis'] = xaxis if xaxis is not None else _v _v = arg.pop('yaxis', None) - self.yaxis = yaxis if yaxis is not None else _v + self['yaxis'] = yaxis if yaxis is not None else _v # Read-only literals # ------------------ diff --git a/plotly/graph_objs/_scattergeo.py b/plotly/graph_objs/_scattergeo.py index 38d4cc5db9a..4e3f1484785 100644 --- a/plotly/graph_objs/_scattergeo.py +++ b/plotly/graph_objs/_scattergeo.py @@ -1508,81 +1508,84 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('connectgaps', None) - self.connectgaps = connectgaps if connectgaps is not None else _v + self['connectgaps'] = connectgaps if connectgaps is not None else _v _v = arg.pop('customdata', None) - self.customdata = customdata if customdata is not None else _v + self['customdata'] = customdata if customdata is not None else _v _v = arg.pop('customdatasrc', None) - self.customdatasrc = customdatasrc if customdatasrc is not None else _v + self['customdatasrc' + ] = customdatasrc if customdatasrc is not None else _v _v = arg.pop('fill', None) - self.fill = fill if fill is not None else _v + self['fill'] = fill if fill is not None else _v _v = arg.pop('fillcolor', None) - self.fillcolor = fillcolor if fillcolor is not None else _v + self['fillcolor'] = fillcolor if fillcolor is not None else _v _v = arg.pop('geo', None) - self.geo = geo if geo is not None else _v + self['geo'] = geo if geo is not None else _v _v = arg.pop('hoverinfo', None) - self.hoverinfo = hoverinfo if hoverinfo is not None else _v + self['hoverinfo'] = hoverinfo if hoverinfo is not None else _v _v = arg.pop('hoverinfosrc', None) - self.hoverinfosrc = hoverinfosrc if hoverinfosrc is not None else _v + self['hoverinfosrc'] = hoverinfosrc if hoverinfosrc is not None else _v _v = arg.pop('hoverlabel', None) - self.hoverlabel = hoverlabel if hoverlabel is not None else _v + self['hoverlabel'] = hoverlabel if hoverlabel is not None else _v _v = arg.pop('hovertext', None) - self.hovertext = hovertext if hovertext is not None else _v + self['hovertext'] = hovertext if hovertext is not None else _v _v = arg.pop('hovertextsrc', None) - self.hovertextsrc = hovertextsrc if hovertextsrc is not None else _v + self['hovertextsrc'] = hovertextsrc if hovertextsrc is not None else _v _v = arg.pop('ids', None) - self.ids = ids if ids is not None else _v + self['ids'] = ids if ids is not None else _v _v = arg.pop('idssrc', None) - self.idssrc = idssrc if idssrc is not None else _v + self['idssrc'] = idssrc if idssrc is not None else _v _v = arg.pop('lat', None) - self.lat = lat if lat is not None else _v + self['lat'] = lat if lat is not None else _v _v = arg.pop('latsrc', None) - self.latsrc = latsrc if latsrc is not None else _v + self['latsrc'] = latsrc if latsrc is not None else _v _v = arg.pop('legendgroup', None) - self.legendgroup = legendgroup if legendgroup is not None else _v + self['legendgroup'] = legendgroup if legendgroup is not None else _v _v = arg.pop('line', None) - self.line = line if line is not None else _v + self['line'] = line if line is not None else _v _v = arg.pop('locationmode', None) - self.locationmode = locationmode if locationmode is not None else _v + self['locationmode'] = locationmode if locationmode is not None else _v _v = arg.pop('locations', None) - self.locations = locations if locations is not None else _v + self['locations'] = locations if locations is not None else _v _v = arg.pop('locationssrc', None) - self.locationssrc = locationssrc if locationssrc is not None else _v + self['locationssrc'] = locationssrc if locationssrc is not None else _v _v = arg.pop('lon', None) - self.lon = lon if lon is not None else _v + self['lon'] = lon if lon is not None else _v _v = arg.pop('lonsrc', None) - self.lonsrc = lonsrc if lonsrc is not None else _v + self['lonsrc'] = lonsrc if lonsrc is not None else _v _v = arg.pop('marker', None) - self.marker = marker if marker is not None else _v + self['marker'] = marker if marker is not None else _v _v = arg.pop('mode', None) - self.mode = mode if mode is not None else _v + self['mode'] = mode if mode is not None else _v _v = arg.pop('name', None) - self.name = name if name is not None else _v + self['name'] = name if name is not None else _v _v = arg.pop('opacity', None) - self.opacity = opacity if opacity is not None else _v + self['opacity'] = opacity if opacity is not None else _v _v = arg.pop('selected', None) - self.selected = selected if selected is not None else _v + self['selected'] = selected if selected is not None else _v _v = arg.pop('selectedpoints', None) - self.selectedpoints = selectedpoints if selectedpoints is not None else _v + self['selectedpoints' + ] = selectedpoints if selectedpoints is not None else _v _v = arg.pop('showlegend', None) - self.showlegend = showlegend if showlegend is not None else _v + self['showlegend'] = showlegend if showlegend is not None else _v _v = arg.pop('stream', None) - self.stream = stream if stream is not None else _v + self['stream'] = stream if stream is not None else _v _v = arg.pop('text', None) - self.text = text if text is not None else _v + self['text'] = text if text is not None else _v _v = arg.pop('textfont', None) - self.textfont = textfont if textfont is not None else _v + self['textfont'] = textfont if textfont is not None else _v _v = arg.pop('textposition', None) - self.textposition = textposition if textposition is not None else _v + self['textposition'] = textposition if textposition is not None else _v _v = arg.pop('textpositionsrc', None) - self.textpositionsrc = textpositionsrc if textpositionsrc is not None else _v + self['textpositionsrc' + ] = textpositionsrc if textpositionsrc is not None else _v _v = arg.pop('textsrc', None) - self.textsrc = textsrc if textsrc is not None else _v + self['textsrc'] = textsrc if textsrc is not None else _v _v = arg.pop('uid', None) - self.uid = uid if uid is not None else _v + self['uid'] = uid if uid is not None else _v _v = arg.pop('unselected', None) - self.unselected = unselected if unselected is not None else _v + self['unselected'] = unselected if unselected is not None else _v _v = arg.pop('visible', None) - self.visible = visible if visible is not None else _v + self['visible'] = visible if visible is not None else _v # Read-only literals # ------------------ diff --git a/plotly/graph_objs/_scattergl.py b/plotly/graph_objs/_scattergl.py index b0ea6891f28..d4d915ed977 100644 --- a/plotly/graph_objs/_scattergl.py +++ b/plotly/graph_objs/_scattergl.py @@ -1808,93 +1808,96 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('connectgaps', None) - self.connectgaps = connectgaps if connectgaps is not None else _v + self['connectgaps'] = connectgaps if connectgaps is not None else _v _v = arg.pop('customdata', None) - self.customdata = customdata if customdata is not None else _v + self['customdata'] = customdata if customdata is not None else _v _v = arg.pop('customdatasrc', None) - self.customdatasrc = customdatasrc if customdatasrc is not None else _v + self['customdatasrc' + ] = customdatasrc if customdatasrc is not None else _v _v = arg.pop('dx', None) - self.dx = dx if dx is not None else _v + self['dx'] = dx if dx is not None else _v _v = arg.pop('dy', None) - self.dy = dy if dy is not None else _v + self['dy'] = dy if dy is not None else _v _v = arg.pop('error_x', None) - self.error_x = error_x if error_x is not None else _v + self['error_x'] = error_x if error_x is not None else _v _v = arg.pop('error_y', None) - self.error_y = error_y if error_y is not None else _v + self['error_y'] = error_y if error_y is not None else _v _v = arg.pop('fill', None) - self.fill = fill if fill is not None else _v + self['fill'] = fill if fill is not None else _v _v = arg.pop('fillcolor', None) - self.fillcolor = fillcolor if fillcolor is not None else _v + self['fillcolor'] = fillcolor if fillcolor is not None else _v _v = arg.pop('hoverinfo', None) - self.hoverinfo = hoverinfo if hoverinfo is not None else _v + self['hoverinfo'] = hoverinfo if hoverinfo is not None else _v _v = arg.pop('hoverinfosrc', None) - self.hoverinfosrc = hoverinfosrc if hoverinfosrc is not None else _v + self['hoverinfosrc'] = hoverinfosrc if hoverinfosrc is not None else _v _v = arg.pop('hoverlabel', None) - self.hoverlabel = hoverlabel if hoverlabel is not None else _v + self['hoverlabel'] = hoverlabel if hoverlabel is not None else _v _v = arg.pop('hovertext', None) - self.hovertext = hovertext if hovertext is not None else _v + self['hovertext'] = hovertext if hovertext is not None else _v _v = arg.pop('hovertextsrc', None) - self.hovertextsrc = hovertextsrc if hovertextsrc is not None else _v + self['hovertextsrc'] = hovertextsrc if hovertextsrc is not None else _v _v = arg.pop('ids', None) - self.ids = ids if ids is not None else _v + self['ids'] = ids if ids is not None else _v _v = arg.pop('idssrc', None) - self.idssrc = idssrc if idssrc is not None else _v + self['idssrc'] = idssrc if idssrc is not None else _v _v = arg.pop('legendgroup', None) - self.legendgroup = legendgroup if legendgroup is not None else _v + self['legendgroup'] = legendgroup if legendgroup is not None else _v _v = arg.pop('line', None) - self.line = line if line is not None else _v + self['line'] = line if line is not None else _v _v = arg.pop('marker', None) - self.marker = marker if marker is not None else _v + self['marker'] = marker if marker is not None else _v _v = arg.pop('mode', None) - self.mode = mode if mode is not None else _v + self['mode'] = mode if mode is not None else _v _v = arg.pop('name', None) - self.name = name if name is not None else _v + self['name'] = name if name is not None else _v _v = arg.pop('opacity', None) - self.opacity = opacity if opacity is not None else _v + self['opacity'] = opacity if opacity is not None else _v _v = arg.pop('selected', None) - self.selected = selected if selected is not None else _v + self['selected'] = selected if selected is not None else _v _v = arg.pop('selectedpoints', None) - self.selectedpoints = selectedpoints if selectedpoints is not None else _v + self['selectedpoints' + ] = selectedpoints if selectedpoints is not None else _v _v = arg.pop('showlegend', None) - self.showlegend = showlegend if showlegend is not None else _v + self['showlegend'] = showlegend if showlegend is not None else _v _v = arg.pop('stream', None) - self.stream = stream if stream is not None else _v + self['stream'] = stream if stream is not None else _v _v = arg.pop('text', None) - self.text = text if text is not None else _v + self['text'] = text if text is not None else _v _v = arg.pop('textfont', None) - self.textfont = textfont if textfont is not None else _v + self['textfont'] = textfont if textfont is not None else _v _v = arg.pop('textposition', None) - self.textposition = textposition if textposition is not None else _v + self['textposition'] = textposition if textposition is not None else _v _v = arg.pop('textpositionsrc', None) - self.textpositionsrc = textpositionsrc if textpositionsrc is not None else _v + self['textpositionsrc' + ] = textpositionsrc if textpositionsrc is not None else _v _v = arg.pop('textsrc', None) - self.textsrc = textsrc if textsrc is not None else _v + self['textsrc'] = textsrc if textsrc is not None else _v _v = arg.pop('uid', None) - self.uid = uid if uid is not None else _v + self['uid'] = uid if uid is not None else _v _v = arg.pop('unselected', None) - self.unselected = unselected if unselected is not None else _v + self['unselected'] = unselected if unselected is not None else _v _v = arg.pop('visible', None) - self.visible = visible if visible is not None else _v + self['visible'] = visible if visible is not None else _v _v = arg.pop('x', None) - self.x = x if x is not None else _v + self['x'] = x if x is not None else _v _v = arg.pop('x0', None) - self.x0 = x0 if x0 is not None else _v + self['x0'] = x0 if x0 is not None else _v _v = arg.pop('xaxis', None) - self.xaxis = xaxis if xaxis is not None else _v + self['xaxis'] = xaxis if xaxis is not None else _v _v = arg.pop('xcalendar', None) - self.xcalendar = xcalendar if xcalendar is not None else _v + self['xcalendar'] = xcalendar if xcalendar is not None else _v _v = arg.pop('xsrc', None) - self.xsrc = xsrc if xsrc is not None else _v + self['xsrc'] = xsrc if xsrc is not None else _v _v = arg.pop('y', None) - self.y = y if y is not None else _v + self['y'] = y if y is not None else _v _v = arg.pop('y0', None) - self.y0 = y0 if y0 is not None else _v + self['y0'] = y0 if y0 is not None else _v _v = arg.pop('yaxis', None) - self.yaxis = yaxis if yaxis is not None else _v + self['yaxis'] = yaxis if yaxis is not None else _v _v = arg.pop('ycalendar', None) - self.ycalendar = ycalendar if ycalendar is not None else _v + self['ycalendar'] = ycalendar if ycalendar is not None else _v _v = arg.pop('ysrc', None) - self.ysrc = ysrc if ysrc is not None else _v + self['ysrc'] = ysrc if ysrc is not None else _v # Read-only literals # ------------------ diff --git a/plotly/graph_objs/_scattermapbox.py b/plotly/graph_objs/_scattermapbox.py index 7122f4568c6..deee4e8b07d 100644 --- a/plotly/graph_objs/_scattermapbox.py +++ b/plotly/graph_objs/_scattermapbox.py @@ -1357,73 +1357,75 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('connectgaps', None) - self.connectgaps = connectgaps if connectgaps is not None else _v + self['connectgaps'] = connectgaps if connectgaps is not None else _v _v = arg.pop('customdata', None) - self.customdata = customdata if customdata is not None else _v + self['customdata'] = customdata if customdata is not None else _v _v = arg.pop('customdatasrc', None) - self.customdatasrc = customdatasrc if customdatasrc is not None else _v + self['customdatasrc' + ] = customdatasrc if customdatasrc is not None else _v _v = arg.pop('fill', None) - self.fill = fill if fill is not None else _v + self['fill'] = fill if fill is not None else _v _v = arg.pop('fillcolor', None) - self.fillcolor = fillcolor if fillcolor is not None else _v + self['fillcolor'] = fillcolor if fillcolor is not None else _v _v = arg.pop('hoverinfo', None) - self.hoverinfo = hoverinfo if hoverinfo is not None else _v + self['hoverinfo'] = hoverinfo if hoverinfo is not None else _v _v = arg.pop('hoverinfosrc', None) - self.hoverinfosrc = hoverinfosrc if hoverinfosrc is not None else _v + self['hoverinfosrc'] = hoverinfosrc if hoverinfosrc is not None else _v _v = arg.pop('hoverlabel', None) - self.hoverlabel = hoverlabel if hoverlabel is not None else _v + self['hoverlabel'] = hoverlabel if hoverlabel is not None else _v _v = arg.pop('hovertext', None) - self.hovertext = hovertext if hovertext is not None else _v + self['hovertext'] = hovertext if hovertext is not None else _v _v = arg.pop('hovertextsrc', None) - self.hovertextsrc = hovertextsrc if hovertextsrc is not None else _v + self['hovertextsrc'] = hovertextsrc if hovertextsrc is not None else _v _v = arg.pop('ids', None) - self.ids = ids if ids is not None else _v + self['ids'] = ids if ids is not None else _v _v = arg.pop('idssrc', None) - self.idssrc = idssrc if idssrc is not None else _v + self['idssrc'] = idssrc if idssrc is not None else _v _v = arg.pop('lat', None) - self.lat = lat if lat is not None else _v + self['lat'] = lat if lat is not None else _v _v = arg.pop('latsrc', None) - self.latsrc = latsrc if latsrc is not None else _v + self['latsrc'] = latsrc if latsrc is not None else _v _v = arg.pop('legendgroup', None) - self.legendgroup = legendgroup if legendgroup is not None else _v + self['legendgroup'] = legendgroup if legendgroup is not None else _v _v = arg.pop('line', None) - self.line = line if line is not None else _v + self['line'] = line if line is not None else _v _v = arg.pop('lon', None) - self.lon = lon if lon is not None else _v + self['lon'] = lon if lon is not None else _v _v = arg.pop('lonsrc', None) - self.lonsrc = lonsrc if lonsrc is not None else _v + self['lonsrc'] = lonsrc if lonsrc is not None else _v _v = arg.pop('marker', None) - self.marker = marker if marker is not None else _v + self['marker'] = marker if marker is not None else _v _v = arg.pop('mode', None) - self.mode = mode if mode is not None else _v + self['mode'] = mode if mode is not None else _v _v = arg.pop('name', None) - self.name = name if name is not None else _v + self['name'] = name if name is not None else _v _v = arg.pop('opacity', None) - self.opacity = opacity if opacity is not None else _v + self['opacity'] = opacity if opacity is not None else _v _v = arg.pop('selected', None) - self.selected = selected if selected is not None else _v + self['selected'] = selected if selected is not None else _v _v = arg.pop('selectedpoints', None) - self.selectedpoints = selectedpoints if selectedpoints is not None else _v + self['selectedpoints' + ] = selectedpoints if selectedpoints is not None else _v _v = arg.pop('showlegend', None) - self.showlegend = showlegend if showlegend is not None else _v + self['showlegend'] = showlegend if showlegend is not None else _v _v = arg.pop('stream', None) - self.stream = stream if stream is not None else _v + self['stream'] = stream if stream is not None else _v _v = arg.pop('subplot', None) - self.subplot = subplot if subplot is not None else _v + self['subplot'] = subplot if subplot is not None else _v _v = arg.pop('text', None) - self.text = text if text is not None else _v + self['text'] = text if text is not None else _v _v = arg.pop('textfont', None) - self.textfont = textfont if textfont is not None else _v + self['textfont'] = textfont if textfont is not None else _v _v = arg.pop('textposition', None) - self.textposition = textposition if textposition is not None else _v + self['textposition'] = textposition if textposition is not None else _v _v = arg.pop('textsrc', None) - self.textsrc = textsrc if textsrc is not None else _v + self['textsrc'] = textsrc if textsrc is not None else _v _v = arg.pop('uid', None) - self.uid = uid if uid is not None else _v + self['uid'] = uid if uid is not None else _v _v = arg.pop('unselected', None) - self.unselected = unselected if unselected is not None else _v + self['unselected'] = unselected if unselected is not None else _v _v = arg.pop('visible', None) - self.visible = visible if visible is not None else _v + self['visible'] = visible if visible is not None else _v # Read-only literals # ------------------ diff --git a/plotly/graph_objs/_scatterpolar.py b/plotly/graph_objs/_scatterpolar.py index 24fbc1b84d2..b63c0d49a3b 100644 --- a/plotly/graph_objs/_scatterpolar.py +++ b/plotly/graph_objs/_scatterpolar.py @@ -1677,89 +1677,92 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('cliponaxis', None) - self.cliponaxis = cliponaxis if cliponaxis is not None else _v + self['cliponaxis'] = cliponaxis if cliponaxis is not None else _v _v = arg.pop('connectgaps', None) - self.connectgaps = connectgaps if connectgaps is not None else _v + self['connectgaps'] = connectgaps if connectgaps is not None else _v _v = arg.pop('customdata', None) - self.customdata = customdata if customdata is not None else _v + self['customdata'] = customdata if customdata is not None else _v _v = arg.pop('customdatasrc', None) - self.customdatasrc = customdatasrc if customdatasrc is not None else _v + self['customdatasrc' + ] = customdatasrc if customdatasrc is not None else _v _v = arg.pop('dr', None) - self.dr = dr if dr is not None else _v + self['dr'] = dr if dr is not None else _v _v = arg.pop('dtheta', None) - self.dtheta = dtheta if dtheta is not None else _v + self['dtheta'] = dtheta if dtheta is not None else _v _v = arg.pop('fill', None) - self.fill = fill if fill is not None else _v + self['fill'] = fill if fill is not None else _v _v = arg.pop('fillcolor', None) - self.fillcolor = fillcolor if fillcolor is not None else _v + self['fillcolor'] = fillcolor if fillcolor is not None else _v _v = arg.pop('hoverinfo', None) - self.hoverinfo = hoverinfo if hoverinfo is not None else _v + self['hoverinfo'] = hoverinfo if hoverinfo is not None else _v _v = arg.pop('hoverinfosrc', None) - self.hoverinfosrc = hoverinfosrc if hoverinfosrc is not None else _v + self['hoverinfosrc'] = hoverinfosrc if hoverinfosrc is not None else _v _v = arg.pop('hoverlabel', None) - self.hoverlabel = hoverlabel if hoverlabel is not None else _v + self['hoverlabel'] = hoverlabel if hoverlabel is not None else _v _v = arg.pop('hoveron', None) - self.hoveron = hoveron if hoveron is not None else _v + self['hoveron'] = hoveron if hoveron is not None else _v _v = arg.pop('hovertext', None) - self.hovertext = hovertext if hovertext is not None else _v + self['hovertext'] = hovertext if hovertext is not None else _v _v = arg.pop('hovertextsrc', None) - self.hovertextsrc = hovertextsrc if hovertextsrc is not None else _v + self['hovertextsrc'] = hovertextsrc if hovertextsrc is not None else _v _v = arg.pop('ids', None) - self.ids = ids if ids is not None else _v + self['ids'] = ids if ids is not None else _v _v = arg.pop('idssrc', None) - self.idssrc = idssrc if idssrc is not None else _v + self['idssrc'] = idssrc if idssrc is not None else _v _v = arg.pop('legendgroup', None) - self.legendgroup = legendgroup if legendgroup is not None else _v + self['legendgroup'] = legendgroup if legendgroup is not None else _v _v = arg.pop('line', None) - self.line = line if line is not None else _v + self['line'] = line if line is not None else _v _v = arg.pop('marker', None) - self.marker = marker if marker is not None else _v + self['marker'] = marker if marker is not None else _v _v = arg.pop('mode', None) - self.mode = mode if mode is not None else _v + self['mode'] = mode if mode is not None else _v _v = arg.pop('name', None) - self.name = name if name is not None else _v + self['name'] = name if name is not None else _v _v = arg.pop('opacity', None) - self.opacity = opacity if opacity is not None else _v + self['opacity'] = opacity if opacity is not None else _v _v = arg.pop('r', None) - self.r = r if r is not None else _v + self['r'] = r if r is not None else _v _v = arg.pop('r0', None) - self.r0 = r0 if r0 is not None else _v + self['r0'] = r0 if r0 is not None else _v _v = arg.pop('rsrc', None) - self.rsrc = rsrc if rsrc is not None else _v + self['rsrc'] = rsrc if rsrc is not None else _v _v = arg.pop('selected', None) - self.selected = selected if selected is not None else _v + self['selected'] = selected if selected is not None else _v _v = arg.pop('selectedpoints', None) - self.selectedpoints = selectedpoints if selectedpoints is not None else _v + self['selectedpoints' + ] = selectedpoints if selectedpoints is not None else _v _v = arg.pop('showlegend', None) - self.showlegend = showlegend if showlegend is not None else _v + self['showlegend'] = showlegend if showlegend is not None else _v _v = arg.pop('stream', None) - self.stream = stream if stream is not None else _v + self['stream'] = stream if stream is not None else _v _v = arg.pop('subplot', None) - self.subplot = subplot if subplot is not None else _v + self['subplot'] = subplot if subplot is not None else _v _v = arg.pop('text', None) - self.text = text if text is not None else _v + self['text'] = text if text is not None else _v _v = arg.pop('textfont', None) - self.textfont = textfont if textfont is not None else _v + self['textfont'] = textfont if textfont is not None else _v _v = arg.pop('textposition', None) - self.textposition = textposition if textposition is not None else _v + self['textposition'] = textposition if textposition is not None else _v _v = arg.pop('textpositionsrc', None) - self.textpositionsrc = textpositionsrc if textpositionsrc is not None else _v + self['textpositionsrc' + ] = textpositionsrc if textpositionsrc is not None else _v _v = arg.pop('textsrc', None) - self.textsrc = textsrc if textsrc is not None else _v + self['textsrc'] = textsrc if textsrc is not None else _v _v = arg.pop('theta', None) - self.theta = theta if theta is not None else _v + self['theta'] = theta if theta is not None else _v _v = arg.pop('theta0', None) - self.theta0 = theta0 if theta0 is not None else _v + self['theta0'] = theta0 if theta0 is not None else _v _v = arg.pop('thetasrc', None) - self.thetasrc = thetasrc if thetasrc is not None else _v + self['thetasrc'] = thetasrc if thetasrc is not None else _v _v = arg.pop('thetaunit', None) - self.thetaunit = thetaunit if thetaunit is not None else _v + self['thetaunit'] = thetaunit if thetaunit is not None else _v _v = arg.pop('uid', None) - self.uid = uid if uid is not None else _v + self['uid'] = uid if uid is not None else _v _v = arg.pop('unselected', None) - self.unselected = unselected if unselected is not None else _v + self['unselected'] = unselected if unselected is not None else _v _v = arg.pop('visible', None) - self.visible = visible if visible is not None else _v + self['visible'] = visible if visible is not None else _v # Read-only literals # ------------------ diff --git a/plotly/graph_objs/_scatterpolargl.py b/plotly/graph_objs/_scatterpolargl.py index 5dca2627e5a..6eab6c77a58 100644 --- a/plotly/graph_objs/_scatterpolargl.py +++ b/plotly/graph_objs/_scatterpolargl.py @@ -1599,85 +1599,88 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('connectgaps', None) - self.connectgaps = connectgaps if connectgaps is not None else _v + self['connectgaps'] = connectgaps if connectgaps is not None else _v _v = arg.pop('customdata', None) - self.customdata = customdata if customdata is not None else _v + self['customdata'] = customdata if customdata is not None else _v _v = arg.pop('customdatasrc', None) - self.customdatasrc = customdatasrc if customdatasrc is not None else _v + self['customdatasrc' + ] = customdatasrc if customdatasrc is not None else _v _v = arg.pop('dr', None) - self.dr = dr if dr is not None else _v + self['dr'] = dr if dr is not None else _v _v = arg.pop('dtheta', None) - self.dtheta = dtheta if dtheta is not None else _v + self['dtheta'] = dtheta if dtheta is not None else _v _v = arg.pop('fill', None) - self.fill = fill if fill is not None else _v + self['fill'] = fill if fill is not None else _v _v = arg.pop('fillcolor', None) - self.fillcolor = fillcolor if fillcolor is not None else _v + self['fillcolor'] = fillcolor if fillcolor is not None else _v _v = arg.pop('hoverinfo', None) - self.hoverinfo = hoverinfo if hoverinfo is not None else _v + self['hoverinfo'] = hoverinfo if hoverinfo is not None else _v _v = arg.pop('hoverinfosrc', None) - self.hoverinfosrc = hoverinfosrc if hoverinfosrc is not None else _v + self['hoverinfosrc'] = hoverinfosrc if hoverinfosrc is not None else _v _v = arg.pop('hoverlabel', None) - self.hoverlabel = hoverlabel if hoverlabel is not None else _v + self['hoverlabel'] = hoverlabel if hoverlabel is not None else _v _v = arg.pop('hovertext', None) - self.hovertext = hovertext if hovertext is not None else _v + self['hovertext'] = hovertext if hovertext is not None else _v _v = arg.pop('hovertextsrc', None) - self.hovertextsrc = hovertextsrc if hovertextsrc is not None else _v + self['hovertextsrc'] = hovertextsrc if hovertextsrc is not None else _v _v = arg.pop('ids', None) - self.ids = ids if ids is not None else _v + self['ids'] = ids if ids is not None else _v _v = arg.pop('idssrc', None) - self.idssrc = idssrc if idssrc is not None else _v + self['idssrc'] = idssrc if idssrc is not None else _v _v = arg.pop('legendgroup', None) - self.legendgroup = legendgroup if legendgroup is not None else _v + self['legendgroup'] = legendgroup if legendgroup is not None else _v _v = arg.pop('line', None) - self.line = line if line is not None else _v + self['line'] = line if line is not None else _v _v = arg.pop('marker', None) - self.marker = marker if marker is not None else _v + self['marker'] = marker if marker is not None else _v _v = arg.pop('mode', None) - self.mode = mode if mode is not None else _v + self['mode'] = mode if mode is not None else _v _v = arg.pop('name', None) - self.name = name if name is not None else _v + self['name'] = name if name is not None else _v _v = arg.pop('opacity', None) - self.opacity = opacity if opacity is not None else _v + self['opacity'] = opacity if opacity is not None else _v _v = arg.pop('r', None) - self.r = r if r is not None else _v + self['r'] = r if r is not None else _v _v = arg.pop('r0', None) - self.r0 = r0 if r0 is not None else _v + self['r0'] = r0 if r0 is not None else _v _v = arg.pop('rsrc', None) - self.rsrc = rsrc if rsrc is not None else _v + self['rsrc'] = rsrc if rsrc is not None else _v _v = arg.pop('selected', None) - self.selected = selected if selected is not None else _v + self['selected'] = selected if selected is not None else _v _v = arg.pop('selectedpoints', None) - self.selectedpoints = selectedpoints if selectedpoints is not None else _v + self['selectedpoints' + ] = selectedpoints if selectedpoints is not None else _v _v = arg.pop('showlegend', None) - self.showlegend = showlegend if showlegend is not None else _v + self['showlegend'] = showlegend if showlegend is not None else _v _v = arg.pop('stream', None) - self.stream = stream if stream is not None else _v + self['stream'] = stream if stream is not None else _v _v = arg.pop('subplot', None) - self.subplot = subplot if subplot is not None else _v + self['subplot'] = subplot if subplot is not None else _v _v = arg.pop('text', None) - self.text = text if text is not None else _v + self['text'] = text if text is not None else _v _v = arg.pop('textfont', None) - self.textfont = textfont if textfont is not None else _v + self['textfont'] = textfont if textfont is not None else _v _v = arg.pop('textposition', None) - self.textposition = textposition if textposition is not None else _v + self['textposition'] = textposition if textposition is not None else _v _v = arg.pop('textpositionsrc', None) - self.textpositionsrc = textpositionsrc if textpositionsrc is not None else _v + self['textpositionsrc' + ] = textpositionsrc if textpositionsrc is not None else _v _v = arg.pop('textsrc', None) - self.textsrc = textsrc if textsrc is not None else _v + self['textsrc'] = textsrc if textsrc is not None else _v _v = arg.pop('theta', None) - self.theta = theta if theta is not None else _v + self['theta'] = theta if theta is not None else _v _v = arg.pop('theta0', None) - self.theta0 = theta0 if theta0 is not None else _v + self['theta0'] = theta0 if theta0 is not None else _v _v = arg.pop('thetasrc', None) - self.thetasrc = thetasrc if thetasrc is not None else _v + self['thetasrc'] = thetasrc if thetasrc is not None else _v _v = arg.pop('thetaunit', None) - self.thetaunit = thetaunit if thetaunit is not None else _v + self['thetaunit'] = thetaunit if thetaunit is not None else _v _v = arg.pop('uid', None) - self.uid = uid if uid is not None else _v + self['uid'] = uid if uid is not None else _v _v = arg.pop('unselected', None) - self.unselected = unselected if unselected is not None else _v + self['unselected'] = unselected if unselected is not None else _v _v = arg.pop('visible', None) - self.visible = visible if visible is not None else _v + self['visible'] = visible if visible is not None else _v # Read-only literals # ------------------ diff --git a/plotly/graph_objs/_scatterternary.py b/plotly/graph_objs/_scatterternary.py index 5e1061945b3..8be5ba34643 100644 --- a/plotly/graph_objs/_scatterternary.py +++ b/plotly/graph_objs/_scatterternary.py @@ -1651,85 +1651,88 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('a', None) - self.a = a if a is not None else _v + self['a'] = a if a is not None else _v _v = arg.pop('asrc', None) - self.asrc = asrc if asrc is not None else _v + self['asrc'] = asrc if asrc is not None else _v _v = arg.pop('b', None) - self.b = b if b is not None else _v + self['b'] = b if b is not None else _v _v = arg.pop('bsrc', None) - self.bsrc = bsrc if bsrc is not None else _v + self['bsrc'] = bsrc if bsrc is not None else _v _v = arg.pop('c', None) - self.c = c if c is not None else _v + self['c'] = c if c is not None else _v _v = arg.pop('cliponaxis', None) - self.cliponaxis = cliponaxis if cliponaxis is not None else _v + self['cliponaxis'] = cliponaxis if cliponaxis is not None else _v _v = arg.pop('connectgaps', None) - self.connectgaps = connectgaps if connectgaps is not None else _v + self['connectgaps'] = connectgaps if connectgaps is not None else _v _v = arg.pop('csrc', None) - self.csrc = csrc if csrc is not None else _v + self['csrc'] = csrc if csrc is not None else _v _v = arg.pop('customdata', None) - self.customdata = customdata if customdata is not None else _v + self['customdata'] = customdata if customdata is not None else _v _v = arg.pop('customdatasrc', None) - self.customdatasrc = customdatasrc if customdatasrc is not None else _v + self['customdatasrc' + ] = customdatasrc if customdatasrc is not None else _v _v = arg.pop('fill', None) - self.fill = fill if fill is not None else _v + self['fill'] = fill if fill is not None else _v _v = arg.pop('fillcolor', None) - self.fillcolor = fillcolor if fillcolor is not None else _v + self['fillcolor'] = fillcolor if fillcolor is not None else _v _v = arg.pop('hoverinfo', None) - self.hoverinfo = hoverinfo if hoverinfo is not None else _v + self['hoverinfo'] = hoverinfo if hoverinfo is not None else _v _v = arg.pop('hoverinfosrc', None) - self.hoverinfosrc = hoverinfosrc if hoverinfosrc is not None else _v + self['hoverinfosrc'] = hoverinfosrc if hoverinfosrc is not None else _v _v = arg.pop('hoverlabel', None) - self.hoverlabel = hoverlabel if hoverlabel is not None else _v + self['hoverlabel'] = hoverlabel if hoverlabel is not None else _v _v = arg.pop('hoveron', None) - self.hoveron = hoveron if hoveron is not None else _v + self['hoveron'] = hoveron if hoveron is not None else _v _v = arg.pop('hovertext', None) - self.hovertext = hovertext if hovertext is not None else _v + self['hovertext'] = hovertext if hovertext is not None else _v _v = arg.pop('hovertextsrc', None) - self.hovertextsrc = hovertextsrc if hovertextsrc is not None else _v + self['hovertextsrc'] = hovertextsrc if hovertextsrc is not None else _v _v = arg.pop('ids', None) - self.ids = ids if ids is not None else _v + self['ids'] = ids if ids is not None else _v _v = arg.pop('idssrc', None) - self.idssrc = idssrc if idssrc is not None else _v + self['idssrc'] = idssrc if idssrc is not None else _v _v = arg.pop('legendgroup', None) - self.legendgroup = legendgroup if legendgroup is not None else _v + self['legendgroup'] = legendgroup if legendgroup is not None else _v _v = arg.pop('line', None) - self.line = line if line is not None else _v + self['line'] = line if line is not None else _v _v = arg.pop('marker', None) - self.marker = marker if marker is not None else _v + self['marker'] = marker if marker is not None else _v _v = arg.pop('mode', None) - self.mode = mode if mode is not None else _v + self['mode'] = mode if mode is not None else _v _v = arg.pop('name', None) - self.name = name if name is not None else _v + self['name'] = name if name is not None else _v _v = arg.pop('opacity', None) - self.opacity = opacity if opacity is not None else _v + self['opacity'] = opacity if opacity is not None else _v _v = arg.pop('selected', None) - self.selected = selected if selected is not None else _v + self['selected'] = selected if selected is not None else _v _v = arg.pop('selectedpoints', None) - self.selectedpoints = selectedpoints if selectedpoints is not None else _v + self['selectedpoints' + ] = selectedpoints if selectedpoints is not None else _v _v = arg.pop('showlegend', None) - self.showlegend = showlegend if showlegend is not None else _v + self['showlegend'] = showlegend if showlegend is not None else _v _v = arg.pop('stream', None) - self.stream = stream if stream is not None else _v + self['stream'] = stream if stream is not None else _v _v = arg.pop('subplot', None) - self.subplot = subplot if subplot is not None else _v + self['subplot'] = subplot if subplot is not None else _v _v = arg.pop('sum', None) - self.sum = sum if sum is not None else _v + self['sum'] = sum if sum is not None else _v _v = arg.pop('text', None) - self.text = text if text is not None else _v + self['text'] = text if text is not None else _v _v = arg.pop('textfont', None) - self.textfont = textfont if textfont is not None else _v + self['textfont'] = textfont if textfont is not None else _v _v = arg.pop('textposition', None) - self.textposition = textposition if textposition is not None else _v + self['textposition'] = textposition if textposition is not None else _v _v = arg.pop('textpositionsrc', None) - self.textpositionsrc = textpositionsrc if textpositionsrc is not None else _v + self['textpositionsrc' + ] = textpositionsrc if textpositionsrc is not None else _v _v = arg.pop('textsrc', None) - self.textsrc = textsrc if textsrc is not None else _v + self['textsrc'] = textsrc if textsrc is not None else _v _v = arg.pop('uid', None) - self.uid = uid if uid is not None else _v + self['uid'] = uid if uid is not None else _v _v = arg.pop('unselected', None) - self.unselected = unselected if unselected is not None else _v + self['unselected'] = unselected if unselected is not None else _v _v = arg.pop('visible', None) - self.visible = visible if visible is not None else _v + self['visible'] = visible if visible is not None else _v # Read-only literals # ------------------ diff --git a/plotly/graph_objs/_splom.py b/plotly/graph_objs/_splom.py index 6a39f333fa0..d9682b963d7 100644 --- a/plotly/graph_objs/_splom.py +++ b/plotly/graph_objs/_splom.py @@ -1085,57 +1085,61 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('customdata', None) - self.customdata = customdata if customdata is not None else _v + self['customdata'] = customdata if customdata is not None else _v _v = arg.pop('customdatasrc', None) - self.customdatasrc = customdatasrc if customdatasrc is not None else _v + self['customdatasrc' + ] = customdatasrc if customdatasrc is not None else _v _v = arg.pop('diagonal', None) - self.diagonal = diagonal if diagonal is not None else _v + self['diagonal'] = diagonal if diagonal is not None else _v _v = arg.pop('dimensions', None) - self.dimensions = dimensions if dimensions is not None else _v + self['dimensions'] = dimensions if dimensions is not None else _v _v = arg.pop('hoverinfo', None) - self.hoverinfo = hoverinfo if hoverinfo is not None else _v + self['hoverinfo'] = hoverinfo if hoverinfo is not None else _v _v = arg.pop('hoverinfosrc', None) - self.hoverinfosrc = hoverinfosrc if hoverinfosrc is not None else _v + self['hoverinfosrc'] = hoverinfosrc if hoverinfosrc is not None else _v _v = arg.pop('hoverlabel', None) - self.hoverlabel = hoverlabel if hoverlabel is not None else _v + self['hoverlabel'] = hoverlabel if hoverlabel is not None else _v _v = arg.pop('ids', None) - self.ids = ids if ids is not None else _v + self['ids'] = ids if ids is not None else _v _v = arg.pop('idssrc', None) - self.idssrc = idssrc if idssrc is not None else _v + self['idssrc'] = idssrc if idssrc is not None else _v _v = arg.pop('legendgroup', None) - self.legendgroup = legendgroup if legendgroup is not None else _v + self['legendgroup'] = legendgroup if legendgroup is not None else _v _v = arg.pop('marker', None) - self.marker = marker if marker is not None else _v + self['marker'] = marker if marker is not None else _v _v = arg.pop('name', None) - self.name = name if name is not None else _v + self['name'] = name if name is not None else _v _v = arg.pop('opacity', None) - self.opacity = opacity if opacity is not None else _v + self['opacity'] = opacity if opacity is not None else _v _v = arg.pop('selected', None) - self.selected = selected if selected is not None else _v + self['selected'] = selected if selected is not None else _v _v = arg.pop('selectedpoints', None) - self.selectedpoints = selectedpoints if selectedpoints is not None else _v + self['selectedpoints' + ] = selectedpoints if selectedpoints is not None else _v _v = arg.pop('showlegend', None) - self.showlegend = showlegend if showlegend is not None else _v + self['showlegend'] = showlegend if showlegend is not None else _v _v = arg.pop('showlowerhalf', None) - self.showlowerhalf = showlowerhalf if showlowerhalf is not None else _v + self['showlowerhalf' + ] = showlowerhalf if showlowerhalf is not None else _v _v = arg.pop('showupperhalf', None) - self.showupperhalf = showupperhalf if showupperhalf is not None else _v + self['showupperhalf' + ] = showupperhalf if showupperhalf is not None else _v _v = arg.pop('stream', None) - self.stream = stream if stream is not None else _v + self['stream'] = stream if stream is not None else _v _v = arg.pop('text', None) - self.text = text if text is not None else _v + self['text'] = text if text is not None else _v _v = arg.pop('textsrc', None) - self.textsrc = textsrc if textsrc is not None else _v + self['textsrc'] = textsrc if textsrc is not None else _v _v = arg.pop('uid', None) - self.uid = uid if uid is not None else _v + self['uid'] = uid if uid is not None else _v _v = arg.pop('unselected', None) - self.unselected = unselected if unselected is not None else _v + self['unselected'] = unselected if unselected is not None else _v _v = arg.pop('visible', None) - self.visible = visible if visible is not None else _v + self['visible'] = visible if visible is not None else _v _v = arg.pop('xaxes', None) - self.xaxes = xaxes if xaxes is not None else _v + self['xaxes'] = xaxes if xaxes is not None else _v _v = arg.pop('yaxes', None) - self.yaxes = yaxes if yaxes is not None else _v + self['yaxes'] = yaxes if yaxes is not None else _v # Read-only literals # ------------------ diff --git a/plotly/graph_objs/_streamtube.py b/plotly/graph_objs/_streamtube.py index 5ad3428ec41..099989a43aa 100644 --- a/plotly/graph_objs/_streamtube.py +++ b/plotly/graph_objs/_streamtube.py @@ -1664,89 +1664,93 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('autocolorscale', None) - self.autocolorscale = autocolorscale if autocolorscale is not None else _v + self['autocolorscale' + ] = autocolorscale if autocolorscale is not None else _v _v = arg.pop('cauto', None) - self.cauto = cauto if cauto is not None else _v + self['cauto'] = cauto if cauto is not None else _v _v = arg.pop('cmax', None) - self.cmax = cmax if cmax is not None else _v + self['cmax'] = cmax if cmax is not None else _v _v = arg.pop('cmin', None) - self.cmin = cmin if cmin is not None else _v + self['cmin'] = cmin if cmin is not None else _v _v = arg.pop('colorbar', None) - self.colorbar = colorbar if colorbar is not None else _v + self['colorbar'] = colorbar if colorbar is not None else _v _v = arg.pop('colorscale', None) - self.colorscale = colorscale if colorscale is not None else _v + self['colorscale'] = colorscale if colorscale is not None else _v _v = arg.pop('customdata', None) - self.customdata = customdata if customdata is not None else _v + self['customdata'] = customdata if customdata is not None else _v _v = arg.pop('customdatasrc', None) - self.customdatasrc = customdatasrc if customdatasrc is not None else _v + self['customdatasrc' + ] = customdatasrc if customdatasrc is not None else _v _v = arg.pop('hoverinfo', None) - self.hoverinfo = hoverinfo if hoverinfo is not None else _v + self['hoverinfo'] = hoverinfo if hoverinfo is not None else _v _v = arg.pop('hoverinfosrc', None) - self.hoverinfosrc = hoverinfosrc if hoverinfosrc is not None else _v + self['hoverinfosrc'] = hoverinfosrc if hoverinfosrc is not None else _v _v = arg.pop('hoverlabel', None) - self.hoverlabel = hoverlabel if hoverlabel is not None else _v + self['hoverlabel'] = hoverlabel if hoverlabel is not None else _v _v = arg.pop('ids', None) - self.ids = ids if ids is not None else _v + self['ids'] = ids if ids is not None else _v _v = arg.pop('idssrc', None) - self.idssrc = idssrc if idssrc is not None else _v + self['idssrc'] = idssrc if idssrc is not None else _v _v = arg.pop('legendgroup', None) - self.legendgroup = legendgroup if legendgroup is not None else _v + self['legendgroup'] = legendgroup if legendgroup is not None else _v _v = arg.pop('lighting', None) - self.lighting = lighting if lighting is not None else _v + self['lighting'] = lighting if lighting is not None else _v _v = arg.pop('lightposition', None) - self.lightposition = lightposition if lightposition is not None else _v + self['lightposition' + ] = lightposition if lightposition is not None else _v _v = arg.pop('maxdisplayed', None) - self.maxdisplayed = maxdisplayed if maxdisplayed is not None else _v + self['maxdisplayed'] = maxdisplayed if maxdisplayed is not None else _v _v = arg.pop('name', None) - self.name = name if name is not None else _v + self['name'] = name if name is not None else _v _v = arg.pop('opacity', None) - self.opacity = opacity if opacity is not None else _v + self['opacity'] = opacity if opacity is not None else _v _v = arg.pop('reversescale', None) - self.reversescale = reversescale if reversescale is not None else _v + self['reversescale'] = reversescale if reversescale is not None else _v _v = arg.pop('scene', None) - self.scene = scene if scene is not None else _v + self['scene'] = scene if scene is not None else _v _v = arg.pop('selectedpoints', None) - self.selectedpoints = selectedpoints if selectedpoints is not None else _v + self['selectedpoints' + ] = selectedpoints if selectedpoints is not None else _v _v = arg.pop('showlegend', None) - self.showlegend = showlegend if showlegend is not None else _v + self['showlegend'] = showlegend if showlegend is not None else _v _v = arg.pop('showscale', None) - self.showscale = showscale if showscale is not None else _v + self['showscale'] = showscale if showscale is not None else _v _v = arg.pop('sizeref', None) - self.sizeref = sizeref if sizeref is not None else _v + self['sizeref'] = sizeref if sizeref is not None else _v _v = arg.pop('starts', None) - self.starts = starts if starts is not None else _v + self['starts'] = starts if starts is not None else _v _v = arg.pop('stream', None) - self.stream = stream if stream is not None else _v + self['stream'] = stream if stream is not None else _v _v = arg.pop('text', None) - self.text = text if text is not None else _v + self['text'] = text if text is not None else _v _v = arg.pop('u', None) - self.u = u if u is not None else _v + self['u'] = u if u is not None else _v _v = arg.pop('uid', None) - self.uid = uid if uid is not None else _v + self['uid'] = uid if uid is not None else _v _v = arg.pop('usrc', None) - self.usrc = usrc if usrc is not None else _v + self['usrc'] = usrc if usrc is not None else _v _v = arg.pop('v', None) - self.v = v if v is not None else _v + self['v'] = v if v is not None else _v _v = arg.pop('visible', None) - self.visible = visible if visible is not None else _v + self['visible'] = visible if visible is not None else _v _v = arg.pop('vsrc', None) - self.vsrc = vsrc if vsrc is not None else _v + self['vsrc'] = vsrc if vsrc is not None else _v _v = arg.pop('w', None) - self.w = w if w is not None else _v + self['w'] = w if w is not None else _v _v = arg.pop('wsrc', None) - self.wsrc = wsrc if wsrc is not None else _v + self['wsrc'] = wsrc if wsrc is not None else _v _v = arg.pop('x', None) - self.x = x if x is not None else _v + self['x'] = x if x is not None else _v _v = arg.pop('xsrc', None) - self.xsrc = xsrc if xsrc is not None else _v + self['xsrc'] = xsrc if xsrc is not None else _v _v = arg.pop('y', None) - self.y = y if y is not None else _v + self['y'] = y if y is not None else _v _v = arg.pop('ysrc', None) - self.ysrc = ysrc if ysrc is not None else _v + self['ysrc'] = ysrc if ysrc is not None else _v _v = arg.pop('z', None) - self.z = z if z is not None else _v + self['z'] = z if z is not None else _v _v = arg.pop('zsrc', None) - self.zsrc = zsrc if zsrc is not None else _v + self['zsrc'] = zsrc if zsrc is not None else _v # Read-only literals # ------------------ diff --git a/plotly/graph_objs/_surface.py b/plotly/graph_objs/_surface.py index 0173cc90686..e97fd0e1a47 100644 --- a/plotly/graph_objs/_surface.py +++ b/plotly/graph_objs/_surface.py @@ -1642,87 +1642,92 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('autocolorscale', None) - self.autocolorscale = autocolorscale if autocolorscale is not None else _v + self['autocolorscale' + ] = autocolorscale if autocolorscale is not None else _v _v = arg.pop('cauto', None) - self.cauto = cauto if cauto is not None else _v + self['cauto'] = cauto if cauto is not None else _v _v = arg.pop('cmax', None) - self.cmax = cmax if cmax is not None else _v + self['cmax'] = cmax if cmax is not None else _v _v = arg.pop('cmin', None) - self.cmin = cmin if cmin is not None else _v + self['cmin'] = cmin if cmin is not None else _v _v = arg.pop('colorbar', None) - self.colorbar = colorbar if colorbar is not None else _v + self['colorbar'] = colorbar if colorbar is not None else _v _v = arg.pop('colorscale', None) - self.colorscale = colorscale if colorscale is not None else _v + self['colorscale'] = colorscale if colorscale is not None else _v _v = arg.pop('contours', None) - self.contours = contours if contours is not None else _v + self['contours'] = contours if contours is not None else _v _v = arg.pop('customdata', None) - self.customdata = customdata if customdata is not None else _v + self['customdata'] = customdata if customdata is not None else _v _v = arg.pop('customdatasrc', None) - self.customdatasrc = customdatasrc if customdatasrc is not None else _v + self['customdatasrc' + ] = customdatasrc if customdatasrc is not None else _v _v = arg.pop('hidesurface', None) - self.hidesurface = hidesurface if hidesurface is not None else _v + self['hidesurface'] = hidesurface if hidesurface is not None else _v _v = arg.pop('hoverinfo', None) - self.hoverinfo = hoverinfo if hoverinfo is not None else _v + self['hoverinfo'] = hoverinfo if hoverinfo is not None else _v _v = arg.pop('hoverinfosrc', None) - self.hoverinfosrc = hoverinfosrc if hoverinfosrc is not None else _v + self['hoverinfosrc'] = hoverinfosrc if hoverinfosrc is not None else _v _v = arg.pop('hoverlabel', None) - self.hoverlabel = hoverlabel if hoverlabel is not None else _v + self['hoverlabel'] = hoverlabel if hoverlabel is not None else _v _v = arg.pop('ids', None) - self.ids = ids if ids is not None else _v + self['ids'] = ids if ids is not None else _v _v = arg.pop('idssrc', None) - self.idssrc = idssrc if idssrc is not None else _v + self['idssrc'] = idssrc if idssrc is not None else _v _v = arg.pop('legendgroup', None) - self.legendgroup = legendgroup if legendgroup is not None else _v + self['legendgroup'] = legendgroup if legendgroup is not None else _v _v = arg.pop('lighting', None) - self.lighting = lighting if lighting is not None else _v + self['lighting'] = lighting if lighting is not None else _v _v = arg.pop('lightposition', None) - self.lightposition = lightposition if lightposition is not None else _v + self['lightposition' + ] = lightposition if lightposition is not None else _v _v = arg.pop('name', None) - self.name = name if name is not None else _v + self['name'] = name if name is not None else _v _v = arg.pop('opacity', None) - self.opacity = opacity if opacity is not None else _v + self['opacity'] = opacity if opacity is not None else _v _v = arg.pop('reversescale', None) - self.reversescale = reversescale if reversescale is not None else _v + self['reversescale'] = reversescale if reversescale is not None else _v _v = arg.pop('scene', None) - self.scene = scene if scene is not None else _v + self['scene'] = scene if scene is not None else _v _v = arg.pop('selectedpoints', None) - self.selectedpoints = selectedpoints if selectedpoints is not None else _v + self['selectedpoints' + ] = selectedpoints if selectedpoints is not None else _v _v = arg.pop('showlegend', None) - self.showlegend = showlegend if showlegend is not None else _v + self['showlegend'] = showlegend if showlegend is not None else _v _v = arg.pop('showscale', None) - self.showscale = showscale if showscale is not None else _v + self['showscale'] = showscale if showscale is not None else _v _v = arg.pop('stream', None) - self.stream = stream if stream is not None else _v + self['stream'] = stream if stream is not None else _v _v = arg.pop('surfacecolor', None) - self.surfacecolor = surfacecolor if surfacecolor is not None else _v + self['surfacecolor'] = surfacecolor if surfacecolor is not None else _v _v = arg.pop('surfacecolorsrc', None) - self.surfacecolorsrc = surfacecolorsrc if surfacecolorsrc is not None else _v + self['surfacecolorsrc' + ] = surfacecolorsrc if surfacecolorsrc is not None else _v _v = arg.pop('text', None) - self.text = text if text is not None else _v + self['text'] = text if text is not None else _v _v = arg.pop('textsrc', None) - self.textsrc = textsrc if textsrc is not None else _v + self['textsrc'] = textsrc if textsrc is not None else _v _v = arg.pop('uid', None) - self.uid = uid if uid is not None else _v + self['uid'] = uid if uid is not None else _v _v = arg.pop('visible', None) - self.visible = visible if visible is not None else _v + self['visible'] = visible if visible is not None else _v _v = arg.pop('x', None) - self.x = x if x is not None else _v + self['x'] = x if x is not None else _v _v = arg.pop('xcalendar', None) - self.xcalendar = xcalendar if xcalendar is not None else _v + self['xcalendar'] = xcalendar if xcalendar is not None else _v _v = arg.pop('xsrc', None) - self.xsrc = xsrc if xsrc is not None else _v + self['xsrc'] = xsrc if xsrc is not None else _v _v = arg.pop('y', None) - self.y = y if y is not None else _v + self['y'] = y if y is not None else _v _v = arg.pop('ycalendar', None) - self.ycalendar = ycalendar if ycalendar is not None else _v + self['ycalendar'] = ycalendar if ycalendar is not None else _v _v = arg.pop('ysrc', None) - self.ysrc = ysrc if ysrc is not None else _v + self['ysrc'] = ysrc if ysrc is not None else _v _v = arg.pop('z', None) - self.z = z if z is not None else _v + self['z'] = z if z is not None else _v _v = arg.pop('zcalendar', None) - self.zcalendar = zcalendar if zcalendar is not None else _v + self['zcalendar'] = zcalendar if zcalendar is not None else _v _v = arg.pop('zsrc', None) - self.zsrc = zsrc if zsrc is not None else _v + self['zsrc'] = zsrc if zsrc is not None else _v # Read-only literals # ------------------ diff --git a/plotly/graph_objs/_table.py b/plotly/graph_objs/_table.py index a0886a1a822..c50efa700b1 100644 --- a/plotly/graph_objs/_table.py +++ b/plotly/graph_objs/_table.py @@ -900,49 +900,53 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('cells', None) - self.cells = cells if cells is not None else _v + self['cells'] = cells if cells is not None else _v _v = arg.pop('columnorder', None) - self.columnorder = columnorder if columnorder is not None else _v + self['columnorder'] = columnorder if columnorder is not None else _v _v = arg.pop('columnordersrc', None) - self.columnordersrc = columnordersrc if columnordersrc is not None else _v + self['columnordersrc' + ] = columnordersrc if columnordersrc is not None else _v _v = arg.pop('columnwidth', None) - self.columnwidth = columnwidth if columnwidth is not None else _v + self['columnwidth'] = columnwidth if columnwidth is not None else _v _v = arg.pop('columnwidthsrc', None) - self.columnwidthsrc = columnwidthsrc if columnwidthsrc is not None else _v + self['columnwidthsrc' + ] = columnwidthsrc if columnwidthsrc is not None else _v _v = arg.pop('customdata', None) - self.customdata = customdata if customdata is not None else _v + self['customdata'] = customdata if customdata is not None else _v _v = arg.pop('customdatasrc', None) - self.customdatasrc = customdatasrc if customdatasrc is not None else _v + self['customdatasrc' + ] = customdatasrc if customdatasrc is not None else _v _v = arg.pop('domain', None) - self.domain = domain if domain is not None else _v + self['domain'] = domain if domain is not None else _v _v = arg.pop('header', None) - self.header = header if header is not None else _v + self['header'] = header if header is not None else _v _v = arg.pop('hoverinfo', None) - self.hoverinfo = hoverinfo if hoverinfo is not None else _v + self['hoverinfo'] = hoverinfo if hoverinfo is not None else _v _v = arg.pop('hoverinfosrc', None) - self.hoverinfosrc = hoverinfosrc if hoverinfosrc is not None else _v + self['hoverinfosrc'] = hoverinfosrc if hoverinfosrc is not None else _v _v = arg.pop('hoverlabel', None) - self.hoverlabel = hoverlabel if hoverlabel is not None else _v + self['hoverlabel'] = hoverlabel if hoverlabel is not None else _v _v = arg.pop('ids', None) - self.ids = ids if ids is not None else _v + self['ids'] = ids if ids is not None else _v _v = arg.pop('idssrc', None) - self.idssrc = idssrc if idssrc is not None else _v + self['idssrc'] = idssrc if idssrc is not None else _v _v = arg.pop('legendgroup', None) - self.legendgroup = legendgroup if legendgroup is not None else _v + self['legendgroup'] = legendgroup if legendgroup is not None else _v _v = arg.pop('name', None) - self.name = name if name is not None else _v + self['name'] = name if name is not None else _v _v = arg.pop('opacity', None) - self.opacity = opacity if opacity is not None else _v + self['opacity'] = opacity if opacity is not None else _v _v = arg.pop('selectedpoints', None) - self.selectedpoints = selectedpoints if selectedpoints is not None else _v + self['selectedpoints' + ] = selectedpoints if selectedpoints is not None else _v _v = arg.pop('showlegend', None) - self.showlegend = showlegend if showlegend is not None else _v + self['showlegend'] = showlegend if showlegend is not None else _v _v = arg.pop('stream', None) - self.stream = stream if stream is not None else _v + self['stream'] = stream if stream is not None else _v _v = arg.pop('uid', None) - self.uid = uid if uid is not None else _v + self['uid'] = uid if uid is not None else _v _v = arg.pop('visible', None) - self.visible = visible if visible is not None else _v + self['visible'] = visible if visible is not None else _v # Read-only literals # ------------------ diff --git a/plotly/graph_objs/_violin.py b/plotly/graph_objs/_violin.py index 0f39f07a604..42d91c1a825 100644 --- a/plotly/graph_objs/_violin.py +++ b/plotly/graph_objs/_violin.py @@ -1618,91 +1618,93 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('bandwidth', None) - self.bandwidth = bandwidth if bandwidth is not None else _v + self['bandwidth'] = bandwidth if bandwidth is not None else _v _v = arg.pop('box', None) - self.box = box if box is not None else _v + self['box'] = box if box is not None else _v _v = arg.pop('customdata', None) - self.customdata = customdata if customdata is not None else _v + self['customdata'] = customdata if customdata is not None else _v _v = arg.pop('customdatasrc', None) - self.customdatasrc = customdatasrc if customdatasrc is not None else _v + self['customdatasrc' + ] = customdatasrc if customdatasrc is not None else _v _v = arg.pop('fillcolor', None) - self.fillcolor = fillcolor if fillcolor is not None else _v + self['fillcolor'] = fillcolor if fillcolor is not None else _v _v = arg.pop('hoverinfo', None) - self.hoverinfo = hoverinfo if hoverinfo is not None else _v + self['hoverinfo'] = hoverinfo if hoverinfo is not None else _v _v = arg.pop('hoverinfosrc', None) - self.hoverinfosrc = hoverinfosrc if hoverinfosrc is not None else _v + self['hoverinfosrc'] = hoverinfosrc if hoverinfosrc is not None else _v _v = arg.pop('hoverlabel', None) - self.hoverlabel = hoverlabel if hoverlabel is not None else _v + self['hoverlabel'] = hoverlabel if hoverlabel is not None else _v _v = arg.pop('hoveron', None) - self.hoveron = hoveron if hoveron is not None else _v + self['hoveron'] = hoveron if hoveron is not None else _v _v = arg.pop('ids', None) - self.ids = ids if ids is not None else _v + self['ids'] = ids if ids is not None else _v _v = arg.pop('idssrc', None) - self.idssrc = idssrc if idssrc is not None else _v + self['idssrc'] = idssrc if idssrc is not None else _v _v = arg.pop('jitter', None) - self.jitter = jitter if jitter is not None else _v + self['jitter'] = jitter if jitter is not None else _v _v = arg.pop('legendgroup', None) - self.legendgroup = legendgroup if legendgroup is not None else _v + self['legendgroup'] = legendgroup if legendgroup is not None else _v _v = arg.pop('line', None) - self.line = line if line is not None else _v + self['line'] = line if line is not None else _v _v = arg.pop('marker', None) - self.marker = marker if marker is not None else _v + self['marker'] = marker if marker is not None else _v _v = arg.pop('meanline', None) - self.meanline = meanline if meanline is not None else _v + self['meanline'] = meanline if meanline is not None else _v _v = arg.pop('name', None) - self.name = name if name is not None else _v + self['name'] = name if name is not None else _v _v = arg.pop('opacity', None) - self.opacity = opacity if opacity is not None else _v + self['opacity'] = opacity if opacity is not None else _v _v = arg.pop('orientation', None) - self.orientation = orientation if orientation is not None else _v + self['orientation'] = orientation if orientation is not None else _v _v = arg.pop('pointpos', None) - self.pointpos = pointpos if pointpos is not None else _v + self['pointpos'] = pointpos if pointpos is not None else _v _v = arg.pop('points', None) - self.points = points if points is not None else _v + self['points'] = points if points is not None else _v _v = arg.pop('scalegroup', None) - self.scalegroup = scalegroup if scalegroup is not None else _v + self['scalegroup'] = scalegroup if scalegroup is not None else _v _v = arg.pop('scalemode', None) - self.scalemode = scalemode if scalemode is not None else _v + self['scalemode'] = scalemode if scalemode is not None else _v _v = arg.pop('selected', None) - self.selected = selected if selected is not None else _v + self['selected'] = selected if selected is not None else _v _v = arg.pop('selectedpoints', None) - self.selectedpoints = selectedpoints if selectedpoints is not None else _v + self['selectedpoints' + ] = selectedpoints if selectedpoints is not None else _v _v = arg.pop('showlegend', None) - self.showlegend = showlegend if showlegend is not None else _v + self['showlegend'] = showlegend if showlegend is not None else _v _v = arg.pop('side', None) - self.side = side if side is not None else _v + self['side'] = side if side is not None else _v _v = arg.pop('span', None) - self.span = span if span is not None else _v + self['span'] = span if span is not None else _v _v = arg.pop('spanmode', None) - self.spanmode = spanmode if spanmode is not None else _v + self['spanmode'] = spanmode if spanmode is not None else _v _v = arg.pop('stream', None) - self.stream = stream if stream is not None else _v + self['stream'] = stream if stream is not None else _v _v = arg.pop('text', None) - self.text = text if text is not None else _v + self['text'] = text if text is not None else _v _v = arg.pop('textsrc', None) - self.textsrc = textsrc if textsrc is not None else _v + self['textsrc'] = textsrc if textsrc is not None else _v _v = arg.pop('uid', None) - self.uid = uid if uid is not None else _v + self['uid'] = uid if uid is not None else _v _v = arg.pop('unselected', None) - self.unselected = unselected if unselected is not None else _v + self['unselected'] = unselected if unselected is not None else _v _v = arg.pop('visible', None) - self.visible = visible if visible is not None else _v + self['visible'] = visible if visible is not None else _v _v = arg.pop('x', None) - self.x = x if x is not None else _v + self['x'] = x if x is not None else _v _v = arg.pop('x0', None) - self.x0 = x0 if x0 is not None else _v + self['x0'] = x0 if x0 is not None else _v _v = arg.pop('xaxis', None) - self.xaxis = xaxis if xaxis is not None else _v + self['xaxis'] = xaxis if xaxis is not None else _v _v = arg.pop('xsrc', None) - self.xsrc = xsrc if xsrc is not None else _v + self['xsrc'] = xsrc if xsrc is not None else _v _v = arg.pop('y', None) - self.y = y if y is not None else _v + self['y'] = y if y is not None else _v _v = arg.pop('y0', None) - self.y0 = y0 if y0 is not None else _v + self['y0'] = y0 if y0 is not None else _v _v = arg.pop('yaxis', None) - self.yaxis = yaxis if yaxis is not None else _v + self['yaxis'] = yaxis if yaxis is not None else _v _v = arg.pop('ysrc', None) - self.ysrc = ysrc if ysrc is not None else _v + self['ysrc'] = ysrc if ysrc is not None else _v # Read-only literals # ------------------ diff --git a/plotly/graph_objs/area/_hoverlabel.py b/plotly/graph_objs/area/_hoverlabel.py index 2a009e14268..548f6b850af 100644 --- a/plotly/graph_objs/area/_hoverlabel.py +++ b/plotly/graph_objs/area/_hoverlabel.py @@ -385,19 +385,21 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('bgcolor', None) - self.bgcolor = bgcolor if bgcolor is not None else _v + self['bgcolor'] = bgcolor if bgcolor is not None else _v _v = arg.pop('bgcolorsrc', None) - self.bgcolorsrc = bgcolorsrc if bgcolorsrc is not None else _v + self['bgcolorsrc'] = bgcolorsrc if bgcolorsrc is not None else _v _v = arg.pop('bordercolor', None) - self.bordercolor = bordercolor if bordercolor is not None else _v + self['bordercolor'] = bordercolor if bordercolor is not None else _v _v = arg.pop('bordercolorsrc', None) - self.bordercolorsrc = bordercolorsrc if bordercolorsrc is not None else _v + self['bordercolorsrc' + ] = bordercolorsrc if bordercolorsrc is not None else _v _v = arg.pop('font', None) - self.font = font if font is not None else _v + self['font'] = font if font is not None else _v _v = arg.pop('namelength', None) - self.namelength = namelength if namelength is not None else _v + self['namelength'] = namelength if namelength is not None else _v _v = arg.pop('namelengthsrc', None) - self.namelengthsrc = namelengthsrc if namelengthsrc is not None else _v + self['namelengthsrc' + ] = namelengthsrc if namelengthsrc is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/area/_marker.py b/plotly/graph_objs/area/_marker.py index 741abe47230..dfdb8afa815 100644 --- a/plotly/graph_objs/area/_marker.py +++ b/plotly/graph_objs/area/_marker.py @@ -397,21 +397,21 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('colorsrc', None) - self.colorsrc = colorsrc if colorsrc is not None else _v + self['colorsrc'] = colorsrc if colorsrc is not None else _v _v = arg.pop('opacity', None) - self.opacity = opacity if opacity is not None else _v + self['opacity'] = opacity if opacity is not None else _v _v = arg.pop('opacitysrc', None) - self.opacitysrc = opacitysrc if opacitysrc is not None else _v + self['opacitysrc'] = opacitysrc if opacitysrc is not None else _v _v = arg.pop('size', None) - self.size = size if size is not None else _v + self['size'] = size if size is not None else _v _v = arg.pop('sizesrc', None) - self.sizesrc = sizesrc if sizesrc is not None else _v + self['sizesrc'] = sizesrc if sizesrc is not None else _v _v = arg.pop('symbol', None) - self.symbol = symbol if symbol is not None else _v + self['symbol'] = symbol if symbol is not None else _v _v = arg.pop('symbolsrc', None) - self.symbolsrc = symbolsrc if symbolsrc is not None else _v + self['symbolsrc'] = symbolsrc if symbolsrc is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/area/_stream.py b/plotly/graph_objs/area/_stream.py index b0eb67da4c2..2510e7b9141 100644 --- a/plotly/graph_objs/area/_stream.py +++ b/plotly/graph_objs/area/_stream.py @@ -122,9 +122,9 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('maxpoints', None) - self.maxpoints = maxpoints if maxpoints is not None else _v + self['maxpoints'] = maxpoints if maxpoints is not None else _v _v = arg.pop('token', None) - self.token = token if token is not None else _v + self['token'] = token if token is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/area/hoverlabel/_font.py b/plotly/graph_objs/area/hoverlabel/_font.py index 4fe1996eeaf..049deba65d3 100644 --- a/plotly/graph_objs/area/hoverlabel/_font.py +++ b/plotly/graph_objs/area/hoverlabel/_font.py @@ -294,17 +294,17 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('colorsrc', None) - self.colorsrc = colorsrc if colorsrc is not None else _v + self['colorsrc'] = colorsrc if colorsrc is not None else _v _v = arg.pop('family', None) - self.family = family if family is not None else _v + self['family'] = family if family is not None else _v _v = arg.pop('familysrc', None) - self.familysrc = familysrc if familysrc is not None else _v + self['familysrc'] = familysrc if familysrc is not None else _v _v = arg.pop('size', None) - self.size = size if size is not None else _v + self['size'] = size if size is not None else _v _v = arg.pop('sizesrc', None) - self.sizesrc = sizesrc if sizesrc is not None else _v + self['sizesrc'] = sizesrc if sizesrc is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/bar/_error_x.py b/plotly/graph_objs/bar/_error_x.py index 09459cb54e5..7a8a9f1954b 100644 --- a/plotly/graph_objs/bar/_error_x.py +++ b/plotly/graph_objs/bar/_error_x.py @@ -552,35 +552,37 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('array', None) - self.array = array if array is not None else _v + self['array'] = array if array is not None else _v _v = arg.pop('arrayminus', None) - self.arrayminus = arrayminus if arrayminus is not None else _v + self['arrayminus'] = arrayminus if arrayminus is not None else _v _v = arg.pop('arrayminussrc', None) - self.arrayminussrc = arrayminussrc if arrayminussrc is not None else _v + self['arrayminussrc' + ] = arrayminussrc if arrayminussrc is not None else _v _v = arg.pop('arraysrc', None) - self.arraysrc = arraysrc if arraysrc is not None else _v + self['arraysrc'] = arraysrc if arraysrc is not None else _v _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('copy_ystyle', None) - self.copy_ystyle = copy_ystyle if copy_ystyle is not None else _v + self['copy_ystyle'] = copy_ystyle if copy_ystyle is not None else _v _v = arg.pop('symmetric', None) - self.symmetric = symmetric if symmetric is not None else _v + self['symmetric'] = symmetric if symmetric is not None else _v _v = arg.pop('thickness', None) - self.thickness = thickness if thickness is not None else _v + self['thickness'] = thickness if thickness is not None else _v _v = arg.pop('traceref', None) - self.traceref = traceref if traceref is not None else _v + self['traceref'] = traceref if traceref is not None else _v _v = arg.pop('tracerefminus', None) - self.tracerefminus = tracerefminus if tracerefminus is not None else _v + self['tracerefminus' + ] = tracerefminus if tracerefminus is not None else _v _v = arg.pop('type', None) - self.type = type if type is not None else _v + self['type'] = type if type is not None else _v _v = arg.pop('value', None) - self.value = value if value is not None else _v + self['value'] = value if value is not None else _v _v = arg.pop('valueminus', None) - self.valueminus = valueminus if valueminus is not None else _v + self['valueminus'] = valueminus if valueminus is not None else _v _v = arg.pop('visible', None) - self.visible = visible if visible is not None else _v + self['visible'] = visible if visible is not None else _v _v = arg.pop('width', None) - self.width = width if width is not None else _v + self['width'] = width if width is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/bar/_error_y.py b/plotly/graph_objs/bar/_error_y.py index 89b5e3621cc..c47b0d3101c 100644 --- a/plotly/graph_objs/bar/_error_y.py +++ b/plotly/graph_objs/bar/_error_y.py @@ -528,33 +528,35 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('array', None) - self.array = array if array is not None else _v + self['array'] = array if array is not None else _v _v = arg.pop('arrayminus', None) - self.arrayminus = arrayminus if arrayminus is not None else _v + self['arrayminus'] = arrayminus if arrayminus is not None else _v _v = arg.pop('arrayminussrc', None) - self.arrayminussrc = arrayminussrc if arrayminussrc is not None else _v + self['arrayminussrc' + ] = arrayminussrc if arrayminussrc is not None else _v _v = arg.pop('arraysrc', None) - self.arraysrc = arraysrc if arraysrc is not None else _v + self['arraysrc'] = arraysrc if arraysrc is not None else _v _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('symmetric', None) - self.symmetric = symmetric if symmetric is not None else _v + self['symmetric'] = symmetric if symmetric is not None else _v _v = arg.pop('thickness', None) - self.thickness = thickness if thickness is not None else _v + self['thickness'] = thickness if thickness is not None else _v _v = arg.pop('traceref', None) - self.traceref = traceref if traceref is not None else _v + self['traceref'] = traceref if traceref is not None else _v _v = arg.pop('tracerefminus', None) - self.tracerefminus = tracerefminus if tracerefminus is not None else _v + self['tracerefminus' + ] = tracerefminus if tracerefminus is not None else _v _v = arg.pop('type', None) - self.type = type if type is not None else _v + self['type'] = type if type is not None else _v _v = arg.pop('value', None) - self.value = value if value is not None else _v + self['value'] = value if value is not None else _v _v = arg.pop('valueminus', None) - self.valueminus = valueminus if valueminus is not None else _v + self['valueminus'] = valueminus if valueminus is not None else _v _v = arg.pop('visible', None) - self.visible = visible if visible is not None else _v + self['visible'] = visible if visible is not None else _v _v = arg.pop('width', None) - self.width = width if width is not None else _v + self['width'] = width if width is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/bar/_hoverlabel.py b/plotly/graph_objs/bar/_hoverlabel.py index 959e6402984..dea347f8c18 100644 --- a/plotly/graph_objs/bar/_hoverlabel.py +++ b/plotly/graph_objs/bar/_hoverlabel.py @@ -385,19 +385,21 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('bgcolor', None) - self.bgcolor = bgcolor if bgcolor is not None else _v + self['bgcolor'] = bgcolor if bgcolor is not None else _v _v = arg.pop('bgcolorsrc', None) - self.bgcolorsrc = bgcolorsrc if bgcolorsrc is not None else _v + self['bgcolorsrc'] = bgcolorsrc if bgcolorsrc is not None else _v _v = arg.pop('bordercolor', None) - self.bordercolor = bordercolor if bordercolor is not None else _v + self['bordercolor'] = bordercolor if bordercolor is not None else _v _v = arg.pop('bordercolorsrc', None) - self.bordercolorsrc = bordercolorsrc if bordercolorsrc is not None else _v + self['bordercolorsrc' + ] = bordercolorsrc if bordercolorsrc is not None else _v _v = arg.pop('font', None) - self.font = font if font is not None else _v + self['font'] = font if font is not None else _v _v = arg.pop('namelength', None) - self.namelength = namelength if namelength is not None else _v + self['namelength'] = namelength if namelength is not None else _v _v = arg.pop('namelengthsrc', None) - self.namelengthsrc = namelengthsrc if namelengthsrc is not None else _v + self['namelengthsrc' + ] = namelengthsrc if namelengthsrc is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/bar/_insidetextfont.py b/plotly/graph_objs/bar/_insidetextfont.py index f568c49a45b..fa433ffc6c1 100644 --- a/plotly/graph_objs/bar/_insidetextfont.py +++ b/plotly/graph_objs/bar/_insidetextfont.py @@ -294,17 +294,17 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('colorsrc', None) - self.colorsrc = colorsrc if colorsrc is not None else _v + self['colorsrc'] = colorsrc if colorsrc is not None else _v _v = arg.pop('family', None) - self.family = family if family is not None else _v + self['family'] = family if family is not None else _v _v = arg.pop('familysrc', None) - self.familysrc = familysrc if familysrc is not None else _v + self['familysrc'] = familysrc if familysrc is not None else _v _v = arg.pop('size', None) - self.size = size if size is not None else _v + self['size'] = size if size is not None else _v _v = arg.pop('sizesrc', None) - self.sizesrc = sizesrc if sizesrc is not None else _v + self['sizesrc'] = sizesrc if sizesrc is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/bar/_marker.py b/plotly/graph_objs/bar/_marker.py index 7e391b25000..ebe913d0097 100644 --- a/plotly/graph_objs/bar/_marker.py +++ b/plotly/graph_objs/bar/_marker.py @@ -844,31 +844,32 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('autocolorscale', None) - self.autocolorscale = autocolorscale if autocolorscale is not None else _v + self['autocolorscale' + ] = autocolorscale if autocolorscale is not None else _v _v = arg.pop('cauto', None) - self.cauto = cauto if cauto is not None else _v + self['cauto'] = cauto if cauto is not None else _v _v = arg.pop('cmax', None) - self.cmax = cmax if cmax is not None else _v + self['cmax'] = cmax if cmax is not None else _v _v = arg.pop('cmin', None) - self.cmin = cmin if cmin is not None else _v + self['cmin'] = cmin if cmin is not None else _v _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('colorbar', None) - self.colorbar = colorbar if colorbar is not None else _v + self['colorbar'] = colorbar if colorbar is not None else _v _v = arg.pop('colorscale', None) - self.colorscale = colorscale if colorscale is not None else _v + self['colorscale'] = colorscale if colorscale is not None else _v _v = arg.pop('colorsrc', None) - self.colorsrc = colorsrc if colorsrc is not None else _v + self['colorsrc'] = colorsrc if colorsrc is not None else _v _v = arg.pop('line', None) - self.line = line if line is not None else _v + self['line'] = line if line is not None else _v _v = arg.pop('opacity', None) - self.opacity = opacity if opacity is not None else _v + self['opacity'] = opacity if opacity is not None else _v _v = arg.pop('opacitysrc', None) - self.opacitysrc = opacitysrc if opacitysrc is not None else _v + self['opacitysrc'] = opacitysrc if opacitysrc is not None else _v _v = arg.pop('reversescale', None) - self.reversescale = reversescale if reversescale is not None else _v + self['reversescale'] = reversescale if reversescale is not None else _v _v = arg.pop('showscale', None) - self.showscale = showscale if showscale is not None else _v + self['showscale'] = showscale if showscale is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/bar/_outsidetextfont.py b/plotly/graph_objs/bar/_outsidetextfont.py index 8a3eb2bd9a4..8a7533d9608 100644 --- a/plotly/graph_objs/bar/_outsidetextfont.py +++ b/plotly/graph_objs/bar/_outsidetextfont.py @@ -296,17 +296,17 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('colorsrc', None) - self.colorsrc = colorsrc if colorsrc is not None else _v + self['colorsrc'] = colorsrc if colorsrc is not None else _v _v = arg.pop('family', None) - self.family = family if family is not None else _v + self['family'] = family if family is not None else _v _v = arg.pop('familysrc', None) - self.familysrc = familysrc if familysrc is not None else _v + self['familysrc'] = familysrc if familysrc is not None else _v _v = arg.pop('size', None) - self.size = size if size is not None else _v + self['size'] = size if size is not None else _v _v = arg.pop('sizesrc', None) - self.sizesrc = sizesrc if sizesrc is not None else _v + self['sizesrc'] = sizesrc if sizesrc is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/bar/_selected.py b/plotly/graph_objs/bar/_selected.py index d8375a3e42e..8b706fd2f0d 100644 --- a/plotly/graph_objs/bar/_selected.py +++ b/plotly/graph_objs/bar/_selected.py @@ -127,9 +127,9 @@ def __init__(self, arg=None, marker=None, textfont=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('marker', None) - self.marker = marker if marker is not None else _v + self['marker'] = marker if marker is not None else _v _v = arg.pop('textfont', None) - self.textfont = textfont if textfont is not None else _v + self['textfont'] = textfont if textfont is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/bar/_stream.py b/plotly/graph_objs/bar/_stream.py index 8f528873536..443b06fb864 100644 --- a/plotly/graph_objs/bar/_stream.py +++ b/plotly/graph_objs/bar/_stream.py @@ -122,9 +122,9 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('maxpoints', None) - self.maxpoints = maxpoints if maxpoints is not None else _v + self['maxpoints'] = maxpoints if maxpoints is not None else _v _v = arg.pop('token', None) - self.token = token if token is not None else _v + self['token'] = token if token is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/bar/_textfont.py b/plotly/graph_objs/bar/_textfont.py index 43bc13cd655..eac2c9ffecd 100644 --- a/plotly/graph_objs/bar/_textfont.py +++ b/plotly/graph_objs/bar/_textfont.py @@ -294,17 +294,17 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('colorsrc', None) - self.colorsrc = colorsrc if colorsrc is not None else _v + self['colorsrc'] = colorsrc if colorsrc is not None else _v _v = arg.pop('family', None) - self.family = family if family is not None else _v + self['family'] = family if family is not None else _v _v = arg.pop('familysrc', None) - self.familysrc = familysrc if familysrc is not None else _v + self['familysrc'] = familysrc if familysrc is not None else _v _v = arg.pop('size', None) - self.size = size if size is not None else _v + self['size'] = size if size is not None else _v _v = arg.pop('sizesrc', None) - self.sizesrc = sizesrc if sizesrc is not None else _v + self['sizesrc'] = sizesrc if sizesrc is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/bar/_unselected.py b/plotly/graph_objs/bar/_unselected.py index 6abc37ff9dd..88c2d4f2aaa 100644 --- a/plotly/graph_objs/bar/_unselected.py +++ b/plotly/graph_objs/bar/_unselected.py @@ -130,9 +130,9 @@ def __init__(self, arg=None, marker=None, textfont=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('marker', None) - self.marker = marker if marker is not None else _v + self['marker'] = marker if marker is not None else _v _v = arg.pop('textfont', None) - self.textfont = textfont if textfont is not None else _v + self['textfont'] = textfont if textfont is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/bar/hoverlabel/_font.py b/plotly/graph_objs/bar/hoverlabel/_font.py index 39c5057ba2a..b3bcee89d2a 100644 --- a/plotly/graph_objs/bar/hoverlabel/_font.py +++ b/plotly/graph_objs/bar/hoverlabel/_font.py @@ -294,17 +294,17 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('colorsrc', None) - self.colorsrc = colorsrc if colorsrc is not None else _v + self['colorsrc'] = colorsrc if colorsrc is not None else _v _v = arg.pop('family', None) - self.family = family if family is not None else _v + self['family'] = family if family is not None else _v _v = arg.pop('familysrc', None) - self.familysrc = familysrc if familysrc is not None else _v + self['familysrc'] = familysrc if familysrc is not None else _v _v = arg.pop('size', None) - self.size = size if size is not None else _v + self['size'] = size if size is not None else _v _v = arg.pop('sizesrc', None) - self.sizesrc = sizesrc if sizesrc is not None else _v + self['sizesrc'] = sizesrc if sizesrc is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/bar/marker/_colorbar.py b/plotly/graph_objs/bar/marker/_colorbar.py index 76160886255..15b5d3815c3 100644 --- a/plotly/graph_objs/bar/marker/_colorbar.py +++ b/plotly/graph_objs/bar/marker/_colorbar.py @@ -1671,89 +1671,96 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('bgcolor', None) - self.bgcolor = bgcolor if bgcolor is not None else _v + self['bgcolor'] = bgcolor if bgcolor is not None else _v _v = arg.pop('bordercolor', None) - self.bordercolor = bordercolor if bordercolor is not None else _v + self['bordercolor'] = bordercolor if bordercolor is not None else _v _v = arg.pop('borderwidth', None) - self.borderwidth = borderwidth if borderwidth is not None else _v + self['borderwidth'] = borderwidth if borderwidth is not None else _v _v = arg.pop('dtick', None) - self.dtick = dtick if dtick is not None else _v + self['dtick'] = dtick if dtick is not None else _v _v = arg.pop('exponentformat', None) - self.exponentformat = exponentformat if exponentformat is not None else _v + self['exponentformat' + ] = exponentformat if exponentformat is not None else _v _v = arg.pop('len', None) - self.len = len if len is not None else _v + self['len'] = len if len is not None else _v _v = arg.pop('lenmode', None) - self.lenmode = lenmode if lenmode is not None else _v + self['lenmode'] = lenmode if lenmode is not None else _v _v = arg.pop('nticks', None) - self.nticks = nticks if nticks is not None else _v + self['nticks'] = nticks if nticks is not None else _v _v = arg.pop('outlinecolor', None) - self.outlinecolor = outlinecolor if outlinecolor is not None else _v + self['outlinecolor'] = outlinecolor if outlinecolor is not None else _v _v = arg.pop('outlinewidth', None) - self.outlinewidth = outlinewidth if outlinewidth is not None else _v + self['outlinewidth'] = outlinewidth if outlinewidth is not None else _v _v = arg.pop('separatethousands', None) - self.separatethousands = separatethousands if separatethousands is not None else _v + self['separatethousands' + ] = separatethousands if separatethousands is not None else _v _v = arg.pop('showexponent', None) - self.showexponent = showexponent if showexponent is not None else _v + self['showexponent'] = showexponent if showexponent is not None else _v _v = arg.pop('showticklabels', None) - self.showticklabels = showticklabels if showticklabels is not None else _v + self['showticklabels' + ] = showticklabels if showticklabels is not None else _v _v = arg.pop('showtickprefix', None) - self.showtickprefix = showtickprefix if showtickprefix is not None else _v + self['showtickprefix' + ] = showtickprefix if showtickprefix is not None else _v _v = arg.pop('showticksuffix', None) - self.showticksuffix = showticksuffix if showticksuffix is not None else _v + self['showticksuffix' + ] = showticksuffix if showticksuffix is not None else _v _v = arg.pop('thickness', None) - self.thickness = thickness if thickness is not None else _v + self['thickness'] = thickness if thickness is not None else _v _v = arg.pop('thicknessmode', None) - self.thicknessmode = thicknessmode if thicknessmode is not None else _v + self['thicknessmode' + ] = thicknessmode if thicknessmode is not None else _v _v = arg.pop('tick0', None) - self.tick0 = tick0 if tick0 is not None else _v + self['tick0'] = tick0 if tick0 is not None else _v _v = arg.pop('tickangle', None) - self.tickangle = tickangle if tickangle is not None else _v + self['tickangle'] = tickangle if tickangle is not None else _v _v = arg.pop('tickcolor', None) - self.tickcolor = tickcolor if tickcolor is not None else _v + self['tickcolor'] = tickcolor if tickcolor is not None else _v _v = arg.pop('tickfont', None) - self.tickfont = tickfont if tickfont is not None else _v + self['tickfont'] = tickfont if tickfont is not None else _v _v = arg.pop('tickformat', None) - self.tickformat = tickformat if tickformat is not None else _v + self['tickformat'] = tickformat if tickformat is not None else _v _v = arg.pop('tickformatstops', None) - self.tickformatstops = tickformatstops if tickformatstops is not None else _v + self['tickformatstops' + ] = tickformatstops if tickformatstops is not None else _v _v = arg.pop('ticklen', None) - self.ticklen = ticklen if ticklen is not None else _v + self['ticklen'] = ticklen if ticklen is not None else _v _v = arg.pop('tickmode', None) - self.tickmode = tickmode if tickmode is not None else _v + self['tickmode'] = tickmode if tickmode is not None else _v _v = arg.pop('tickprefix', None) - self.tickprefix = tickprefix if tickprefix is not None else _v + self['tickprefix'] = tickprefix if tickprefix is not None else _v _v = arg.pop('ticks', None) - self.ticks = ticks if ticks is not None else _v + self['ticks'] = ticks if ticks is not None else _v _v = arg.pop('ticksuffix', None) - self.ticksuffix = ticksuffix if ticksuffix is not None else _v + self['ticksuffix'] = ticksuffix if ticksuffix is not None else _v _v = arg.pop('ticktext', None) - self.ticktext = ticktext if ticktext is not None else _v + self['ticktext'] = ticktext if ticktext is not None else _v _v = arg.pop('ticktextsrc', None) - self.ticktextsrc = ticktextsrc if ticktextsrc is not None else _v + self['ticktextsrc'] = ticktextsrc if ticktextsrc is not None else _v _v = arg.pop('tickvals', None) - self.tickvals = tickvals if tickvals is not None else _v + self['tickvals'] = tickvals if tickvals is not None else _v _v = arg.pop('tickvalssrc', None) - self.tickvalssrc = tickvalssrc if tickvalssrc is not None else _v + self['tickvalssrc'] = tickvalssrc if tickvalssrc is not None else _v _v = arg.pop('tickwidth', None) - self.tickwidth = tickwidth if tickwidth is not None else _v + self['tickwidth'] = tickwidth if tickwidth is not None else _v _v = arg.pop('title', None) - self.title = title if title is not None else _v + self['title'] = title if title is not None else _v _v = arg.pop('titlefont', None) - self.titlefont = titlefont if titlefont is not None else _v + self['titlefont'] = titlefont if titlefont is not None else _v _v = arg.pop('titleside', None) - self.titleside = titleside if titleside is not None else _v + self['titleside'] = titleside if titleside is not None else _v _v = arg.pop('x', None) - self.x = x if x is not None else _v + self['x'] = x if x is not None else _v _v = arg.pop('xanchor', None) - self.xanchor = xanchor if xanchor is not None else _v + self['xanchor'] = xanchor if xanchor is not None else _v _v = arg.pop('xpad', None) - self.xpad = xpad if xpad is not None else _v + self['xpad'] = xpad if xpad is not None else _v _v = arg.pop('y', None) - self.y = y if y is not None else _v + self['y'] = y if y is not None else _v _v = arg.pop('yanchor', None) - self.yanchor = yanchor if yanchor is not None else _v + self['yanchor'] = yanchor if yanchor is not None else _v _v = arg.pop('ypad', None) - self.ypad = ypad if ypad is not None else _v + self['ypad'] = ypad if ypad is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/bar/marker/_line.py b/plotly/graph_objs/bar/marker/_line.py index e6f788c15cb..1257c22fef7 100644 --- a/plotly/graph_objs/bar/marker/_line.py +++ b/plotly/graph_objs/bar/marker/_line.py @@ -495,25 +495,26 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('autocolorscale', None) - self.autocolorscale = autocolorscale if autocolorscale is not None else _v + self['autocolorscale' + ] = autocolorscale if autocolorscale is not None else _v _v = arg.pop('cauto', None) - self.cauto = cauto if cauto is not None else _v + self['cauto'] = cauto if cauto is not None else _v _v = arg.pop('cmax', None) - self.cmax = cmax if cmax is not None else _v + self['cmax'] = cmax if cmax is not None else _v _v = arg.pop('cmin', None) - self.cmin = cmin if cmin is not None else _v + self['cmin'] = cmin if cmin is not None else _v _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('colorscale', None) - self.colorscale = colorscale if colorscale is not None else _v + self['colorscale'] = colorscale if colorscale is not None else _v _v = arg.pop('colorsrc', None) - self.colorsrc = colorsrc if colorsrc is not None else _v + self['colorsrc'] = colorsrc if colorsrc is not None else _v _v = arg.pop('reversescale', None) - self.reversescale = reversescale if reversescale is not None else _v + self['reversescale'] = reversescale if reversescale is not None else _v _v = arg.pop('width', None) - self.width = width if width is not None else _v + self['width'] = width if width is not None else _v _v = arg.pop('widthsrc', None) - self.widthsrc = widthsrc if widthsrc is not None else _v + self['widthsrc'] = widthsrc if widthsrc is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/bar/marker/colorbar/_tickfont.py b/plotly/graph_objs/bar/marker/colorbar/_tickfont.py index 1ae88e16237..79373d93ede 100644 --- a/plotly/graph_objs/bar/marker/colorbar/_tickfont.py +++ b/plotly/graph_objs/bar/marker/colorbar/_tickfont.py @@ -209,11 +209,11 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('family', None) - self.family = family if family is not None else _v + self['family'] = family if family is not None else _v _v = arg.pop('size', None) - self.size = size if size is not None else _v + self['size'] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/bar/marker/colorbar/_tickformatstop.py b/plotly/graph_objs/bar/marker/colorbar/_tickformatstop.py index 67fe67091a0..2d554bc5e6a 100644 --- a/plotly/graph_objs/bar/marker/colorbar/_tickformatstop.py +++ b/plotly/graph_objs/bar/marker/colorbar/_tickformatstop.py @@ -260,15 +260,16 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('dtickrange', None) - self.dtickrange = dtickrange if dtickrange is not None else _v + self['dtickrange'] = dtickrange if dtickrange is not None else _v _v = arg.pop('enabled', None) - self.enabled = enabled if enabled is not None else _v + self['enabled'] = enabled if enabled is not None else _v _v = arg.pop('name', None) - self.name = name if name is not None else _v + self['name'] = name if name is not None else _v _v = arg.pop('templateitemname', None) - self.templateitemname = templateitemname if templateitemname is not None else _v + self['templateitemname' + ] = templateitemname if templateitemname is not None else _v _v = arg.pop('value', None) - self.value = value if value is not None else _v + self['value'] = value if value is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/bar/marker/colorbar/_titlefont.py b/plotly/graph_objs/bar/marker/colorbar/_titlefont.py index 171d9e1207b..5b440557dda 100644 --- a/plotly/graph_objs/bar/marker/colorbar/_titlefont.py +++ b/plotly/graph_objs/bar/marker/colorbar/_titlefont.py @@ -209,11 +209,11 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('family', None) - self.family = family if family is not None else _v + self['family'] = family if family is not None else _v _v = arg.pop('size', None) - self.size = size if size is not None else _v + self['size'] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/bar/selected/_marker.py b/plotly/graph_objs/bar/selected/_marker.py index 46aabcf941b..fcc94f91ecc 100644 --- a/plotly/graph_objs/bar/selected/_marker.py +++ b/plotly/graph_objs/bar/selected/_marker.py @@ -148,9 +148,9 @@ def __init__(self, arg=None, color=None, opacity=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('opacity', None) - self.opacity = opacity if opacity is not None else _v + self['opacity'] = opacity if opacity is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/bar/selected/_textfont.py b/plotly/graph_objs/bar/selected/_textfont.py index 4dd48949485..451b0ee4762 100644 --- a/plotly/graph_objs/bar/selected/_textfont.py +++ b/plotly/graph_objs/bar/selected/_textfont.py @@ -123,7 +123,7 @@ def __init__(self, arg=None, color=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/bar/unselected/_marker.py b/plotly/graph_objs/bar/unselected/_marker.py index 70d7d532820..f97edc0f284 100644 --- a/plotly/graph_objs/bar/unselected/_marker.py +++ b/plotly/graph_objs/bar/unselected/_marker.py @@ -154,9 +154,9 @@ def __init__(self, arg=None, color=None, opacity=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('opacity', None) - self.opacity = opacity if opacity is not None else _v + self['opacity'] = opacity if opacity is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/bar/unselected/_textfont.py b/plotly/graph_objs/bar/unselected/_textfont.py index bac56b721cb..84969eb28af 100644 --- a/plotly/graph_objs/bar/unselected/_textfont.py +++ b/plotly/graph_objs/bar/unselected/_textfont.py @@ -127,7 +127,7 @@ def __init__(self, arg=None, color=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/box/_hoverlabel.py b/plotly/graph_objs/box/_hoverlabel.py index ed3798cc4bb..de5d54ae2cb 100644 --- a/plotly/graph_objs/box/_hoverlabel.py +++ b/plotly/graph_objs/box/_hoverlabel.py @@ -385,19 +385,21 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('bgcolor', None) - self.bgcolor = bgcolor if bgcolor is not None else _v + self['bgcolor'] = bgcolor if bgcolor is not None else _v _v = arg.pop('bgcolorsrc', None) - self.bgcolorsrc = bgcolorsrc if bgcolorsrc is not None else _v + self['bgcolorsrc'] = bgcolorsrc if bgcolorsrc is not None else _v _v = arg.pop('bordercolor', None) - self.bordercolor = bordercolor if bordercolor is not None else _v + self['bordercolor'] = bordercolor if bordercolor is not None else _v _v = arg.pop('bordercolorsrc', None) - self.bordercolorsrc = bordercolorsrc if bordercolorsrc is not None else _v + self['bordercolorsrc' + ] = bordercolorsrc if bordercolorsrc is not None else _v _v = arg.pop('font', None) - self.font = font if font is not None else _v + self['font'] = font if font is not None else _v _v = arg.pop('namelength', None) - self.namelength = namelength if namelength is not None else _v + self['namelength'] = namelength if namelength is not None else _v _v = arg.pop('namelengthsrc', None) - self.namelengthsrc = namelengthsrc if namelengthsrc is not None else _v + self['namelengthsrc' + ] = namelengthsrc if namelengthsrc is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/box/_line.py b/plotly/graph_objs/box/_line.py index bb2dc0cf3f9..272380f600b 100644 --- a/plotly/graph_objs/box/_line.py +++ b/plotly/graph_objs/box/_line.py @@ -148,9 +148,9 @@ def __init__(self, arg=None, color=None, width=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('width', None) - self.width = width if width is not None else _v + self['width'] = width if width is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/box/_marker.py b/plotly/graph_objs/box/_marker.py index 95f590ad468..cc2dc16c5df 100644 --- a/plotly/graph_objs/box/_marker.py +++ b/plotly/graph_objs/box/_marker.py @@ -402,17 +402,17 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('line', None) - self.line = line if line is not None else _v + self['line'] = line if line is not None else _v _v = arg.pop('opacity', None) - self.opacity = opacity if opacity is not None else _v + self['opacity'] = opacity if opacity is not None else _v _v = arg.pop('outliercolor', None) - self.outliercolor = outliercolor if outliercolor is not None else _v + self['outliercolor'] = outliercolor if outliercolor is not None else _v _v = arg.pop('size', None) - self.size = size if size is not None else _v + self['size'] = size if size is not None else _v _v = arg.pop('symbol', None) - self.symbol = symbol if symbol is not None else _v + self['symbol'] = symbol if symbol is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/box/_selected.py b/plotly/graph_objs/box/_selected.py index 406fd25e94b..91572340610 100644 --- a/plotly/graph_objs/box/_selected.py +++ b/plotly/graph_objs/box/_selected.py @@ -96,7 +96,7 @@ def __init__(self, arg=None, marker=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('marker', None) - self.marker = marker if marker is not None else _v + self['marker'] = marker if marker is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/box/_stream.py b/plotly/graph_objs/box/_stream.py index a3c93846fc2..d081bf38091 100644 --- a/plotly/graph_objs/box/_stream.py +++ b/plotly/graph_objs/box/_stream.py @@ -122,9 +122,9 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('maxpoints', None) - self.maxpoints = maxpoints if maxpoints is not None else _v + self['maxpoints'] = maxpoints if maxpoints is not None else _v _v = arg.pop('token', None) - self.token = token if token is not None else _v + self['token'] = token if token is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/box/_unselected.py b/plotly/graph_objs/box/_unselected.py index a6ddaa5083f..af2c1b95837 100644 --- a/plotly/graph_objs/box/_unselected.py +++ b/plotly/graph_objs/box/_unselected.py @@ -99,7 +99,7 @@ def __init__(self, arg=None, marker=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('marker', None) - self.marker = marker if marker is not None else _v + self['marker'] = marker if marker is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/box/hoverlabel/_font.py b/plotly/graph_objs/box/hoverlabel/_font.py index b509b3a506e..31921183568 100644 --- a/plotly/graph_objs/box/hoverlabel/_font.py +++ b/plotly/graph_objs/box/hoverlabel/_font.py @@ -294,17 +294,17 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('colorsrc', None) - self.colorsrc = colorsrc if colorsrc is not None else _v + self['colorsrc'] = colorsrc if colorsrc is not None else _v _v = arg.pop('family', None) - self.family = family if family is not None else _v + self['family'] = family if family is not None else _v _v = arg.pop('familysrc', None) - self.familysrc = familysrc if familysrc is not None else _v + self['familysrc'] = familysrc if familysrc is not None else _v _v = arg.pop('size', None) - self.size = size if size is not None else _v + self['size'] = size if size is not None else _v _v = arg.pop('sizesrc', None) - self.sizesrc = sizesrc if sizesrc is not None else _v + self['sizesrc'] = sizesrc if sizesrc is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/box/marker/_line.py b/plotly/graph_objs/box/marker/_line.py index d68b812c188..5f47614f8d8 100644 --- a/plotly/graph_objs/box/marker/_line.py +++ b/plotly/graph_objs/box/marker/_line.py @@ -264,13 +264,13 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('outliercolor', None) - self.outliercolor = outliercolor if outliercolor is not None else _v + self['outliercolor'] = outliercolor if outliercolor is not None else _v _v = arg.pop('outlierwidth', None) - self.outlierwidth = outlierwidth if outlierwidth is not None else _v + self['outlierwidth'] = outlierwidth if outlierwidth is not None else _v _v = arg.pop('width', None) - self.width = width if width is not None else _v + self['width'] = width if width is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/box/selected/_marker.py b/plotly/graph_objs/box/selected/_marker.py index 2815aa0199f..9279f29339f 100644 --- a/plotly/graph_objs/box/selected/_marker.py +++ b/plotly/graph_objs/box/selected/_marker.py @@ -175,11 +175,11 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('opacity', None) - self.opacity = opacity if opacity is not None else _v + self['opacity'] = opacity if opacity is not None else _v _v = arg.pop('size', None) - self.size = size if size is not None else _v + self['size'] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/box/unselected/_marker.py b/plotly/graph_objs/box/unselected/_marker.py index bb3108155d7..f15bd733842 100644 --- a/plotly/graph_objs/box/unselected/_marker.py +++ b/plotly/graph_objs/box/unselected/_marker.py @@ -184,11 +184,11 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('opacity', None) - self.opacity = opacity if opacity is not None else _v + self['opacity'] = opacity if opacity is not None else _v _v = arg.pop('size', None) - self.size = size if size is not None else _v + self['size'] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/candlestick/_decreasing.py b/plotly/graph_objs/candlestick/_decreasing.py index 992c28690ee..c34866bcfa8 100644 --- a/plotly/graph_objs/candlestick/_decreasing.py +++ b/plotly/graph_objs/candlestick/_decreasing.py @@ -165,9 +165,9 @@ def __init__(self, arg=None, fillcolor=None, line=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('fillcolor', None) - self.fillcolor = fillcolor if fillcolor is not None else _v + self['fillcolor'] = fillcolor if fillcolor is not None else _v _v = arg.pop('line', None) - self.line = line if line is not None else _v + self['line'] = line if line is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/candlestick/_hoverlabel.py b/plotly/graph_objs/candlestick/_hoverlabel.py index 00820f06cad..de30d4478a3 100644 --- a/plotly/graph_objs/candlestick/_hoverlabel.py +++ b/plotly/graph_objs/candlestick/_hoverlabel.py @@ -385,19 +385,21 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('bgcolor', None) - self.bgcolor = bgcolor if bgcolor is not None else _v + self['bgcolor'] = bgcolor if bgcolor is not None else _v _v = arg.pop('bgcolorsrc', None) - self.bgcolorsrc = bgcolorsrc if bgcolorsrc is not None else _v + self['bgcolorsrc'] = bgcolorsrc if bgcolorsrc is not None else _v _v = arg.pop('bordercolor', None) - self.bordercolor = bordercolor if bordercolor is not None else _v + self['bordercolor'] = bordercolor if bordercolor is not None else _v _v = arg.pop('bordercolorsrc', None) - self.bordercolorsrc = bordercolorsrc if bordercolorsrc is not None else _v + self['bordercolorsrc' + ] = bordercolorsrc if bordercolorsrc is not None else _v _v = arg.pop('font', None) - self.font = font if font is not None else _v + self['font'] = font if font is not None else _v _v = arg.pop('namelength', None) - self.namelength = namelength if namelength is not None else _v + self['namelength'] = namelength if namelength is not None else _v _v = arg.pop('namelengthsrc', None) - self.namelengthsrc = namelengthsrc if namelengthsrc is not None else _v + self['namelengthsrc' + ] = namelengthsrc if namelengthsrc is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/candlestick/_increasing.py b/plotly/graph_objs/candlestick/_increasing.py index a38b03fe1d8..93b1f95cc90 100644 --- a/plotly/graph_objs/candlestick/_increasing.py +++ b/plotly/graph_objs/candlestick/_increasing.py @@ -165,9 +165,9 @@ def __init__(self, arg=None, fillcolor=None, line=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('fillcolor', None) - self.fillcolor = fillcolor if fillcolor is not None else _v + self['fillcolor'] = fillcolor if fillcolor is not None else _v _v = arg.pop('line', None) - self.line = line if line is not None else _v + self['line'] = line if line is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/candlestick/_line.py b/plotly/graph_objs/candlestick/_line.py index 8fbb065aa1a..7c3634fb75d 100644 --- a/plotly/graph_objs/candlestick/_line.py +++ b/plotly/graph_objs/candlestick/_line.py @@ -92,7 +92,7 @@ def __init__(self, arg=None, width=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('width', None) - self.width = width if width is not None else _v + self['width'] = width if width is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/candlestick/_stream.py b/plotly/graph_objs/candlestick/_stream.py index 00359226f2b..fe58a5ade66 100644 --- a/plotly/graph_objs/candlestick/_stream.py +++ b/plotly/graph_objs/candlestick/_stream.py @@ -122,9 +122,9 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('maxpoints', None) - self.maxpoints = maxpoints if maxpoints is not None else _v + self['maxpoints'] = maxpoints if maxpoints is not None else _v _v = arg.pop('token', None) - self.token = token if token is not None else _v + self['token'] = token if token is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/candlestick/decreasing/_line.py b/plotly/graph_objs/candlestick/decreasing/_line.py index 0e7a640906d..ace775a613d 100644 --- a/plotly/graph_objs/candlestick/decreasing/_line.py +++ b/plotly/graph_objs/candlestick/decreasing/_line.py @@ -149,9 +149,9 @@ def __init__(self, arg=None, color=None, width=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('width', None) - self.width = width if width is not None else _v + self['width'] = width if width is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/candlestick/hoverlabel/_font.py b/plotly/graph_objs/candlestick/hoverlabel/_font.py index 7d90b4493f0..6c924ae0741 100644 --- a/plotly/graph_objs/candlestick/hoverlabel/_font.py +++ b/plotly/graph_objs/candlestick/hoverlabel/_font.py @@ -295,17 +295,17 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('colorsrc', None) - self.colorsrc = colorsrc if colorsrc is not None else _v + self['colorsrc'] = colorsrc if colorsrc is not None else _v _v = arg.pop('family', None) - self.family = family if family is not None else _v + self['family'] = family if family is not None else _v _v = arg.pop('familysrc', None) - self.familysrc = familysrc if familysrc is not None else _v + self['familysrc'] = familysrc if familysrc is not None else _v _v = arg.pop('size', None) - self.size = size if size is not None else _v + self['size'] = size if size is not None else _v _v = arg.pop('sizesrc', None) - self.sizesrc = sizesrc if sizesrc is not None else _v + self['sizesrc'] = sizesrc if sizesrc is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/candlestick/increasing/_line.py b/plotly/graph_objs/candlestick/increasing/_line.py index 58e50ffeb10..51f23a61498 100644 --- a/plotly/graph_objs/candlestick/increasing/_line.py +++ b/plotly/graph_objs/candlestick/increasing/_line.py @@ -149,9 +149,9 @@ def __init__(self, arg=None, color=None, width=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('width', None) - self.width = width if width is not None else _v + self['width'] = width if width is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/carpet/_aaxis.py b/plotly/graph_objs/carpet/_aaxis.py index 4705373a389..8951eccd171 100644 --- a/plotly/graph_objs/carpet/_aaxis.py +++ b/plotly/graph_objs/carpet/_aaxis.py @@ -2023,113 +2023,127 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('arraydtick', None) - self.arraydtick = arraydtick if arraydtick is not None else _v + self['arraydtick'] = arraydtick if arraydtick is not None else _v _v = arg.pop('arraytick0', None) - self.arraytick0 = arraytick0 if arraytick0 is not None else _v + self['arraytick0'] = arraytick0 if arraytick0 is not None else _v _v = arg.pop('autorange', None) - self.autorange = autorange if autorange is not None else _v + self['autorange'] = autorange if autorange is not None else _v _v = arg.pop('categoryarray', None) - self.categoryarray = categoryarray if categoryarray is not None else _v + self['categoryarray' + ] = categoryarray if categoryarray is not None else _v _v = arg.pop('categoryarraysrc', None) - self.categoryarraysrc = categoryarraysrc if categoryarraysrc is not None else _v + self['categoryarraysrc' + ] = categoryarraysrc if categoryarraysrc is not None else _v _v = arg.pop('categoryorder', None) - self.categoryorder = categoryorder if categoryorder is not None else _v + self['categoryorder' + ] = categoryorder if categoryorder is not None else _v _v = arg.pop('cheatertype', None) - self.cheatertype = cheatertype if cheatertype is not None else _v + self['cheatertype'] = cheatertype if cheatertype is not None else _v _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('dtick', None) - self.dtick = dtick if dtick is not None else _v + self['dtick'] = dtick if dtick is not None else _v _v = arg.pop('endline', None) - self.endline = endline if endline is not None else _v + self['endline'] = endline if endline is not None else _v _v = arg.pop('endlinecolor', None) - self.endlinecolor = endlinecolor if endlinecolor is not None else _v + self['endlinecolor'] = endlinecolor if endlinecolor is not None else _v _v = arg.pop('endlinewidth', None) - self.endlinewidth = endlinewidth if endlinewidth is not None else _v + self['endlinewidth'] = endlinewidth if endlinewidth is not None else _v _v = arg.pop('exponentformat', None) - self.exponentformat = exponentformat if exponentformat is not None else _v + self['exponentformat' + ] = exponentformat if exponentformat is not None else _v _v = arg.pop('fixedrange', None) - self.fixedrange = fixedrange if fixedrange is not None else _v + self['fixedrange'] = fixedrange if fixedrange is not None else _v _v = arg.pop('gridcolor', None) - self.gridcolor = gridcolor if gridcolor is not None else _v + self['gridcolor'] = gridcolor if gridcolor is not None else _v _v = arg.pop('gridwidth', None) - self.gridwidth = gridwidth if gridwidth is not None else _v + self['gridwidth'] = gridwidth if gridwidth is not None else _v _v = arg.pop('labelpadding', None) - self.labelpadding = labelpadding if labelpadding is not None else _v + self['labelpadding'] = labelpadding if labelpadding is not None else _v _v = arg.pop('labelprefix', None) - self.labelprefix = labelprefix if labelprefix is not None else _v + self['labelprefix'] = labelprefix if labelprefix is not None else _v _v = arg.pop('labelsuffix', None) - self.labelsuffix = labelsuffix if labelsuffix is not None else _v + self['labelsuffix'] = labelsuffix if labelsuffix is not None else _v _v = arg.pop('linecolor', None) - self.linecolor = linecolor if linecolor is not None else _v + self['linecolor'] = linecolor if linecolor is not None else _v _v = arg.pop('linewidth', None) - self.linewidth = linewidth if linewidth is not None else _v + self['linewidth'] = linewidth if linewidth is not None else _v _v = arg.pop('minorgridcolor', None) - self.minorgridcolor = minorgridcolor if minorgridcolor is not None else _v + self['minorgridcolor' + ] = minorgridcolor if minorgridcolor is not None else _v _v = arg.pop('minorgridcount', None) - self.minorgridcount = minorgridcount if minorgridcount is not None else _v + self['minorgridcount' + ] = minorgridcount if minorgridcount is not None else _v _v = arg.pop('minorgridwidth', None) - self.minorgridwidth = minorgridwidth if minorgridwidth is not None else _v + self['minorgridwidth' + ] = minorgridwidth if minorgridwidth is not None else _v _v = arg.pop('nticks', None) - self.nticks = nticks if nticks is not None else _v + self['nticks'] = nticks if nticks is not None else _v _v = arg.pop('range', None) - self.range = range if range is not None else _v + self['range'] = range if range is not None else _v _v = arg.pop('rangemode', None) - self.rangemode = rangemode if rangemode is not None else _v + self['rangemode'] = rangemode if rangemode is not None else _v _v = arg.pop('separatethousands', None) - self.separatethousands = separatethousands if separatethousands is not None else _v + self['separatethousands' + ] = separatethousands if separatethousands is not None else _v _v = arg.pop('showexponent', None) - self.showexponent = showexponent if showexponent is not None else _v + self['showexponent'] = showexponent if showexponent is not None else _v _v = arg.pop('showgrid', None) - self.showgrid = showgrid if showgrid is not None else _v + self['showgrid'] = showgrid if showgrid is not None else _v _v = arg.pop('showline', None) - self.showline = showline if showline is not None else _v + self['showline'] = showline if showline is not None else _v _v = arg.pop('showticklabels', None) - self.showticklabels = showticklabels if showticklabels is not None else _v + self['showticklabels' + ] = showticklabels if showticklabels is not None else _v _v = arg.pop('showtickprefix', None) - self.showtickprefix = showtickprefix if showtickprefix is not None else _v + self['showtickprefix' + ] = showtickprefix if showtickprefix is not None else _v _v = arg.pop('showticksuffix', None) - self.showticksuffix = showticksuffix if showticksuffix is not None else _v + self['showticksuffix' + ] = showticksuffix if showticksuffix is not None else _v _v = arg.pop('smoothing', None) - self.smoothing = smoothing if smoothing is not None else _v + self['smoothing'] = smoothing if smoothing is not None else _v _v = arg.pop('startline', None) - self.startline = startline if startline is not None else _v + self['startline'] = startline if startline is not None else _v _v = arg.pop('startlinecolor', None) - self.startlinecolor = startlinecolor if startlinecolor is not None else _v + self['startlinecolor' + ] = startlinecolor if startlinecolor is not None else _v _v = arg.pop('startlinewidth', None) - self.startlinewidth = startlinewidth if startlinewidth is not None else _v + self['startlinewidth' + ] = startlinewidth if startlinewidth is not None else _v _v = arg.pop('tick0', None) - self.tick0 = tick0 if tick0 is not None else _v + self['tick0'] = tick0 if tick0 is not None else _v _v = arg.pop('tickangle', None) - self.tickangle = tickangle if tickangle is not None else _v + self['tickangle'] = tickangle if tickangle is not None else _v _v = arg.pop('tickfont', None) - self.tickfont = tickfont if tickfont is not None else _v + self['tickfont'] = tickfont if tickfont is not None else _v _v = arg.pop('tickformat', None) - self.tickformat = tickformat if tickformat is not None else _v + self['tickformat'] = tickformat if tickformat is not None else _v _v = arg.pop('tickformatstops', None) - self.tickformatstops = tickformatstops if tickformatstops is not None else _v + self['tickformatstops' + ] = tickformatstops if tickformatstops is not None else _v _v = arg.pop('tickmode', None) - self.tickmode = tickmode if tickmode is not None else _v + self['tickmode'] = tickmode if tickmode is not None else _v _v = arg.pop('tickprefix', None) - self.tickprefix = tickprefix if tickprefix is not None else _v + self['tickprefix'] = tickprefix if tickprefix is not None else _v _v = arg.pop('ticksuffix', None) - self.ticksuffix = ticksuffix if ticksuffix is not None else _v + self['ticksuffix'] = ticksuffix if ticksuffix is not None else _v _v = arg.pop('ticktext', None) - self.ticktext = ticktext if ticktext is not None else _v + self['ticktext'] = ticktext if ticktext is not None else _v _v = arg.pop('ticktextsrc', None) - self.ticktextsrc = ticktextsrc if ticktextsrc is not None else _v + self['ticktextsrc'] = ticktextsrc if ticktextsrc is not None else _v _v = arg.pop('tickvals', None) - self.tickvals = tickvals if tickvals is not None else _v + self['tickvals'] = tickvals if tickvals is not None else _v _v = arg.pop('tickvalssrc', None) - self.tickvalssrc = tickvalssrc if tickvalssrc is not None else _v + self['tickvalssrc'] = tickvalssrc if tickvalssrc is not None else _v _v = arg.pop('title', None) - self.title = title if title is not None else _v + self['title'] = title if title is not None else _v _v = arg.pop('titlefont', None) - self.titlefont = titlefont if titlefont is not None else _v + self['titlefont'] = titlefont if titlefont is not None else _v _v = arg.pop('titleoffset', None) - self.titleoffset = titleoffset if titleoffset is not None else _v + self['titleoffset'] = titleoffset if titleoffset is not None else _v _v = arg.pop('type', None) - self.type = type if type is not None else _v + self['type'] = type if type is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/carpet/_baxis.py b/plotly/graph_objs/carpet/_baxis.py index faefb9ecec9..6f863f3fee8 100644 --- a/plotly/graph_objs/carpet/_baxis.py +++ b/plotly/graph_objs/carpet/_baxis.py @@ -2023,113 +2023,127 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('arraydtick', None) - self.arraydtick = arraydtick if arraydtick is not None else _v + self['arraydtick'] = arraydtick if arraydtick is not None else _v _v = arg.pop('arraytick0', None) - self.arraytick0 = arraytick0 if arraytick0 is not None else _v + self['arraytick0'] = arraytick0 if arraytick0 is not None else _v _v = arg.pop('autorange', None) - self.autorange = autorange if autorange is not None else _v + self['autorange'] = autorange if autorange is not None else _v _v = arg.pop('categoryarray', None) - self.categoryarray = categoryarray if categoryarray is not None else _v + self['categoryarray' + ] = categoryarray if categoryarray is not None else _v _v = arg.pop('categoryarraysrc', None) - self.categoryarraysrc = categoryarraysrc if categoryarraysrc is not None else _v + self['categoryarraysrc' + ] = categoryarraysrc if categoryarraysrc is not None else _v _v = arg.pop('categoryorder', None) - self.categoryorder = categoryorder if categoryorder is not None else _v + self['categoryorder' + ] = categoryorder if categoryorder is not None else _v _v = arg.pop('cheatertype', None) - self.cheatertype = cheatertype if cheatertype is not None else _v + self['cheatertype'] = cheatertype if cheatertype is not None else _v _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('dtick', None) - self.dtick = dtick if dtick is not None else _v + self['dtick'] = dtick if dtick is not None else _v _v = arg.pop('endline', None) - self.endline = endline if endline is not None else _v + self['endline'] = endline if endline is not None else _v _v = arg.pop('endlinecolor', None) - self.endlinecolor = endlinecolor if endlinecolor is not None else _v + self['endlinecolor'] = endlinecolor if endlinecolor is not None else _v _v = arg.pop('endlinewidth', None) - self.endlinewidth = endlinewidth if endlinewidth is not None else _v + self['endlinewidth'] = endlinewidth if endlinewidth is not None else _v _v = arg.pop('exponentformat', None) - self.exponentformat = exponentformat if exponentformat is not None else _v + self['exponentformat' + ] = exponentformat if exponentformat is not None else _v _v = arg.pop('fixedrange', None) - self.fixedrange = fixedrange if fixedrange is not None else _v + self['fixedrange'] = fixedrange if fixedrange is not None else _v _v = arg.pop('gridcolor', None) - self.gridcolor = gridcolor if gridcolor is not None else _v + self['gridcolor'] = gridcolor if gridcolor is not None else _v _v = arg.pop('gridwidth', None) - self.gridwidth = gridwidth if gridwidth is not None else _v + self['gridwidth'] = gridwidth if gridwidth is not None else _v _v = arg.pop('labelpadding', None) - self.labelpadding = labelpadding if labelpadding is not None else _v + self['labelpadding'] = labelpadding if labelpadding is not None else _v _v = arg.pop('labelprefix', None) - self.labelprefix = labelprefix if labelprefix is not None else _v + self['labelprefix'] = labelprefix if labelprefix is not None else _v _v = arg.pop('labelsuffix', None) - self.labelsuffix = labelsuffix if labelsuffix is not None else _v + self['labelsuffix'] = labelsuffix if labelsuffix is not None else _v _v = arg.pop('linecolor', None) - self.linecolor = linecolor if linecolor is not None else _v + self['linecolor'] = linecolor if linecolor is not None else _v _v = arg.pop('linewidth', None) - self.linewidth = linewidth if linewidth is not None else _v + self['linewidth'] = linewidth if linewidth is not None else _v _v = arg.pop('minorgridcolor', None) - self.minorgridcolor = minorgridcolor if minorgridcolor is not None else _v + self['minorgridcolor' + ] = minorgridcolor if minorgridcolor is not None else _v _v = arg.pop('minorgridcount', None) - self.minorgridcount = minorgridcount if minorgridcount is not None else _v + self['minorgridcount' + ] = minorgridcount if minorgridcount is not None else _v _v = arg.pop('minorgridwidth', None) - self.minorgridwidth = minorgridwidth if minorgridwidth is not None else _v + self['minorgridwidth' + ] = minorgridwidth if minorgridwidth is not None else _v _v = arg.pop('nticks', None) - self.nticks = nticks if nticks is not None else _v + self['nticks'] = nticks if nticks is not None else _v _v = arg.pop('range', None) - self.range = range if range is not None else _v + self['range'] = range if range is not None else _v _v = arg.pop('rangemode', None) - self.rangemode = rangemode if rangemode is not None else _v + self['rangemode'] = rangemode if rangemode is not None else _v _v = arg.pop('separatethousands', None) - self.separatethousands = separatethousands if separatethousands is not None else _v + self['separatethousands' + ] = separatethousands if separatethousands is not None else _v _v = arg.pop('showexponent', None) - self.showexponent = showexponent if showexponent is not None else _v + self['showexponent'] = showexponent if showexponent is not None else _v _v = arg.pop('showgrid', None) - self.showgrid = showgrid if showgrid is not None else _v + self['showgrid'] = showgrid if showgrid is not None else _v _v = arg.pop('showline', None) - self.showline = showline if showline is not None else _v + self['showline'] = showline if showline is not None else _v _v = arg.pop('showticklabels', None) - self.showticklabels = showticklabels if showticklabels is not None else _v + self['showticklabels' + ] = showticklabels if showticklabels is not None else _v _v = arg.pop('showtickprefix', None) - self.showtickprefix = showtickprefix if showtickprefix is not None else _v + self['showtickprefix' + ] = showtickprefix if showtickprefix is not None else _v _v = arg.pop('showticksuffix', None) - self.showticksuffix = showticksuffix if showticksuffix is not None else _v + self['showticksuffix' + ] = showticksuffix if showticksuffix is not None else _v _v = arg.pop('smoothing', None) - self.smoothing = smoothing if smoothing is not None else _v + self['smoothing'] = smoothing if smoothing is not None else _v _v = arg.pop('startline', None) - self.startline = startline if startline is not None else _v + self['startline'] = startline if startline is not None else _v _v = arg.pop('startlinecolor', None) - self.startlinecolor = startlinecolor if startlinecolor is not None else _v + self['startlinecolor' + ] = startlinecolor if startlinecolor is not None else _v _v = arg.pop('startlinewidth', None) - self.startlinewidth = startlinewidth if startlinewidth is not None else _v + self['startlinewidth' + ] = startlinewidth if startlinewidth is not None else _v _v = arg.pop('tick0', None) - self.tick0 = tick0 if tick0 is not None else _v + self['tick0'] = tick0 if tick0 is not None else _v _v = arg.pop('tickangle', None) - self.tickangle = tickangle if tickangle is not None else _v + self['tickangle'] = tickangle if tickangle is not None else _v _v = arg.pop('tickfont', None) - self.tickfont = tickfont if tickfont is not None else _v + self['tickfont'] = tickfont if tickfont is not None else _v _v = arg.pop('tickformat', None) - self.tickformat = tickformat if tickformat is not None else _v + self['tickformat'] = tickformat if tickformat is not None else _v _v = arg.pop('tickformatstops', None) - self.tickformatstops = tickformatstops if tickformatstops is not None else _v + self['tickformatstops' + ] = tickformatstops if tickformatstops is not None else _v _v = arg.pop('tickmode', None) - self.tickmode = tickmode if tickmode is not None else _v + self['tickmode'] = tickmode if tickmode is not None else _v _v = arg.pop('tickprefix', None) - self.tickprefix = tickprefix if tickprefix is not None else _v + self['tickprefix'] = tickprefix if tickprefix is not None else _v _v = arg.pop('ticksuffix', None) - self.ticksuffix = ticksuffix if ticksuffix is not None else _v + self['ticksuffix'] = ticksuffix if ticksuffix is not None else _v _v = arg.pop('ticktext', None) - self.ticktext = ticktext if ticktext is not None else _v + self['ticktext'] = ticktext if ticktext is not None else _v _v = arg.pop('ticktextsrc', None) - self.ticktextsrc = ticktextsrc if ticktextsrc is not None else _v + self['ticktextsrc'] = ticktextsrc if ticktextsrc is not None else _v _v = arg.pop('tickvals', None) - self.tickvals = tickvals if tickvals is not None else _v + self['tickvals'] = tickvals if tickvals is not None else _v _v = arg.pop('tickvalssrc', None) - self.tickvalssrc = tickvalssrc if tickvalssrc is not None else _v + self['tickvalssrc'] = tickvalssrc if tickvalssrc is not None else _v _v = arg.pop('title', None) - self.title = title if title is not None else _v + self['title'] = title if title is not None else _v _v = arg.pop('titlefont', None) - self.titlefont = titlefont if titlefont is not None else _v + self['titlefont'] = titlefont if titlefont is not None else _v _v = arg.pop('titleoffset', None) - self.titleoffset = titleoffset if titleoffset is not None else _v + self['titleoffset'] = titleoffset if titleoffset is not None else _v _v = arg.pop('type', None) - self.type = type if type is not None else _v + self['type'] = type if type is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/carpet/_font.py b/plotly/graph_objs/carpet/_font.py index 7a48813cb06..f95d32fbe99 100644 --- a/plotly/graph_objs/carpet/_font.py +++ b/plotly/graph_objs/carpet/_font.py @@ -206,11 +206,11 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('family', None) - self.family = family if family is not None else _v + self['family'] = family if family is not None else _v _v = arg.pop('size', None) - self.size = size if size is not None else _v + self['size'] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/carpet/_hoverlabel.py b/plotly/graph_objs/carpet/_hoverlabel.py index 69d2b8eb0c3..304e86dd099 100644 --- a/plotly/graph_objs/carpet/_hoverlabel.py +++ b/plotly/graph_objs/carpet/_hoverlabel.py @@ -385,19 +385,21 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('bgcolor', None) - self.bgcolor = bgcolor if bgcolor is not None else _v + self['bgcolor'] = bgcolor if bgcolor is not None else _v _v = arg.pop('bgcolorsrc', None) - self.bgcolorsrc = bgcolorsrc if bgcolorsrc is not None else _v + self['bgcolorsrc'] = bgcolorsrc if bgcolorsrc is not None else _v _v = arg.pop('bordercolor', None) - self.bordercolor = bordercolor if bordercolor is not None else _v + self['bordercolor'] = bordercolor if bordercolor is not None else _v _v = arg.pop('bordercolorsrc', None) - self.bordercolorsrc = bordercolorsrc if bordercolorsrc is not None else _v + self['bordercolorsrc' + ] = bordercolorsrc if bordercolorsrc is not None else _v _v = arg.pop('font', None) - self.font = font if font is not None else _v + self['font'] = font if font is not None else _v _v = arg.pop('namelength', None) - self.namelength = namelength if namelength is not None else _v + self['namelength'] = namelength if namelength is not None else _v _v = arg.pop('namelengthsrc', None) - self.namelengthsrc = namelengthsrc if namelengthsrc is not None else _v + self['namelengthsrc' + ] = namelengthsrc if namelengthsrc is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/carpet/_stream.py b/plotly/graph_objs/carpet/_stream.py index 5e77a7168f2..53470df6623 100644 --- a/plotly/graph_objs/carpet/_stream.py +++ b/plotly/graph_objs/carpet/_stream.py @@ -122,9 +122,9 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('maxpoints', None) - self.maxpoints = maxpoints if maxpoints is not None else _v + self['maxpoints'] = maxpoints if maxpoints is not None else _v _v = arg.pop('token', None) - self.token = token if token is not None else _v + self['token'] = token if token is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/carpet/aaxis/_tickfont.py b/plotly/graph_objs/carpet/aaxis/_tickfont.py index 0952dbfa7e8..fcb1caeb9e3 100644 --- a/plotly/graph_objs/carpet/aaxis/_tickfont.py +++ b/plotly/graph_objs/carpet/aaxis/_tickfont.py @@ -206,11 +206,11 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('family', None) - self.family = family if family is not None else _v + self['family'] = family if family is not None else _v _v = arg.pop('size', None) - self.size = size if size is not None else _v + self['size'] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/carpet/aaxis/_tickformatstop.py b/plotly/graph_objs/carpet/aaxis/_tickformatstop.py index bce868941f4..fdb08307133 100644 --- a/plotly/graph_objs/carpet/aaxis/_tickformatstop.py +++ b/plotly/graph_objs/carpet/aaxis/_tickformatstop.py @@ -260,15 +260,16 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('dtickrange', None) - self.dtickrange = dtickrange if dtickrange is not None else _v + self['dtickrange'] = dtickrange if dtickrange is not None else _v _v = arg.pop('enabled', None) - self.enabled = enabled if enabled is not None else _v + self['enabled'] = enabled if enabled is not None else _v _v = arg.pop('name', None) - self.name = name if name is not None else _v + self['name'] = name if name is not None else _v _v = arg.pop('templateitemname', None) - self.templateitemname = templateitemname if templateitemname is not None else _v + self['templateitemname' + ] = templateitemname if templateitemname is not None else _v _v = arg.pop('value', None) - self.value = value if value is not None else _v + self['value'] = value if value is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/carpet/aaxis/_titlefont.py b/plotly/graph_objs/carpet/aaxis/_titlefont.py index 3c600d6253e..d35c9aa3a29 100644 --- a/plotly/graph_objs/carpet/aaxis/_titlefont.py +++ b/plotly/graph_objs/carpet/aaxis/_titlefont.py @@ -206,11 +206,11 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('family', None) - self.family = family if family is not None else _v + self['family'] = family if family is not None else _v _v = arg.pop('size', None) - self.size = size if size is not None else _v + self['size'] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/carpet/baxis/_tickfont.py b/plotly/graph_objs/carpet/baxis/_tickfont.py index e14bd7de719..e5407f1640a 100644 --- a/plotly/graph_objs/carpet/baxis/_tickfont.py +++ b/plotly/graph_objs/carpet/baxis/_tickfont.py @@ -206,11 +206,11 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('family', None) - self.family = family if family is not None else _v + self['family'] = family if family is not None else _v _v = arg.pop('size', None) - self.size = size if size is not None else _v + self['size'] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/carpet/baxis/_tickformatstop.py b/plotly/graph_objs/carpet/baxis/_tickformatstop.py index 029547a26f4..766483a8783 100644 --- a/plotly/graph_objs/carpet/baxis/_tickformatstop.py +++ b/plotly/graph_objs/carpet/baxis/_tickformatstop.py @@ -260,15 +260,16 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('dtickrange', None) - self.dtickrange = dtickrange if dtickrange is not None else _v + self['dtickrange'] = dtickrange if dtickrange is not None else _v _v = arg.pop('enabled', None) - self.enabled = enabled if enabled is not None else _v + self['enabled'] = enabled if enabled is not None else _v _v = arg.pop('name', None) - self.name = name if name is not None else _v + self['name'] = name if name is not None else _v _v = arg.pop('templateitemname', None) - self.templateitemname = templateitemname if templateitemname is not None else _v + self['templateitemname' + ] = templateitemname if templateitemname is not None else _v _v = arg.pop('value', None) - self.value = value if value is not None else _v + self['value'] = value if value is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/carpet/baxis/_titlefont.py b/plotly/graph_objs/carpet/baxis/_titlefont.py index 7616c337797..154729f75e4 100644 --- a/plotly/graph_objs/carpet/baxis/_titlefont.py +++ b/plotly/graph_objs/carpet/baxis/_titlefont.py @@ -206,11 +206,11 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('family', None) - self.family = family if family is not None else _v + self['family'] = family if family is not None else _v _v = arg.pop('size', None) - self.size = size if size is not None else _v + self['size'] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/carpet/hoverlabel/_font.py b/plotly/graph_objs/carpet/hoverlabel/_font.py index fc1f9bffd72..4e94aba62c2 100644 --- a/plotly/graph_objs/carpet/hoverlabel/_font.py +++ b/plotly/graph_objs/carpet/hoverlabel/_font.py @@ -294,17 +294,17 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('colorsrc', None) - self.colorsrc = colorsrc if colorsrc is not None else _v + self['colorsrc'] = colorsrc if colorsrc is not None else _v _v = arg.pop('family', None) - self.family = family if family is not None else _v + self['family'] = family if family is not None else _v _v = arg.pop('familysrc', None) - self.familysrc = familysrc if familysrc is not None else _v + self['familysrc'] = familysrc if familysrc is not None else _v _v = arg.pop('size', None) - self.size = size if size is not None else _v + self['size'] = size if size is not None else _v _v = arg.pop('sizesrc', None) - self.sizesrc = sizesrc if sizesrc is not None else _v + self['sizesrc'] = sizesrc if sizesrc is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/choropleth/_colorbar.py b/plotly/graph_objs/choropleth/_colorbar.py index b6ea8b498e7..4220a83c641 100644 --- a/plotly/graph_objs/choropleth/_colorbar.py +++ b/plotly/graph_objs/choropleth/_colorbar.py @@ -1671,89 +1671,96 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('bgcolor', None) - self.bgcolor = bgcolor if bgcolor is not None else _v + self['bgcolor'] = bgcolor if bgcolor is not None else _v _v = arg.pop('bordercolor', None) - self.bordercolor = bordercolor if bordercolor is not None else _v + self['bordercolor'] = bordercolor if bordercolor is not None else _v _v = arg.pop('borderwidth', None) - self.borderwidth = borderwidth if borderwidth is not None else _v + self['borderwidth'] = borderwidth if borderwidth is not None else _v _v = arg.pop('dtick', None) - self.dtick = dtick if dtick is not None else _v + self['dtick'] = dtick if dtick is not None else _v _v = arg.pop('exponentformat', None) - self.exponentformat = exponentformat if exponentformat is not None else _v + self['exponentformat' + ] = exponentformat if exponentformat is not None else _v _v = arg.pop('len', None) - self.len = len if len is not None else _v + self['len'] = len if len is not None else _v _v = arg.pop('lenmode', None) - self.lenmode = lenmode if lenmode is not None else _v + self['lenmode'] = lenmode if lenmode is not None else _v _v = arg.pop('nticks', None) - self.nticks = nticks if nticks is not None else _v + self['nticks'] = nticks if nticks is not None else _v _v = arg.pop('outlinecolor', None) - self.outlinecolor = outlinecolor if outlinecolor is not None else _v + self['outlinecolor'] = outlinecolor if outlinecolor is not None else _v _v = arg.pop('outlinewidth', None) - self.outlinewidth = outlinewidth if outlinewidth is not None else _v + self['outlinewidth'] = outlinewidth if outlinewidth is not None else _v _v = arg.pop('separatethousands', None) - self.separatethousands = separatethousands if separatethousands is not None else _v + self['separatethousands' + ] = separatethousands if separatethousands is not None else _v _v = arg.pop('showexponent', None) - self.showexponent = showexponent if showexponent is not None else _v + self['showexponent'] = showexponent if showexponent is not None else _v _v = arg.pop('showticklabels', None) - self.showticklabels = showticklabels if showticklabels is not None else _v + self['showticklabels' + ] = showticklabels if showticklabels is not None else _v _v = arg.pop('showtickprefix', None) - self.showtickprefix = showtickprefix if showtickprefix is not None else _v + self['showtickprefix' + ] = showtickprefix if showtickprefix is not None else _v _v = arg.pop('showticksuffix', None) - self.showticksuffix = showticksuffix if showticksuffix is not None else _v + self['showticksuffix' + ] = showticksuffix if showticksuffix is not None else _v _v = arg.pop('thickness', None) - self.thickness = thickness if thickness is not None else _v + self['thickness'] = thickness if thickness is not None else _v _v = arg.pop('thicknessmode', None) - self.thicknessmode = thicknessmode if thicknessmode is not None else _v + self['thicknessmode' + ] = thicknessmode if thicknessmode is not None else _v _v = arg.pop('tick0', None) - self.tick0 = tick0 if tick0 is not None else _v + self['tick0'] = tick0 if tick0 is not None else _v _v = arg.pop('tickangle', None) - self.tickangle = tickangle if tickangle is not None else _v + self['tickangle'] = tickangle if tickangle is not None else _v _v = arg.pop('tickcolor', None) - self.tickcolor = tickcolor if tickcolor is not None else _v + self['tickcolor'] = tickcolor if tickcolor is not None else _v _v = arg.pop('tickfont', None) - self.tickfont = tickfont if tickfont is not None else _v + self['tickfont'] = tickfont if tickfont is not None else _v _v = arg.pop('tickformat', None) - self.tickformat = tickformat if tickformat is not None else _v + self['tickformat'] = tickformat if tickformat is not None else _v _v = arg.pop('tickformatstops', None) - self.tickformatstops = tickformatstops if tickformatstops is not None else _v + self['tickformatstops' + ] = tickformatstops if tickformatstops is not None else _v _v = arg.pop('ticklen', None) - self.ticklen = ticklen if ticklen is not None else _v + self['ticklen'] = ticklen if ticklen is not None else _v _v = arg.pop('tickmode', None) - self.tickmode = tickmode if tickmode is not None else _v + self['tickmode'] = tickmode if tickmode is not None else _v _v = arg.pop('tickprefix', None) - self.tickprefix = tickprefix if tickprefix is not None else _v + self['tickprefix'] = tickprefix if tickprefix is not None else _v _v = arg.pop('ticks', None) - self.ticks = ticks if ticks is not None else _v + self['ticks'] = ticks if ticks is not None else _v _v = arg.pop('ticksuffix', None) - self.ticksuffix = ticksuffix if ticksuffix is not None else _v + self['ticksuffix'] = ticksuffix if ticksuffix is not None else _v _v = arg.pop('ticktext', None) - self.ticktext = ticktext if ticktext is not None else _v + self['ticktext'] = ticktext if ticktext is not None else _v _v = arg.pop('ticktextsrc', None) - self.ticktextsrc = ticktextsrc if ticktextsrc is not None else _v + self['ticktextsrc'] = ticktextsrc if ticktextsrc is not None else _v _v = arg.pop('tickvals', None) - self.tickvals = tickvals if tickvals is not None else _v + self['tickvals'] = tickvals if tickvals is not None else _v _v = arg.pop('tickvalssrc', None) - self.tickvalssrc = tickvalssrc if tickvalssrc is not None else _v + self['tickvalssrc'] = tickvalssrc if tickvalssrc is not None else _v _v = arg.pop('tickwidth', None) - self.tickwidth = tickwidth if tickwidth is not None else _v + self['tickwidth'] = tickwidth if tickwidth is not None else _v _v = arg.pop('title', None) - self.title = title if title is not None else _v + self['title'] = title if title is not None else _v _v = arg.pop('titlefont', None) - self.titlefont = titlefont if titlefont is not None else _v + self['titlefont'] = titlefont if titlefont is not None else _v _v = arg.pop('titleside', None) - self.titleside = titleside if titleside is not None else _v + self['titleside'] = titleside if titleside is not None else _v _v = arg.pop('x', None) - self.x = x if x is not None else _v + self['x'] = x if x is not None else _v _v = arg.pop('xanchor', None) - self.xanchor = xanchor if xanchor is not None else _v + self['xanchor'] = xanchor if xanchor is not None else _v _v = arg.pop('xpad', None) - self.xpad = xpad if xpad is not None else _v + self['xpad'] = xpad if xpad is not None else _v _v = arg.pop('y', None) - self.y = y if y is not None else _v + self['y'] = y if y is not None else _v _v = arg.pop('yanchor', None) - self.yanchor = yanchor if yanchor is not None else _v + self['yanchor'] = yanchor if yanchor is not None else _v _v = arg.pop('ypad', None) - self.ypad = ypad if ypad is not None else _v + self['ypad'] = ypad if ypad is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/choropleth/_hoverlabel.py b/plotly/graph_objs/choropleth/_hoverlabel.py index f0c079c7dc5..54fc6b9623f 100644 --- a/plotly/graph_objs/choropleth/_hoverlabel.py +++ b/plotly/graph_objs/choropleth/_hoverlabel.py @@ -385,19 +385,21 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('bgcolor', None) - self.bgcolor = bgcolor if bgcolor is not None else _v + self['bgcolor'] = bgcolor if bgcolor is not None else _v _v = arg.pop('bgcolorsrc', None) - self.bgcolorsrc = bgcolorsrc if bgcolorsrc is not None else _v + self['bgcolorsrc'] = bgcolorsrc if bgcolorsrc is not None else _v _v = arg.pop('bordercolor', None) - self.bordercolor = bordercolor if bordercolor is not None else _v + self['bordercolor'] = bordercolor if bordercolor is not None else _v _v = arg.pop('bordercolorsrc', None) - self.bordercolorsrc = bordercolorsrc if bordercolorsrc is not None else _v + self['bordercolorsrc' + ] = bordercolorsrc if bordercolorsrc is not None else _v _v = arg.pop('font', None) - self.font = font if font is not None else _v + self['font'] = font if font is not None else _v _v = arg.pop('namelength', None) - self.namelength = namelength if namelength is not None else _v + self['namelength'] = namelength if namelength is not None else _v _v = arg.pop('namelengthsrc', None) - self.namelengthsrc = namelengthsrc if namelengthsrc is not None else _v + self['namelengthsrc' + ] = namelengthsrc if namelengthsrc is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/choropleth/_marker.py b/plotly/graph_objs/choropleth/_marker.py index 521014c71bc..cd51ff9e747 100644 --- a/plotly/graph_objs/choropleth/_marker.py +++ b/plotly/graph_objs/choropleth/_marker.py @@ -159,11 +159,11 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('line', None) - self.line = line if line is not None else _v + self['line'] = line if line is not None else _v _v = arg.pop('opacity', None) - self.opacity = opacity if opacity is not None else _v + self['opacity'] = opacity if opacity is not None else _v _v = arg.pop('opacitysrc', None) - self.opacitysrc = opacitysrc if opacitysrc is not None else _v + self['opacitysrc'] = opacitysrc if opacitysrc is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/choropleth/_selected.py b/plotly/graph_objs/choropleth/_selected.py index 7b728a3c78f..6634f85b50e 100644 --- a/plotly/graph_objs/choropleth/_selected.py +++ b/plotly/graph_objs/choropleth/_selected.py @@ -92,7 +92,7 @@ def __init__(self, arg=None, marker=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('marker', None) - self.marker = marker if marker is not None else _v + self['marker'] = marker if marker is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/choropleth/_stream.py b/plotly/graph_objs/choropleth/_stream.py index fb5783d53f0..93855efb926 100644 --- a/plotly/graph_objs/choropleth/_stream.py +++ b/plotly/graph_objs/choropleth/_stream.py @@ -122,9 +122,9 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('maxpoints', None) - self.maxpoints = maxpoints if maxpoints is not None else _v + self['maxpoints'] = maxpoints if maxpoints is not None else _v _v = arg.pop('token', None) - self.token = token if token is not None else _v + self['token'] = token if token is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/choropleth/_unselected.py b/plotly/graph_objs/choropleth/_unselected.py index 3ca94dedec6..e2864ce456c 100644 --- a/plotly/graph_objs/choropleth/_unselected.py +++ b/plotly/graph_objs/choropleth/_unselected.py @@ -93,7 +93,7 @@ def __init__(self, arg=None, marker=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('marker', None) - self.marker = marker if marker is not None else _v + self['marker'] = marker if marker is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/choropleth/colorbar/_tickfont.py b/plotly/graph_objs/choropleth/colorbar/_tickfont.py index 0b30f69e4f4..1f833192666 100644 --- a/plotly/graph_objs/choropleth/colorbar/_tickfont.py +++ b/plotly/graph_objs/choropleth/colorbar/_tickfont.py @@ -209,11 +209,11 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('family', None) - self.family = family if family is not None else _v + self['family'] = family if family is not None else _v _v = arg.pop('size', None) - self.size = size if size is not None else _v + self['size'] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/choropleth/colorbar/_tickformatstop.py b/plotly/graph_objs/choropleth/colorbar/_tickformatstop.py index 448d793d272..7134ef77d6e 100644 --- a/plotly/graph_objs/choropleth/colorbar/_tickformatstop.py +++ b/plotly/graph_objs/choropleth/colorbar/_tickformatstop.py @@ -260,15 +260,16 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('dtickrange', None) - self.dtickrange = dtickrange if dtickrange is not None else _v + self['dtickrange'] = dtickrange if dtickrange is not None else _v _v = arg.pop('enabled', None) - self.enabled = enabled if enabled is not None else _v + self['enabled'] = enabled if enabled is not None else _v _v = arg.pop('name', None) - self.name = name if name is not None else _v + self['name'] = name if name is not None else _v _v = arg.pop('templateitemname', None) - self.templateitemname = templateitemname if templateitemname is not None else _v + self['templateitemname' + ] = templateitemname if templateitemname is not None else _v _v = arg.pop('value', None) - self.value = value if value is not None else _v + self['value'] = value if value is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/choropleth/colorbar/_titlefont.py b/plotly/graph_objs/choropleth/colorbar/_titlefont.py index ce1465249b2..29fd2de0553 100644 --- a/plotly/graph_objs/choropleth/colorbar/_titlefont.py +++ b/plotly/graph_objs/choropleth/colorbar/_titlefont.py @@ -209,11 +209,11 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('family', None) - self.family = family if family is not None else _v + self['family'] = family if family is not None else _v _v = arg.pop('size', None) - self.size = size if size is not None else _v + self['size'] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/choropleth/hoverlabel/_font.py b/plotly/graph_objs/choropleth/hoverlabel/_font.py index e4054ada82e..10d64cf3aab 100644 --- a/plotly/graph_objs/choropleth/hoverlabel/_font.py +++ b/plotly/graph_objs/choropleth/hoverlabel/_font.py @@ -295,17 +295,17 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('colorsrc', None) - self.colorsrc = colorsrc if colorsrc is not None else _v + self['colorsrc'] = colorsrc if colorsrc is not None else _v _v = arg.pop('family', None) - self.family = family if family is not None else _v + self['family'] = family if family is not None else _v _v = arg.pop('familysrc', None) - self.familysrc = familysrc if familysrc is not None else _v + self['familysrc'] = familysrc if familysrc is not None else _v _v = arg.pop('size', None) - self.size = size if size is not None else _v + self['size'] = size if size is not None else _v _v = arg.pop('sizesrc', None) - self.sizesrc = sizesrc if sizesrc is not None else _v + self['sizesrc'] = sizesrc if sizesrc is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/choropleth/marker/_line.py b/plotly/graph_objs/choropleth/marker/_line.py index 14c838fd557..243954d0b06 100644 --- a/plotly/graph_objs/choropleth/marker/_line.py +++ b/plotly/graph_objs/choropleth/marker/_line.py @@ -221,13 +221,13 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('colorsrc', None) - self.colorsrc = colorsrc if colorsrc is not None else _v + self['colorsrc'] = colorsrc if colorsrc is not None else _v _v = arg.pop('width', None) - self.width = width if width is not None else _v + self['width'] = width if width is not None else _v _v = arg.pop('widthsrc', None) - self.widthsrc = widthsrc if widthsrc is not None else _v + self['widthsrc'] = widthsrc if widthsrc is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/choropleth/selected/_marker.py b/plotly/graph_objs/choropleth/selected/_marker.py index 495918eb22c..ac26f76dd64 100644 --- a/plotly/graph_objs/choropleth/selected/_marker.py +++ b/plotly/graph_objs/choropleth/selected/_marker.py @@ -85,7 +85,7 @@ def __init__(self, arg=None, opacity=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('opacity', None) - self.opacity = opacity if opacity is not None else _v + self['opacity'] = opacity if opacity is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/choropleth/unselected/_marker.py b/plotly/graph_objs/choropleth/unselected/_marker.py index 4e0c5fe12ca..8b688ed279a 100644 --- a/plotly/graph_objs/choropleth/unselected/_marker.py +++ b/plotly/graph_objs/choropleth/unselected/_marker.py @@ -90,7 +90,7 @@ def __init__(self, arg=None, opacity=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('opacity', None) - self.opacity = opacity if opacity is not None else _v + self['opacity'] = opacity if opacity is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/cone/_colorbar.py b/plotly/graph_objs/cone/_colorbar.py index 10ecaf6c658..a7d3addfdc2 100644 --- a/plotly/graph_objs/cone/_colorbar.py +++ b/plotly/graph_objs/cone/_colorbar.py @@ -1671,89 +1671,96 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('bgcolor', None) - self.bgcolor = bgcolor if bgcolor is not None else _v + self['bgcolor'] = bgcolor if bgcolor is not None else _v _v = arg.pop('bordercolor', None) - self.bordercolor = bordercolor if bordercolor is not None else _v + self['bordercolor'] = bordercolor if bordercolor is not None else _v _v = arg.pop('borderwidth', None) - self.borderwidth = borderwidth if borderwidth is not None else _v + self['borderwidth'] = borderwidth if borderwidth is not None else _v _v = arg.pop('dtick', None) - self.dtick = dtick if dtick is not None else _v + self['dtick'] = dtick if dtick is not None else _v _v = arg.pop('exponentformat', None) - self.exponentformat = exponentformat if exponentformat is not None else _v + self['exponentformat' + ] = exponentformat if exponentformat is not None else _v _v = arg.pop('len', None) - self.len = len if len is not None else _v + self['len'] = len if len is not None else _v _v = arg.pop('lenmode', None) - self.lenmode = lenmode if lenmode is not None else _v + self['lenmode'] = lenmode if lenmode is not None else _v _v = arg.pop('nticks', None) - self.nticks = nticks if nticks is not None else _v + self['nticks'] = nticks if nticks is not None else _v _v = arg.pop('outlinecolor', None) - self.outlinecolor = outlinecolor if outlinecolor is not None else _v + self['outlinecolor'] = outlinecolor if outlinecolor is not None else _v _v = arg.pop('outlinewidth', None) - self.outlinewidth = outlinewidth if outlinewidth is not None else _v + self['outlinewidth'] = outlinewidth if outlinewidth is not None else _v _v = arg.pop('separatethousands', None) - self.separatethousands = separatethousands if separatethousands is not None else _v + self['separatethousands' + ] = separatethousands if separatethousands is not None else _v _v = arg.pop('showexponent', None) - self.showexponent = showexponent if showexponent is not None else _v + self['showexponent'] = showexponent if showexponent is not None else _v _v = arg.pop('showticklabels', None) - self.showticklabels = showticklabels if showticklabels is not None else _v + self['showticklabels' + ] = showticklabels if showticklabels is not None else _v _v = arg.pop('showtickprefix', None) - self.showtickprefix = showtickprefix if showtickprefix is not None else _v + self['showtickprefix' + ] = showtickprefix if showtickprefix is not None else _v _v = arg.pop('showticksuffix', None) - self.showticksuffix = showticksuffix if showticksuffix is not None else _v + self['showticksuffix' + ] = showticksuffix if showticksuffix is not None else _v _v = arg.pop('thickness', None) - self.thickness = thickness if thickness is not None else _v + self['thickness'] = thickness if thickness is not None else _v _v = arg.pop('thicknessmode', None) - self.thicknessmode = thicknessmode if thicknessmode is not None else _v + self['thicknessmode' + ] = thicknessmode if thicknessmode is not None else _v _v = arg.pop('tick0', None) - self.tick0 = tick0 if tick0 is not None else _v + self['tick0'] = tick0 if tick0 is not None else _v _v = arg.pop('tickangle', None) - self.tickangle = tickangle if tickangle is not None else _v + self['tickangle'] = tickangle if tickangle is not None else _v _v = arg.pop('tickcolor', None) - self.tickcolor = tickcolor if tickcolor is not None else _v + self['tickcolor'] = tickcolor if tickcolor is not None else _v _v = arg.pop('tickfont', None) - self.tickfont = tickfont if tickfont is not None else _v + self['tickfont'] = tickfont if tickfont is not None else _v _v = arg.pop('tickformat', None) - self.tickformat = tickformat if tickformat is not None else _v + self['tickformat'] = tickformat if tickformat is not None else _v _v = arg.pop('tickformatstops', None) - self.tickformatstops = tickformatstops if tickformatstops is not None else _v + self['tickformatstops' + ] = tickformatstops if tickformatstops is not None else _v _v = arg.pop('ticklen', None) - self.ticklen = ticklen if ticklen is not None else _v + self['ticklen'] = ticklen if ticklen is not None else _v _v = arg.pop('tickmode', None) - self.tickmode = tickmode if tickmode is not None else _v + self['tickmode'] = tickmode if tickmode is not None else _v _v = arg.pop('tickprefix', None) - self.tickprefix = tickprefix if tickprefix is not None else _v + self['tickprefix'] = tickprefix if tickprefix is not None else _v _v = arg.pop('ticks', None) - self.ticks = ticks if ticks is not None else _v + self['ticks'] = ticks if ticks is not None else _v _v = arg.pop('ticksuffix', None) - self.ticksuffix = ticksuffix if ticksuffix is not None else _v + self['ticksuffix'] = ticksuffix if ticksuffix is not None else _v _v = arg.pop('ticktext', None) - self.ticktext = ticktext if ticktext is not None else _v + self['ticktext'] = ticktext if ticktext is not None else _v _v = arg.pop('ticktextsrc', None) - self.ticktextsrc = ticktextsrc if ticktextsrc is not None else _v + self['ticktextsrc'] = ticktextsrc if ticktextsrc is not None else _v _v = arg.pop('tickvals', None) - self.tickvals = tickvals if tickvals is not None else _v + self['tickvals'] = tickvals if tickvals is not None else _v _v = arg.pop('tickvalssrc', None) - self.tickvalssrc = tickvalssrc if tickvalssrc is not None else _v + self['tickvalssrc'] = tickvalssrc if tickvalssrc is not None else _v _v = arg.pop('tickwidth', None) - self.tickwidth = tickwidth if tickwidth is not None else _v + self['tickwidth'] = tickwidth if tickwidth is not None else _v _v = arg.pop('title', None) - self.title = title if title is not None else _v + self['title'] = title if title is not None else _v _v = arg.pop('titlefont', None) - self.titlefont = titlefont if titlefont is not None else _v + self['titlefont'] = titlefont if titlefont is not None else _v _v = arg.pop('titleside', None) - self.titleside = titleside if titleside is not None else _v + self['titleside'] = titleside if titleside is not None else _v _v = arg.pop('x', None) - self.x = x if x is not None else _v + self['x'] = x if x is not None else _v _v = arg.pop('xanchor', None) - self.xanchor = xanchor if xanchor is not None else _v + self['xanchor'] = xanchor if xanchor is not None else _v _v = arg.pop('xpad', None) - self.xpad = xpad if xpad is not None else _v + self['xpad'] = xpad if xpad is not None else _v _v = arg.pop('y', None) - self.y = y if y is not None else _v + self['y'] = y if y is not None else _v _v = arg.pop('yanchor', None) - self.yanchor = yanchor if yanchor is not None else _v + self['yanchor'] = yanchor if yanchor is not None else _v _v = arg.pop('ypad', None) - self.ypad = ypad if ypad is not None else _v + self['ypad'] = ypad if ypad is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/cone/_hoverlabel.py b/plotly/graph_objs/cone/_hoverlabel.py index b3e86134ec0..6ac34d602ac 100644 --- a/plotly/graph_objs/cone/_hoverlabel.py +++ b/plotly/graph_objs/cone/_hoverlabel.py @@ -385,19 +385,21 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('bgcolor', None) - self.bgcolor = bgcolor if bgcolor is not None else _v + self['bgcolor'] = bgcolor if bgcolor is not None else _v _v = arg.pop('bgcolorsrc', None) - self.bgcolorsrc = bgcolorsrc if bgcolorsrc is not None else _v + self['bgcolorsrc'] = bgcolorsrc if bgcolorsrc is not None else _v _v = arg.pop('bordercolor', None) - self.bordercolor = bordercolor if bordercolor is not None else _v + self['bordercolor'] = bordercolor if bordercolor is not None else _v _v = arg.pop('bordercolorsrc', None) - self.bordercolorsrc = bordercolorsrc if bordercolorsrc is not None else _v + self['bordercolorsrc' + ] = bordercolorsrc if bordercolorsrc is not None else _v _v = arg.pop('font', None) - self.font = font if font is not None else _v + self['font'] = font if font is not None else _v _v = arg.pop('namelength', None) - self.namelength = namelength if namelength is not None else _v + self['namelength'] = namelength if namelength is not None else _v _v = arg.pop('namelengthsrc', None) - self.namelengthsrc = namelengthsrc if namelengthsrc is not None else _v + self['namelengthsrc' + ] = namelengthsrc if namelengthsrc is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/cone/_lighting.py b/plotly/graph_objs/cone/_lighting.py index 9efee4b1bdc..83d5919c504 100644 --- a/plotly/graph_objs/cone/_lighting.py +++ b/plotly/graph_objs/cone/_lighting.py @@ -273,19 +273,22 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('ambient', None) - self.ambient = ambient if ambient is not None else _v + self['ambient'] = ambient if ambient is not None else _v _v = arg.pop('diffuse', None) - self.diffuse = diffuse if diffuse is not None else _v + self['diffuse'] = diffuse if diffuse is not None else _v _v = arg.pop('facenormalsepsilon', None) - self.facenormalsepsilon = facenormalsepsilon if facenormalsepsilon is not None else _v + self['facenormalsepsilon' + ] = facenormalsepsilon if facenormalsepsilon is not None else _v _v = arg.pop('fresnel', None) - self.fresnel = fresnel if fresnel is not None else _v + self['fresnel'] = fresnel if fresnel is not None else _v _v = arg.pop('roughness', None) - self.roughness = roughness if roughness is not None else _v + self['roughness'] = roughness if roughness is not None else _v _v = arg.pop('specular', None) - self.specular = specular if specular is not None else _v + self['specular'] = specular if specular is not None else _v _v = arg.pop('vertexnormalsepsilon', None) - self.vertexnormalsepsilon = vertexnormalsepsilon if vertexnormalsepsilon is not None else _v + self[ + 'vertexnormalsepsilon' + ] = vertexnormalsepsilon if vertexnormalsepsilon is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/cone/_lightposition.py b/plotly/graph_objs/cone/_lightposition.py index b2066638538..3c020494ddd 100644 --- a/plotly/graph_objs/cone/_lightposition.py +++ b/plotly/graph_objs/cone/_lightposition.py @@ -140,11 +140,11 @@ def __init__(self, arg=None, x=None, y=None, z=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('x', None) - self.x = x if x is not None else _v + self['x'] = x if x is not None else _v _v = arg.pop('y', None) - self.y = y if y is not None else _v + self['y'] = y if y is not None else _v _v = arg.pop('z', None) - self.z = z if z is not None else _v + self['z'] = z if z is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/cone/_stream.py b/plotly/graph_objs/cone/_stream.py index 409909ccc54..c77bf7b833f 100644 --- a/plotly/graph_objs/cone/_stream.py +++ b/plotly/graph_objs/cone/_stream.py @@ -122,9 +122,9 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('maxpoints', None) - self.maxpoints = maxpoints if maxpoints is not None else _v + self['maxpoints'] = maxpoints if maxpoints is not None else _v _v = arg.pop('token', None) - self.token = token if token is not None else _v + self['token'] = token if token is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/cone/colorbar/_tickfont.py b/plotly/graph_objs/cone/colorbar/_tickfont.py index fd052e4f654..7009b145976 100644 --- a/plotly/graph_objs/cone/colorbar/_tickfont.py +++ b/plotly/graph_objs/cone/colorbar/_tickfont.py @@ -206,11 +206,11 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('family', None) - self.family = family if family is not None else _v + self['family'] = family if family is not None else _v _v = arg.pop('size', None) - self.size = size if size is not None else _v + self['size'] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/cone/colorbar/_tickformatstop.py b/plotly/graph_objs/cone/colorbar/_tickformatstop.py index bc09b64a47c..fe037f7185f 100644 --- a/plotly/graph_objs/cone/colorbar/_tickformatstop.py +++ b/plotly/graph_objs/cone/colorbar/_tickformatstop.py @@ -260,15 +260,16 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('dtickrange', None) - self.dtickrange = dtickrange if dtickrange is not None else _v + self['dtickrange'] = dtickrange if dtickrange is not None else _v _v = arg.pop('enabled', None) - self.enabled = enabled if enabled is not None else _v + self['enabled'] = enabled if enabled is not None else _v _v = arg.pop('name', None) - self.name = name if name is not None else _v + self['name'] = name if name is not None else _v _v = arg.pop('templateitemname', None) - self.templateitemname = templateitemname if templateitemname is not None else _v + self['templateitemname' + ] = templateitemname if templateitemname is not None else _v _v = arg.pop('value', None) - self.value = value if value is not None else _v + self['value'] = value if value is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/cone/colorbar/_titlefont.py b/plotly/graph_objs/cone/colorbar/_titlefont.py index 7987bec5a5e..a4fe5223083 100644 --- a/plotly/graph_objs/cone/colorbar/_titlefont.py +++ b/plotly/graph_objs/cone/colorbar/_titlefont.py @@ -207,11 +207,11 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('family', None) - self.family = family if family is not None else _v + self['family'] = family if family is not None else _v _v = arg.pop('size', None) - self.size = size if size is not None else _v + self['size'] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/cone/hoverlabel/_font.py b/plotly/graph_objs/cone/hoverlabel/_font.py index aecd29a9cd5..cd3ac54a557 100644 --- a/plotly/graph_objs/cone/hoverlabel/_font.py +++ b/plotly/graph_objs/cone/hoverlabel/_font.py @@ -294,17 +294,17 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('colorsrc', None) - self.colorsrc = colorsrc if colorsrc is not None else _v + self['colorsrc'] = colorsrc if colorsrc is not None else _v _v = arg.pop('family', None) - self.family = family if family is not None else _v + self['family'] = family if family is not None else _v _v = arg.pop('familysrc', None) - self.familysrc = familysrc if familysrc is not None else _v + self['familysrc'] = familysrc if familysrc is not None else _v _v = arg.pop('size', None) - self.size = size if size is not None else _v + self['size'] = size if size is not None else _v _v = arg.pop('sizesrc', None) - self.sizesrc = sizesrc if sizesrc is not None else _v + self['sizesrc'] = sizesrc if sizesrc is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/contour/_colorbar.py b/plotly/graph_objs/contour/_colorbar.py index b92dee811e7..eda90783045 100644 --- a/plotly/graph_objs/contour/_colorbar.py +++ b/plotly/graph_objs/contour/_colorbar.py @@ -1671,89 +1671,96 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('bgcolor', None) - self.bgcolor = bgcolor if bgcolor is not None else _v + self['bgcolor'] = bgcolor if bgcolor is not None else _v _v = arg.pop('bordercolor', None) - self.bordercolor = bordercolor if bordercolor is not None else _v + self['bordercolor'] = bordercolor if bordercolor is not None else _v _v = arg.pop('borderwidth', None) - self.borderwidth = borderwidth if borderwidth is not None else _v + self['borderwidth'] = borderwidth if borderwidth is not None else _v _v = arg.pop('dtick', None) - self.dtick = dtick if dtick is not None else _v + self['dtick'] = dtick if dtick is not None else _v _v = arg.pop('exponentformat', None) - self.exponentformat = exponentformat if exponentformat is not None else _v + self['exponentformat' + ] = exponentformat if exponentformat is not None else _v _v = arg.pop('len', None) - self.len = len if len is not None else _v + self['len'] = len if len is not None else _v _v = arg.pop('lenmode', None) - self.lenmode = lenmode if lenmode is not None else _v + self['lenmode'] = lenmode if lenmode is not None else _v _v = arg.pop('nticks', None) - self.nticks = nticks if nticks is not None else _v + self['nticks'] = nticks if nticks is not None else _v _v = arg.pop('outlinecolor', None) - self.outlinecolor = outlinecolor if outlinecolor is not None else _v + self['outlinecolor'] = outlinecolor if outlinecolor is not None else _v _v = arg.pop('outlinewidth', None) - self.outlinewidth = outlinewidth if outlinewidth is not None else _v + self['outlinewidth'] = outlinewidth if outlinewidth is not None else _v _v = arg.pop('separatethousands', None) - self.separatethousands = separatethousands if separatethousands is not None else _v + self['separatethousands' + ] = separatethousands if separatethousands is not None else _v _v = arg.pop('showexponent', None) - self.showexponent = showexponent if showexponent is not None else _v + self['showexponent'] = showexponent if showexponent is not None else _v _v = arg.pop('showticklabels', None) - self.showticklabels = showticklabels if showticklabels is not None else _v + self['showticklabels' + ] = showticklabels if showticklabels is not None else _v _v = arg.pop('showtickprefix', None) - self.showtickprefix = showtickprefix if showtickprefix is not None else _v + self['showtickprefix' + ] = showtickprefix if showtickprefix is not None else _v _v = arg.pop('showticksuffix', None) - self.showticksuffix = showticksuffix if showticksuffix is not None else _v + self['showticksuffix' + ] = showticksuffix if showticksuffix is not None else _v _v = arg.pop('thickness', None) - self.thickness = thickness if thickness is not None else _v + self['thickness'] = thickness if thickness is not None else _v _v = arg.pop('thicknessmode', None) - self.thicknessmode = thicknessmode if thicknessmode is not None else _v + self['thicknessmode' + ] = thicknessmode if thicknessmode is not None else _v _v = arg.pop('tick0', None) - self.tick0 = tick0 if tick0 is not None else _v + self['tick0'] = tick0 if tick0 is not None else _v _v = arg.pop('tickangle', None) - self.tickangle = tickangle if tickangle is not None else _v + self['tickangle'] = tickangle if tickangle is not None else _v _v = arg.pop('tickcolor', None) - self.tickcolor = tickcolor if tickcolor is not None else _v + self['tickcolor'] = tickcolor if tickcolor is not None else _v _v = arg.pop('tickfont', None) - self.tickfont = tickfont if tickfont is not None else _v + self['tickfont'] = tickfont if tickfont is not None else _v _v = arg.pop('tickformat', None) - self.tickformat = tickformat if tickformat is not None else _v + self['tickformat'] = tickformat if tickformat is not None else _v _v = arg.pop('tickformatstops', None) - self.tickformatstops = tickformatstops if tickformatstops is not None else _v + self['tickformatstops' + ] = tickformatstops if tickformatstops is not None else _v _v = arg.pop('ticklen', None) - self.ticklen = ticklen if ticklen is not None else _v + self['ticklen'] = ticklen if ticklen is not None else _v _v = arg.pop('tickmode', None) - self.tickmode = tickmode if tickmode is not None else _v + self['tickmode'] = tickmode if tickmode is not None else _v _v = arg.pop('tickprefix', None) - self.tickprefix = tickprefix if tickprefix is not None else _v + self['tickprefix'] = tickprefix if tickprefix is not None else _v _v = arg.pop('ticks', None) - self.ticks = ticks if ticks is not None else _v + self['ticks'] = ticks if ticks is not None else _v _v = arg.pop('ticksuffix', None) - self.ticksuffix = ticksuffix if ticksuffix is not None else _v + self['ticksuffix'] = ticksuffix if ticksuffix is not None else _v _v = arg.pop('ticktext', None) - self.ticktext = ticktext if ticktext is not None else _v + self['ticktext'] = ticktext if ticktext is not None else _v _v = arg.pop('ticktextsrc', None) - self.ticktextsrc = ticktextsrc if ticktextsrc is not None else _v + self['ticktextsrc'] = ticktextsrc if ticktextsrc is not None else _v _v = arg.pop('tickvals', None) - self.tickvals = tickvals if tickvals is not None else _v + self['tickvals'] = tickvals if tickvals is not None else _v _v = arg.pop('tickvalssrc', None) - self.tickvalssrc = tickvalssrc if tickvalssrc is not None else _v + self['tickvalssrc'] = tickvalssrc if tickvalssrc is not None else _v _v = arg.pop('tickwidth', None) - self.tickwidth = tickwidth if tickwidth is not None else _v + self['tickwidth'] = tickwidth if tickwidth is not None else _v _v = arg.pop('title', None) - self.title = title if title is not None else _v + self['title'] = title if title is not None else _v _v = arg.pop('titlefont', None) - self.titlefont = titlefont if titlefont is not None else _v + self['titlefont'] = titlefont if titlefont is not None else _v _v = arg.pop('titleside', None) - self.titleside = titleside if titleside is not None else _v + self['titleside'] = titleside if titleside is not None else _v _v = arg.pop('x', None) - self.x = x if x is not None else _v + self['x'] = x if x is not None else _v _v = arg.pop('xanchor', None) - self.xanchor = xanchor if xanchor is not None else _v + self['xanchor'] = xanchor if xanchor is not None else _v _v = arg.pop('xpad', None) - self.xpad = xpad if xpad is not None else _v + self['xpad'] = xpad if xpad is not None else _v _v = arg.pop('y', None) - self.y = y if y is not None else _v + self['y'] = y if y is not None else _v _v = arg.pop('yanchor', None) - self.yanchor = yanchor if yanchor is not None else _v + self['yanchor'] = yanchor if yanchor is not None else _v _v = arg.pop('ypad', None) - self.ypad = ypad if ypad is not None else _v + self['ypad'] = ypad if ypad is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/contour/_contours.py b/plotly/graph_objs/contour/_contours.py index 27387e72d7f..b983bb1be58 100644 --- a/plotly/graph_objs/contour/_contours.py +++ b/plotly/graph_objs/contour/_contours.py @@ -472,27 +472,27 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('coloring', None) - self.coloring = coloring if coloring is not None else _v + self['coloring'] = coloring if coloring is not None else _v _v = arg.pop('end', None) - self.end = end if end is not None else _v + self['end'] = end if end is not None else _v _v = arg.pop('labelfont', None) - self.labelfont = labelfont if labelfont is not None else _v + self['labelfont'] = labelfont if labelfont is not None else _v _v = arg.pop('labelformat', None) - self.labelformat = labelformat if labelformat is not None else _v + self['labelformat'] = labelformat if labelformat is not None else _v _v = arg.pop('operation', None) - self.operation = operation if operation is not None else _v + self['operation'] = operation if operation is not None else _v _v = arg.pop('showlabels', None) - self.showlabels = showlabels if showlabels is not None else _v + self['showlabels'] = showlabels if showlabels is not None else _v _v = arg.pop('showlines', None) - self.showlines = showlines if showlines is not None else _v + self['showlines'] = showlines if showlines is not None else _v _v = arg.pop('size', None) - self.size = size if size is not None else _v + self['size'] = size if size is not None else _v _v = arg.pop('start', None) - self.start = start if start is not None else _v + self['start'] = start if start is not None else _v _v = arg.pop('type', None) - self.type = type if type is not None else _v + self['type'] = type if type is not None else _v _v = arg.pop('value', None) - self.value = value if value is not None else _v + self['value'] = value if value is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/contour/_hoverlabel.py b/plotly/graph_objs/contour/_hoverlabel.py index 13c07f34c7c..bb5c4dfe104 100644 --- a/plotly/graph_objs/contour/_hoverlabel.py +++ b/plotly/graph_objs/contour/_hoverlabel.py @@ -385,19 +385,21 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('bgcolor', None) - self.bgcolor = bgcolor if bgcolor is not None else _v + self['bgcolor'] = bgcolor if bgcolor is not None else _v _v = arg.pop('bgcolorsrc', None) - self.bgcolorsrc = bgcolorsrc if bgcolorsrc is not None else _v + self['bgcolorsrc'] = bgcolorsrc if bgcolorsrc is not None else _v _v = arg.pop('bordercolor', None) - self.bordercolor = bordercolor if bordercolor is not None else _v + self['bordercolor'] = bordercolor if bordercolor is not None else _v _v = arg.pop('bordercolorsrc', None) - self.bordercolorsrc = bordercolorsrc if bordercolorsrc is not None else _v + self['bordercolorsrc' + ] = bordercolorsrc if bordercolorsrc is not None else _v _v = arg.pop('font', None) - self.font = font if font is not None else _v + self['font'] = font if font is not None else _v _v = arg.pop('namelength', None) - self.namelength = namelength if namelength is not None else _v + self['namelength'] = namelength if namelength is not None else _v _v = arg.pop('namelengthsrc', None) - self.namelengthsrc = namelengthsrc if namelengthsrc is not None else _v + self['namelengthsrc' + ] = namelengthsrc if namelengthsrc is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/contour/_line.py b/plotly/graph_objs/contour/_line.py index bcb81606f66..090f47bf01b 100644 --- a/plotly/graph_objs/contour/_line.py +++ b/plotly/graph_objs/contour/_line.py @@ -224,13 +224,13 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('dash', None) - self.dash = dash if dash is not None else _v + self['dash'] = dash if dash is not None else _v _v = arg.pop('smoothing', None) - self.smoothing = smoothing if smoothing is not None else _v + self['smoothing'] = smoothing if smoothing is not None else _v _v = arg.pop('width', None) - self.width = width if width is not None else _v + self['width'] = width if width is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/contour/_stream.py b/plotly/graph_objs/contour/_stream.py index b570728ae19..8e162066d34 100644 --- a/plotly/graph_objs/contour/_stream.py +++ b/plotly/graph_objs/contour/_stream.py @@ -122,9 +122,9 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('maxpoints', None) - self.maxpoints = maxpoints if maxpoints is not None else _v + self['maxpoints'] = maxpoints if maxpoints is not None else _v _v = arg.pop('token', None) - self.token = token if token is not None else _v + self['token'] = token if token is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/contour/colorbar/_tickfont.py b/plotly/graph_objs/contour/colorbar/_tickfont.py index 11b31a12baf..57a03489e65 100644 --- a/plotly/graph_objs/contour/colorbar/_tickfont.py +++ b/plotly/graph_objs/contour/colorbar/_tickfont.py @@ -207,11 +207,11 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('family', None) - self.family = family if family is not None else _v + self['family'] = family if family is not None else _v _v = arg.pop('size', None) - self.size = size if size is not None else _v + self['size'] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/contour/colorbar/_tickformatstop.py b/plotly/graph_objs/contour/colorbar/_tickformatstop.py index fb2ea2831eb..6740b01cb63 100644 --- a/plotly/graph_objs/contour/colorbar/_tickformatstop.py +++ b/plotly/graph_objs/contour/colorbar/_tickformatstop.py @@ -260,15 +260,16 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('dtickrange', None) - self.dtickrange = dtickrange if dtickrange is not None else _v + self['dtickrange'] = dtickrange if dtickrange is not None else _v _v = arg.pop('enabled', None) - self.enabled = enabled if enabled is not None else _v + self['enabled'] = enabled if enabled is not None else _v _v = arg.pop('name', None) - self.name = name if name is not None else _v + self['name'] = name if name is not None else _v _v = arg.pop('templateitemname', None) - self.templateitemname = templateitemname if templateitemname is not None else _v + self['templateitemname' + ] = templateitemname if templateitemname is not None else _v _v = arg.pop('value', None) - self.value = value if value is not None else _v + self['value'] = value if value is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/contour/colorbar/_titlefont.py b/plotly/graph_objs/contour/colorbar/_titlefont.py index a817b588a33..327b40fc278 100644 --- a/plotly/graph_objs/contour/colorbar/_titlefont.py +++ b/plotly/graph_objs/contour/colorbar/_titlefont.py @@ -209,11 +209,11 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('family', None) - self.family = family if family is not None else _v + self['family'] = family if family is not None else _v _v = arg.pop('size', None) - self.size = size if size is not None else _v + self['size'] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/contour/contours/_labelfont.py b/plotly/graph_objs/contour/contours/_labelfont.py index f282cbe0237..25673be8d58 100644 --- a/plotly/graph_objs/contour/contours/_labelfont.py +++ b/plotly/graph_objs/contour/contours/_labelfont.py @@ -211,11 +211,11 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('family', None) - self.family = family if family is not None else _v + self['family'] = family if family is not None else _v _v = arg.pop('size', None) - self.size = size if size is not None else _v + self['size'] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/contour/hoverlabel/_font.py b/plotly/graph_objs/contour/hoverlabel/_font.py index 331dfdfe999..520cb655b63 100644 --- a/plotly/graph_objs/contour/hoverlabel/_font.py +++ b/plotly/graph_objs/contour/hoverlabel/_font.py @@ -295,17 +295,17 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('colorsrc', None) - self.colorsrc = colorsrc if colorsrc is not None else _v + self['colorsrc'] = colorsrc if colorsrc is not None else _v _v = arg.pop('family', None) - self.family = family if family is not None else _v + self['family'] = family if family is not None else _v _v = arg.pop('familysrc', None) - self.familysrc = familysrc if familysrc is not None else _v + self['familysrc'] = familysrc if familysrc is not None else _v _v = arg.pop('size', None) - self.size = size if size is not None else _v + self['size'] = size if size is not None else _v _v = arg.pop('sizesrc', None) - self.sizesrc = sizesrc if sizesrc is not None else _v + self['sizesrc'] = sizesrc if sizesrc is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/contourcarpet/_colorbar.py b/plotly/graph_objs/contourcarpet/_colorbar.py index 303a42e79c1..8cdb9091e4a 100644 --- a/plotly/graph_objs/contourcarpet/_colorbar.py +++ b/plotly/graph_objs/contourcarpet/_colorbar.py @@ -1671,89 +1671,96 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('bgcolor', None) - self.bgcolor = bgcolor if bgcolor is not None else _v + self['bgcolor'] = bgcolor if bgcolor is not None else _v _v = arg.pop('bordercolor', None) - self.bordercolor = bordercolor if bordercolor is not None else _v + self['bordercolor'] = bordercolor if bordercolor is not None else _v _v = arg.pop('borderwidth', None) - self.borderwidth = borderwidth if borderwidth is not None else _v + self['borderwidth'] = borderwidth if borderwidth is not None else _v _v = arg.pop('dtick', None) - self.dtick = dtick if dtick is not None else _v + self['dtick'] = dtick if dtick is not None else _v _v = arg.pop('exponentformat', None) - self.exponentformat = exponentformat if exponentformat is not None else _v + self['exponentformat' + ] = exponentformat if exponentformat is not None else _v _v = arg.pop('len', None) - self.len = len if len is not None else _v + self['len'] = len if len is not None else _v _v = arg.pop('lenmode', None) - self.lenmode = lenmode if lenmode is not None else _v + self['lenmode'] = lenmode if lenmode is not None else _v _v = arg.pop('nticks', None) - self.nticks = nticks if nticks is not None else _v + self['nticks'] = nticks if nticks is not None else _v _v = arg.pop('outlinecolor', None) - self.outlinecolor = outlinecolor if outlinecolor is not None else _v + self['outlinecolor'] = outlinecolor if outlinecolor is not None else _v _v = arg.pop('outlinewidth', None) - self.outlinewidth = outlinewidth if outlinewidth is not None else _v + self['outlinewidth'] = outlinewidth if outlinewidth is not None else _v _v = arg.pop('separatethousands', None) - self.separatethousands = separatethousands if separatethousands is not None else _v + self['separatethousands' + ] = separatethousands if separatethousands is not None else _v _v = arg.pop('showexponent', None) - self.showexponent = showexponent if showexponent is not None else _v + self['showexponent'] = showexponent if showexponent is not None else _v _v = arg.pop('showticklabels', None) - self.showticklabels = showticklabels if showticklabels is not None else _v + self['showticklabels' + ] = showticklabels if showticklabels is not None else _v _v = arg.pop('showtickprefix', None) - self.showtickprefix = showtickprefix if showtickprefix is not None else _v + self['showtickprefix' + ] = showtickprefix if showtickprefix is not None else _v _v = arg.pop('showticksuffix', None) - self.showticksuffix = showticksuffix if showticksuffix is not None else _v + self['showticksuffix' + ] = showticksuffix if showticksuffix is not None else _v _v = arg.pop('thickness', None) - self.thickness = thickness if thickness is not None else _v + self['thickness'] = thickness if thickness is not None else _v _v = arg.pop('thicknessmode', None) - self.thicknessmode = thicknessmode if thicknessmode is not None else _v + self['thicknessmode' + ] = thicknessmode if thicknessmode is not None else _v _v = arg.pop('tick0', None) - self.tick0 = tick0 if tick0 is not None else _v + self['tick0'] = tick0 if tick0 is not None else _v _v = arg.pop('tickangle', None) - self.tickangle = tickangle if tickangle is not None else _v + self['tickangle'] = tickangle if tickangle is not None else _v _v = arg.pop('tickcolor', None) - self.tickcolor = tickcolor if tickcolor is not None else _v + self['tickcolor'] = tickcolor if tickcolor is not None else _v _v = arg.pop('tickfont', None) - self.tickfont = tickfont if tickfont is not None else _v + self['tickfont'] = tickfont if tickfont is not None else _v _v = arg.pop('tickformat', None) - self.tickformat = tickformat if tickformat is not None else _v + self['tickformat'] = tickformat if tickformat is not None else _v _v = arg.pop('tickformatstops', None) - self.tickformatstops = tickformatstops if tickformatstops is not None else _v + self['tickformatstops' + ] = tickformatstops if tickformatstops is not None else _v _v = arg.pop('ticklen', None) - self.ticklen = ticklen if ticklen is not None else _v + self['ticklen'] = ticklen if ticklen is not None else _v _v = arg.pop('tickmode', None) - self.tickmode = tickmode if tickmode is not None else _v + self['tickmode'] = tickmode if tickmode is not None else _v _v = arg.pop('tickprefix', None) - self.tickprefix = tickprefix if tickprefix is not None else _v + self['tickprefix'] = tickprefix if tickprefix is not None else _v _v = arg.pop('ticks', None) - self.ticks = ticks if ticks is not None else _v + self['ticks'] = ticks if ticks is not None else _v _v = arg.pop('ticksuffix', None) - self.ticksuffix = ticksuffix if ticksuffix is not None else _v + self['ticksuffix'] = ticksuffix if ticksuffix is not None else _v _v = arg.pop('ticktext', None) - self.ticktext = ticktext if ticktext is not None else _v + self['ticktext'] = ticktext if ticktext is not None else _v _v = arg.pop('ticktextsrc', None) - self.ticktextsrc = ticktextsrc if ticktextsrc is not None else _v + self['ticktextsrc'] = ticktextsrc if ticktextsrc is not None else _v _v = arg.pop('tickvals', None) - self.tickvals = tickvals if tickvals is not None else _v + self['tickvals'] = tickvals if tickvals is not None else _v _v = arg.pop('tickvalssrc', None) - self.tickvalssrc = tickvalssrc if tickvalssrc is not None else _v + self['tickvalssrc'] = tickvalssrc if tickvalssrc is not None else _v _v = arg.pop('tickwidth', None) - self.tickwidth = tickwidth if tickwidth is not None else _v + self['tickwidth'] = tickwidth if tickwidth is not None else _v _v = arg.pop('title', None) - self.title = title if title is not None else _v + self['title'] = title if title is not None else _v _v = arg.pop('titlefont', None) - self.titlefont = titlefont if titlefont is not None else _v + self['titlefont'] = titlefont if titlefont is not None else _v _v = arg.pop('titleside', None) - self.titleside = titleside if titleside is not None else _v + self['titleside'] = titleside if titleside is not None else _v _v = arg.pop('x', None) - self.x = x if x is not None else _v + self['x'] = x if x is not None else _v _v = arg.pop('xanchor', None) - self.xanchor = xanchor if xanchor is not None else _v + self['xanchor'] = xanchor if xanchor is not None else _v _v = arg.pop('xpad', None) - self.xpad = xpad if xpad is not None else _v + self['xpad'] = xpad if xpad is not None else _v _v = arg.pop('y', None) - self.y = y if y is not None else _v + self['y'] = y if y is not None else _v _v = arg.pop('yanchor', None) - self.yanchor = yanchor if yanchor is not None else _v + self['yanchor'] = yanchor if yanchor is not None else _v _v = arg.pop('ypad', None) - self.ypad = ypad if ypad is not None else _v + self['ypad'] = ypad if ypad is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/contourcarpet/_contours.py b/plotly/graph_objs/contourcarpet/_contours.py index 1c79ca6d693..9ee71581582 100644 --- a/plotly/graph_objs/contourcarpet/_contours.py +++ b/plotly/graph_objs/contourcarpet/_contours.py @@ -469,27 +469,27 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('coloring', None) - self.coloring = coloring if coloring is not None else _v + self['coloring'] = coloring if coloring is not None else _v _v = arg.pop('end', None) - self.end = end if end is not None else _v + self['end'] = end if end is not None else _v _v = arg.pop('labelfont', None) - self.labelfont = labelfont if labelfont is not None else _v + self['labelfont'] = labelfont if labelfont is not None else _v _v = arg.pop('labelformat', None) - self.labelformat = labelformat if labelformat is not None else _v + self['labelformat'] = labelformat if labelformat is not None else _v _v = arg.pop('operation', None) - self.operation = operation if operation is not None else _v + self['operation'] = operation if operation is not None else _v _v = arg.pop('showlabels', None) - self.showlabels = showlabels if showlabels is not None else _v + self['showlabels'] = showlabels if showlabels is not None else _v _v = arg.pop('showlines', None) - self.showlines = showlines if showlines is not None else _v + self['showlines'] = showlines if showlines is not None else _v _v = arg.pop('size', None) - self.size = size if size is not None else _v + self['size'] = size if size is not None else _v _v = arg.pop('start', None) - self.start = start if start is not None else _v + self['start'] = start if start is not None else _v _v = arg.pop('type', None) - self.type = type if type is not None else _v + self['type'] = type if type is not None else _v _v = arg.pop('value', None) - self.value = value if value is not None else _v + self['value'] = value if value is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/contourcarpet/_hoverlabel.py b/plotly/graph_objs/contourcarpet/_hoverlabel.py index 0f0ff0bbbba..b2b6c387264 100644 --- a/plotly/graph_objs/contourcarpet/_hoverlabel.py +++ b/plotly/graph_objs/contourcarpet/_hoverlabel.py @@ -388,19 +388,21 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('bgcolor', None) - self.bgcolor = bgcolor if bgcolor is not None else _v + self['bgcolor'] = bgcolor if bgcolor is not None else _v _v = arg.pop('bgcolorsrc', None) - self.bgcolorsrc = bgcolorsrc if bgcolorsrc is not None else _v + self['bgcolorsrc'] = bgcolorsrc if bgcolorsrc is not None else _v _v = arg.pop('bordercolor', None) - self.bordercolor = bordercolor if bordercolor is not None else _v + self['bordercolor'] = bordercolor if bordercolor is not None else _v _v = arg.pop('bordercolorsrc', None) - self.bordercolorsrc = bordercolorsrc if bordercolorsrc is not None else _v + self['bordercolorsrc' + ] = bordercolorsrc if bordercolorsrc is not None else _v _v = arg.pop('font', None) - self.font = font if font is not None else _v + self['font'] = font if font is not None else _v _v = arg.pop('namelength', None) - self.namelength = namelength if namelength is not None else _v + self['namelength'] = namelength if namelength is not None else _v _v = arg.pop('namelengthsrc', None) - self.namelengthsrc = namelengthsrc if namelengthsrc is not None else _v + self['namelengthsrc' + ] = namelengthsrc if namelengthsrc is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/contourcarpet/_line.py b/plotly/graph_objs/contourcarpet/_line.py index f33ae92314d..947aa7efed1 100644 --- a/plotly/graph_objs/contourcarpet/_line.py +++ b/plotly/graph_objs/contourcarpet/_line.py @@ -224,13 +224,13 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('dash', None) - self.dash = dash if dash is not None else _v + self['dash'] = dash if dash is not None else _v _v = arg.pop('smoothing', None) - self.smoothing = smoothing if smoothing is not None else _v + self['smoothing'] = smoothing if smoothing is not None else _v _v = arg.pop('width', None) - self.width = width if width is not None else _v + self['width'] = width if width is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/contourcarpet/_stream.py b/plotly/graph_objs/contourcarpet/_stream.py index ad80ba6cae1..ed5b58ab71f 100644 --- a/plotly/graph_objs/contourcarpet/_stream.py +++ b/plotly/graph_objs/contourcarpet/_stream.py @@ -122,9 +122,9 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('maxpoints', None) - self.maxpoints = maxpoints if maxpoints is not None else _v + self['maxpoints'] = maxpoints if maxpoints is not None else _v _v = arg.pop('token', None) - self.token = token if token is not None else _v + self['token'] = token if token is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/contourcarpet/colorbar/_tickfont.py b/plotly/graph_objs/contourcarpet/colorbar/_tickfont.py index a728d56fb6d..26764dc0b02 100644 --- a/plotly/graph_objs/contourcarpet/colorbar/_tickfont.py +++ b/plotly/graph_objs/contourcarpet/colorbar/_tickfont.py @@ -209,11 +209,11 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('family', None) - self.family = family if family is not None else _v + self['family'] = family if family is not None else _v _v = arg.pop('size', None) - self.size = size if size is not None else _v + self['size'] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/contourcarpet/colorbar/_tickformatstop.py b/plotly/graph_objs/contourcarpet/colorbar/_tickformatstop.py index 84a6f8c9b66..fb4b3b3489b 100644 --- a/plotly/graph_objs/contourcarpet/colorbar/_tickformatstop.py +++ b/plotly/graph_objs/contourcarpet/colorbar/_tickformatstop.py @@ -260,15 +260,16 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('dtickrange', None) - self.dtickrange = dtickrange if dtickrange is not None else _v + self['dtickrange'] = dtickrange if dtickrange is not None else _v _v = arg.pop('enabled', None) - self.enabled = enabled if enabled is not None else _v + self['enabled'] = enabled if enabled is not None else _v _v = arg.pop('name', None) - self.name = name if name is not None else _v + self['name'] = name if name is not None else _v _v = arg.pop('templateitemname', None) - self.templateitemname = templateitemname if templateitemname is not None else _v + self['templateitemname' + ] = templateitemname if templateitemname is not None else _v _v = arg.pop('value', None) - self.value = value if value is not None else _v + self['value'] = value if value is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/contourcarpet/colorbar/_titlefont.py b/plotly/graph_objs/contourcarpet/colorbar/_titlefont.py index d281a5c05fb..f8243808e91 100644 --- a/plotly/graph_objs/contourcarpet/colorbar/_titlefont.py +++ b/plotly/graph_objs/contourcarpet/colorbar/_titlefont.py @@ -209,11 +209,11 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('family', None) - self.family = family if family is not None else _v + self['family'] = family if family is not None else _v _v = arg.pop('size', None) - self.size = size if size is not None else _v + self['size'] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/contourcarpet/contours/_labelfont.py b/plotly/graph_objs/contourcarpet/contours/_labelfont.py index 006e3feaf1c..dfa57b8d579 100644 --- a/plotly/graph_objs/contourcarpet/contours/_labelfont.py +++ b/plotly/graph_objs/contourcarpet/contours/_labelfont.py @@ -211,11 +211,11 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('family', None) - self.family = family if family is not None else _v + self['family'] = family if family is not None else _v _v = arg.pop('size', None) - self.size = size if size is not None else _v + self['size'] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/contourcarpet/hoverlabel/_font.py b/plotly/graph_objs/contourcarpet/hoverlabel/_font.py index 5f9da5e06a0..a85382e6b6c 100644 --- a/plotly/graph_objs/contourcarpet/hoverlabel/_font.py +++ b/plotly/graph_objs/contourcarpet/hoverlabel/_font.py @@ -295,17 +295,17 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('colorsrc', None) - self.colorsrc = colorsrc if colorsrc is not None else _v + self['colorsrc'] = colorsrc if colorsrc is not None else _v _v = arg.pop('family', None) - self.family = family if family is not None else _v + self['family'] = family if family is not None else _v _v = arg.pop('familysrc', None) - self.familysrc = familysrc if familysrc is not None else _v + self['familysrc'] = familysrc if familysrc is not None else _v _v = arg.pop('size', None) - self.size = size if size is not None else _v + self['size'] = size if size is not None else _v _v = arg.pop('sizesrc', None) - self.sizesrc = sizesrc if sizesrc is not None else _v + self['sizesrc'] = sizesrc if sizesrc is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/heatmap/_colorbar.py b/plotly/graph_objs/heatmap/_colorbar.py index 72b1cf9c126..fb0fba2c95a 100644 --- a/plotly/graph_objs/heatmap/_colorbar.py +++ b/plotly/graph_objs/heatmap/_colorbar.py @@ -1671,89 +1671,96 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('bgcolor', None) - self.bgcolor = bgcolor if bgcolor is not None else _v + self['bgcolor'] = bgcolor if bgcolor is not None else _v _v = arg.pop('bordercolor', None) - self.bordercolor = bordercolor if bordercolor is not None else _v + self['bordercolor'] = bordercolor if bordercolor is not None else _v _v = arg.pop('borderwidth', None) - self.borderwidth = borderwidth if borderwidth is not None else _v + self['borderwidth'] = borderwidth if borderwidth is not None else _v _v = arg.pop('dtick', None) - self.dtick = dtick if dtick is not None else _v + self['dtick'] = dtick if dtick is not None else _v _v = arg.pop('exponentformat', None) - self.exponentformat = exponentformat if exponentformat is not None else _v + self['exponentformat' + ] = exponentformat if exponentformat is not None else _v _v = arg.pop('len', None) - self.len = len if len is not None else _v + self['len'] = len if len is not None else _v _v = arg.pop('lenmode', None) - self.lenmode = lenmode if lenmode is not None else _v + self['lenmode'] = lenmode if lenmode is not None else _v _v = arg.pop('nticks', None) - self.nticks = nticks if nticks is not None else _v + self['nticks'] = nticks if nticks is not None else _v _v = arg.pop('outlinecolor', None) - self.outlinecolor = outlinecolor if outlinecolor is not None else _v + self['outlinecolor'] = outlinecolor if outlinecolor is not None else _v _v = arg.pop('outlinewidth', None) - self.outlinewidth = outlinewidth if outlinewidth is not None else _v + self['outlinewidth'] = outlinewidth if outlinewidth is not None else _v _v = arg.pop('separatethousands', None) - self.separatethousands = separatethousands if separatethousands is not None else _v + self['separatethousands' + ] = separatethousands if separatethousands is not None else _v _v = arg.pop('showexponent', None) - self.showexponent = showexponent if showexponent is not None else _v + self['showexponent'] = showexponent if showexponent is not None else _v _v = arg.pop('showticklabels', None) - self.showticklabels = showticklabels if showticklabels is not None else _v + self['showticklabels' + ] = showticklabels if showticklabels is not None else _v _v = arg.pop('showtickprefix', None) - self.showtickprefix = showtickprefix if showtickprefix is not None else _v + self['showtickprefix' + ] = showtickprefix if showtickprefix is not None else _v _v = arg.pop('showticksuffix', None) - self.showticksuffix = showticksuffix if showticksuffix is not None else _v + self['showticksuffix' + ] = showticksuffix if showticksuffix is not None else _v _v = arg.pop('thickness', None) - self.thickness = thickness if thickness is not None else _v + self['thickness'] = thickness if thickness is not None else _v _v = arg.pop('thicknessmode', None) - self.thicknessmode = thicknessmode if thicknessmode is not None else _v + self['thicknessmode' + ] = thicknessmode if thicknessmode is not None else _v _v = arg.pop('tick0', None) - self.tick0 = tick0 if tick0 is not None else _v + self['tick0'] = tick0 if tick0 is not None else _v _v = arg.pop('tickangle', None) - self.tickangle = tickangle if tickangle is not None else _v + self['tickangle'] = tickangle if tickangle is not None else _v _v = arg.pop('tickcolor', None) - self.tickcolor = tickcolor if tickcolor is not None else _v + self['tickcolor'] = tickcolor if tickcolor is not None else _v _v = arg.pop('tickfont', None) - self.tickfont = tickfont if tickfont is not None else _v + self['tickfont'] = tickfont if tickfont is not None else _v _v = arg.pop('tickformat', None) - self.tickformat = tickformat if tickformat is not None else _v + self['tickformat'] = tickformat if tickformat is not None else _v _v = arg.pop('tickformatstops', None) - self.tickformatstops = tickformatstops if tickformatstops is not None else _v + self['tickformatstops' + ] = tickformatstops if tickformatstops is not None else _v _v = arg.pop('ticklen', None) - self.ticklen = ticklen if ticklen is not None else _v + self['ticklen'] = ticklen if ticklen is not None else _v _v = arg.pop('tickmode', None) - self.tickmode = tickmode if tickmode is not None else _v + self['tickmode'] = tickmode if tickmode is not None else _v _v = arg.pop('tickprefix', None) - self.tickprefix = tickprefix if tickprefix is not None else _v + self['tickprefix'] = tickprefix if tickprefix is not None else _v _v = arg.pop('ticks', None) - self.ticks = ticks if ticks is not None else _v + self['ticks'] = ticks if ticks is not None else _v _v = arg.pop('ticksuffix', None) - self.ticksuffix = ticksuffix if ticksuffix is not None else _v + self['ticksuffix'] = ticksuffix if ticksuffix is not None else _v _v = arg.pop('ticktext', None) - self.ticktext = ticktext if ticktext is not None else _v + self['ticktext'] = ticktext if ticktext is not None else _v _v = arg.pop('ticktextsrc', None) - self.ticktextsrc = ticktextsrc if ticktextsrc is not None else _v + self['ticktextsrc'] = ticktextsrc if ticktextsrc is not None else _v _v = arg.pop('tickvals', None) - self.tickvals = tickvals if tickvals is not None else _v + self['tickvals'] = tickvals if tickvals is not None else _v _v = arg.pop('tickvalssrc', None) - self.tickvalssrc = tickvalssrc if tickvalssrc is not None else _v + self['tickvalssrc'] = tickvalssrc if tickvalssrc is not None else _v _v = arg.pop('tickwidth', None) - self.tickwidth = tickwidth if tickwidth is not None else _v + self['tickwidth'] = tickwidth if tickwidth is not None else _v _v = arg.pop('title', None) - self.title = title if title is not None else _v + self['title'] = title if title is not None else _v _v = arg.pop('titlefont', None) - self.titlefont = titlefont if titlefont is not None else _v + self['titlefont'] = titlefont if titlefont is not None else _v _v = arg.pop('titleside', None) - self.titleside = titleside if titleside is not None else _v + self['titleside'] = titleside if titleside is not None else _v _v = arg.pop('x', None) - self.x = x if x is not None else _v + self['x'] = x if x is not None else _v _v = arg.pop('xanchor', None) - self.xanchor = xanchor if xanchor is not None else _v + self['xanchor'] = xanchor if xanchor is not None else _v _v = arg.pop('xpad', None) - self.xpad = xpad if xpad is not None else _v + self['xpad'] = xpad if xpad is not None else _v _v = arg.pop('y', None) - self.y = y if y is not None else _v + self['y'] = y if y is not None else _v _v = arg.pop('yanchor', None) - self.yanchor = yanchor if yanchor is not None else _v + self['yanchor'] = yanchor if yanchor is not None else _v _v = arg.pop('ypad', None) - self.ypad = ypad if ypad is not None else _v + self['ypad'] = ypad if ypad is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/heatmap/_hoverlabel.py b/plotly/graph_objs/heatmap/_hoverlabel.py index 4c1f186ff77..82e31cd27c0 100644 --- a/plotly/graph_objs/heatmap/_hoverlabel.py +++ b/plotly/graph_objs/heatmap/_hoverlabel.py @@ -385,19 +385,21 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('bgcolor', None) - self.bgcolor = bgcolor if bgcolor is not None else _v + self['bgcolor'] = bgcolor if bgcolor is not None else _v _v = arg.pop('bgcolorsrc', None) - self.bgcolorsrc = bgcolorsrc if bgcolorsrc is not None else _v + self['bgcolorsrc'] = bgcolorsrc if bgcolorsrc is not None else _v _v = arg.pop('bordercolor', None) - self.bordercolor = bordercolor if bordercolor is not None else _v + self['bordercolor'] = bordercolor if bordercolor is not None else _v _v = arg.pop('bordercolorsrc', None) - self.bordercolorsrc = bordercolorsrc if bordercolorsrc is not None else _v + self['bordercolorsrc' + ] = bordercolorsrc if bordercolorsrc is not None else _v _v = arg.pop('font', None) - self.font = font if font is not None else _v + self['font'] = font if font is not None else _v _v = arg.pop('namelength', None) - self.namelength = namelength if namelength is not None else _v + self['namelength'] = namelength if namelength is not None else _v _v = arg.pop('namelengthsrc', None) - self.namelengthsrc = namelengthsrc if namelengthsrc is not None else _v + self['namelengthsrc' + ] = namelengthsrc if namelengthsrc is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/heatmap/_stream.py b/plotly/graph_objs/heatmap/_stream.py index b689ec7141e..1b7db37804e 100644 --- a/plotly/graph_objs/heatmap/_stream.py +++ b/plotly/graph_objs/heatmap/_stream.py @@ -122,9 +122,9 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('maxpoints', None) - self.maxpoints = maxpoints if maxpoints is not None else _v + self['maxpoints'] = maxpoints if maxpoints is not None else _v _v = arg.pop('token', None) - self.token = token if token is not None else _v + self['token'] = token if token is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/heatmap/colorbar/_tickfont.py b/plotly/graph_objs/heatmap/colorbar/_tickfont.py index 6c166582de8..c47b03fa596 100644 --- a/plotly/graph_objs/heatmap/colorbar/_tickfont.py +++ b/plotly/graph_objs/heatmap/colorbar/_tickfont.py @@ -207,11 +207,11 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('family', None) - self.family = family if family is not None else _v + self['family'] = family if family is not None else _v _v = arg.pop('size', None) - self.size = size if size is not None else _v + self['size'] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/heatmap/colorbar/_tickformatstop.py b/plotly/graph_objs/heatmap/colorbar/_tickformatstop.py index a947e0f4567..36f300d4717 100644 --- a/plotly/graph_objs/heatmap/colorbar/_tickformatstop.py +++ b/plotly/graph_objs/heatmap/colorbar/_tickformatstop.py @@ -260,15 +260,16 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('dtickrange', None) - self.dtickrange = dtickrange if dtickrange is not None else _v + self['dtickrange'] = dtickrange if dtickrange is not None else _v _v = arg.pop('enabled', None) - self.enabled = enabled if enabled is not None else _v + self['enabled'] = enabled if enabled is not None else _v _v = arg.pop('name', None) - self.name = name if name is not None else _v + self['name'] = name if name is not None else _v _v = arg.pop('templateitemname', None) - self.templateitemname = templateitemname if templateitemname is not None else _v + self['templateitemname' + ] = templateitemname if templateitemname is not None else _v _v = arg.pop('value', None) - self.value = value if value is not None else _v + self['value'] = value if value is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/heatmap/colorbar/_titlefont.py b/plotly/graph_objs/heatmap/colorbar/_titlefont.py index 678ce11a77c..09c10a6ef8f 100644 --- a/plotly/graph_objs/heatmap/colorbar/_titlefont.py +++ b/plotly/graph_objs/heatmap/colorbar/_titlefont.py @@ -209,11 +209,11 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('family', None) - self.family = family if family is not None else _v + self['family'] = family if family is not None else _v _v = arg.pop('size', None) - self.size = size if size is not None else _v + self['size'] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/heatmap/hoverlabel/_font.py b/plotly/graph_objs/heatmap/hoverlabel/_font.py index 9394b13c0a0..93575f4edf3 100644 --- a/plotly/graph_objs/heatmap/hoverlabel/_font.py +++ b/plotly/graph_objs/heatmap/hoverlabel/_font.py @@ -295,17 +295,17 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('colorsrc', None) - self.colorsrc = colorsrc if colorsrc is not None else _v + self['colorsrc'] = colorsrc if colorsrc is not None else _v _v = arg.pop('family', None) - self.family = family if family is not None else _v + self['family'] = family if family is not None else _v _v = arg.pop('familysrc', None) - self.familysrc = familysrc if familysrc is not None else _v + self['familysrc'] = familysrc if familysrc is not None else _v _v = arg.pop('size', None) - self.size = size if size is not None else _v + self['size'] = size if size is not None else _v _v = arg.pop('sizesrc', None) - self.sizesrc = sizesrc if sizesrc is not None else _v + self['sizesrc'] = sizesrc if sizesrc is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/heatmapgl/_colorbar.py b/plotly/graph_objs/heatmapgl/_colorbar.py index 28815c81806..9ce0c244117 100644 --- a/plotly/graph_objs/heatmapgl/_colorbar.py +++ b/plotly/graph_objs/heatmapgl/_colorbar.py @@ -1671,89 +1671,96 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('bgcolor', None) - self.bgcolor = bgcolor if bgcolor is not None else _v + self['bgcolor'] = bgcolor if bgcolor is not None else _v _v = arg.pop('bordercolor', None) - self.bordercolor = bordercolor if bordercolor is not None else _v + self['bordercolor'] = bordercolor if bordercolor is not None else _v _v = arg.pop('borderwidth', None) - self.borderwidth = borderwidth if borderwidth is not None else _v + self['borderwidth'] = borderwidth if borderwidth is not None else _v _v = arg.pop('dtick', None) - self.dtick = dtick if dtick is not None else _v + self['dtick'] = dtick if dtick is not None else _v _v = arg.pop('exponentformat', None) - self.exponentformat = exponentformat if exponentformat is not None else _v + self['exponentformat' + ] = exponentformat if exponentformat is not None else _v _v = arg.pop('len', None) - self.len = len if len is not None else _v + self['len'] = len if len is not None else _v _v = arg.pop('lenmode', None) - self.lenmode = lenmode if lenmode is not None else _v + self['lenmode'] = lenmode if lenmode is not None else _v _v = arg.pop('nticks', None) - self.nticks = nticks if nticks is not None else _v + self['nticks'] = nticks if nticks is not None else _v _v = arg.pop('outlinecolor', None) - self.outlinecolor = outlinecolor if outlinecolor is not None else _v + self['outlinecolor'] = outlinecolor if outlinecolor is not None else _v _v = arg.pop('outlinewidth', None) - self.outlinewidth = outlinewidth if outlinewidth is not None else _v + self['outlinewidth'] = outlinewidth if outlinewidth is not None else _v _v = arg.pop('separatethousands', None) - self.separatethousands = separatethousands if separatethousands is not None else _v + self['separatethousands' + ] = separatethousands if separatethousands is not None else _v _v = arg.pop('showexponent', None) - self.showexponent = showexponent if showexponent is not None else _v + self['showexponent'] = showexponent if showexponent is not None else _v _v = arg.pop('showticklabels', None) - self.showticklabels = showticklabels if showticklabels is not None else _v + self['showticklabels' + ] = showticklabels if showticklabels is not None else _v _v = arg.pop('showtickprefix', None) - self.showtickprefix = showtickprefix if showtickprefix is not None else _v + self['showtickprefix' + ] = showtickprefix if showtickprefix is not None else _v _v = arg.pop('showticksuffix', None) - self.showticksuffix = showticksuffix if showticksuffix is not None else _v + self['showticksuffix' + ] = showticksuffix if showticksuffix is not None else _v _v = arg.pop('thickness', None) - self.thickness = thickness if thickness is not None else _v + self['thickness'] = thickness if thickness is not None else _v _v = arg.pop('thicknessmode', None) - self.thicknessmode = thicknessmode if thicknessmode is not None else _v + self['thicknessmode' + ] = thicknessmode if thicknessmode is not None else _v _v = arg.pop('tick0', None) - self.tick0 = tick0 if tick0 is not None else _v + self['tick0'] = tick0 if tick0 is not None else _v _v = arg.pop('tickangle', None) - self.tickangle = tickangle if tickangle is not None else _v + self['tickangle'] = tickangle if tickangle is not None else _v _v = arg.pop('tickcolor', None) - self.tickcolor = tickcolor if tickcolor is not None else _v + self['tickcolor'] = tickcolor if tickcolor is not None else _v _v = arg.pop('tickfont', None) - self.tickfont = tickfont if tickfont is not None else _v + self['tickfont'] = tickfont if tickfont is not None else _v _v = arg.pop('tickformat', None) - self.tickformat = tickformat if tickformat is not None else _v + self['tickformat'] = tickformat if tickformat is not None else _v _v = arg.pop('tickformatstops', None) - self.tickformatstops = tickformatstops if tickformatstops is not None else _v + self['tickformatstops' + ] = tickformatstops if tickformatstops is not None else _v _v = arg.pop('ticklen', None) - self.ticklen = ticklen if ticklen is not None else _v + self['ticklen'] = ticklen if ticklen is not None else _v _v = arg.pop('tickmode', None) - self.tickmode = tickmode if tickmode is not None else _v + self['tickmode'] = tickmode if tickmode is not None else _v _v = arg.pop('tickprefix', None) - self.tickprefix = tickprefix if tickprefix is not None else _v + self['tickprefix'] = tickprefix if tickprefix is not None else _v _v = arg.pop('ticks', None) - self.ticks = ticks if ticks is not None else _v + self['ticks'] = ticks if ticks is not None else _v _v = arg.pop('ticksuffix', None) - self.ticksuffix = ticksuffix if ticksuffix is not None else _v + self['ticksuffix'] = ticksuffix if ticksuffix is not None else _v _v = arg.pop('ticktext', None) - self.ticktext = ticktext if ticktext is not None else _v + self['ticktext'] = ticktext if ticktext is not None else _v _v = arg.pop('ticktextsrc', None) - self.ticktextsrc = ticktextsrc if ticktextsrc is not None else _v + self['ticktextsrc'] = ticktextsrc if ticktextsrc is not None else _v _v = arg.pop('tickvals', None) - self.tickvals = tickvals if tickvals is not None else _v + self['tickvals'] = tickvals if tickvals is not None else _v _v = arg.pop('tickvalssrc', None) - self.tickvalssrc = tickvalssrc if tickvalssrc is not None else _v + self['tickvalssrc'] = tickvalssrc if tickvalssrc is not None else _v _v = arg.pop('tickwidth', None) - self.tickwidth = tickwidth if tickwidth is not None else _v + self['tickwidth'] = tickwidth if tickwidth is not None else _v _v = arg.pop('title', None) - self.title = title if title is not None else _v + self['title'] = title if title is not None else _v _v = arg.pop('titlefont', None) - self.titlefont = titlefont if titlefont is not None else _v + self['titlefont'] = titlefont if titlefont is not None else _v _v = arg.pop('titleside', None) - self.titleside = titleside if titleside is not None else _v + self['titleside'] = titleside if titleside is not None else _v _v = arg.pop('x', None) - self.x = x if x is not None else _v + self['x'] = x if x is not None else _v _v = arg.pop('xanchor', None) - self.xanchor = xanchor if xanchor is not None else _v + self['xanchor'] = xanchor if xanchor is not None else _v _v = arg.pop('xpad', None) - self.xpad = xpad if xpad is not None else _v + self['xpad'] = xpad if xpad is not None else _v _v = arg.pop('y', None) - self.y = y if y is not None else _v + self['y'] = y if y is not None else _v _v = arg.pop('yanchor', None) - self.yanchor = yanchor if yanchor is not None else _v + self['yanchor'] = yanchor if yanchor is not None else _v _v = arg.pop('ypad', None) - self.ypad = ypad if ypad is not None else _v + self['ypad'] = ypad if ypad is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/heatmapgl/_hoverlabel.py b/plotly/graph_objs/heatmapgl/_hoverlabel.py index 632a7720dec..0342a03c40b 100644 --- a/plotly/graph_objs/heatmapgl/_hoverlabel.py +++ b/plotly/graph_objs/heatmapgl/_hoverlabel.py @@ -385,19 +385,21 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('bgcolor', None) - self.bgcolor = bgcolor if bgcolor is not None else _v + self['bgcolor'] = bgcolor if bgcolor is not None else _v _v = arg.pop('bgcolorsrc', None) - self.bgcolorsrc = bgcolorsrc if bgcolorsrc is not None else _v + self['bgcolorsrc'] = bgcolorsrc if bgcolorsrc is not None else _v _v = arg.pop('bordercolor', None) - self.bordercolor = bordercolor if bordercolor is not None else _v + self['bordercolor'] = bordercolor if bordercolor is not None else _v _v = arg.pop('bordercolorsrc', None) - self.bordercolorsrc = bordercolorsrc if bordercolorsrc is not None else _v + self['bordercolorsrc' + ] = bordercolorsrc if bordercolorsrc is not None else _v _v = arg.pop('font', None) - self.font = font if font is not None else _v + self['font'] = font if font is not None else _v _v = arg.pop('namelength', None) - self.namelength = namelength if namelength is not None else _v + self['namelength'] = namelength if namelength is not None else _v _v = arg.pop('namelengthsrc', None) - self.namelengthsrc = namelengthsrc if namelengthsrc is not None else _v + self['namelengthsrc' + ] = namelengthsrc if namelengthsrc is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/heatmapgl/_stream.py b/plotly/graph_objs/heatmapgl/_stream.py index c1ea04358ca..798a084f9a6 100644 --- a/plotly/graph_objs/heatmapgl/_stream.py +++ b/plotly/graph_objs/heatmapgl/_stream.py @@ -122,9 +122,9 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('maxpoints', None) - self.maxpoints = maxpoints if maxpoints is not None else _v + self['maxpoints'] = maxpoints if maxpoints is not None else _v _v = arg.pop('token', None) - self.token = token if token is not None else _v + self['token'] = token if token is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/heatmapgl/colorbar/_tickfont.py b/plotly/graph_objs/heatmapgl/colorbar/_tickfont.py index 5927a559aef..308d685c112 100644 --- a/plotly/graph_objs/heatmapgl/colorbar/_tickfont.py +++ b/plotly/graph_objs/heatmapgl/colorbar/_tickfont.py @@ -209,11 +209,11 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('family', None) - self.family = family if family is not None else _v + self['family'] = family if family is not None else _v _v = arg.pop('size', None) - self.size = size if size is not None else _v + self['size'] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/heatmapgl/colorbar/_tickformatstop.py b/plotly/graph_objs/heatmapgl/colorbar/_tickformatstop.py index b3bce1989e8..a843a7f91f2 100644 --- a/plotly/graph_objs/heatmapgl/colorbar/_tickformatstop.py +++ b/plotly/graph_objs/heatmapgl/colorbar/_tickformatstop.py @@ -260,15 +260,16 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('dtickrange', None) - self.dtickrange = dtickrange if dtickrange is not None else _v + self['dtickrange'] = dtickrange if dtickrange is not None else _v _v = arg.pop('enabled', None) - self.enabled = enabled if enabled is not None else _v + self['enabled'] = enabled if enabled is not None else _v _v = arg.pop('name', None) - self.name = name if name is not None else _v + self['name'] = name if name is not None else _v _v = arg.pop('templateitemname', None) - self.templateitemname = templateitemname if templateitemname is not None else _v + self['templateitemname' + ] = templateitemname if templateitemname is not None else _v _v = arg.pop('value', None) - self.value = value if value is not None else _v + self['value'] = value if value is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/heatmapgl/colorbar/_titlefont.py b/plotly/graph_objs/heatmapgl/colorbar/_titlefont.py index 66b5c6081e6..6e13362cc64 100644 --- a/plotly/graph_objs/heatmapgl/colorbar/_titlefont.py +++ b/plotly/graph_objs/heatmapgl/colorbar/_titlefont.py @@ -209,11 +209,11 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('family', None) - self.family = family if family is not None else _v + self['family'] = family if family is not None else _v _v = arg.pop('size', None) - self.size = size if size is not None else _v + self['size'] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/heatmapgl/hoverlabel/_font.py b/plotly/graph_objs/heatmapgl/hoverlabel/_font.py index 527c1b31f99..d786006e0cc 100644 --- a/plotly/graph_objs/heatmapgl/hoverlabel/_font.py +++ b/plotly/graph_objs/heatmapgl/hoverlabel/_font.py @@ -295,17 +295,17 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('colorsrc', None) - self.colorsrc = colorsrc if colorsrc is not None else _v + self['colorsrc'] = colorsrc if colorsrc is not None else _v _v = arg.pop('family', None) - self.family = family if family is not None else _v + self['family'] = family if family is not None else _v _v = arg.pop('familysrc', None) - self.familysrc = familysrc if familysrc is not None else _v + self['familysrc'] = familysrc if familysrc is not None else _v _v = arg.pop('size', None) - self.size = size if size is not None else _v + self['size'] = size if size is not None else _v _v = arg.pop('sizesrc', None) - self.sizesrc = sizesrc if sizesrc is not None else _v + self['sizesrc'] = sizesrc if sizesrc is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/histogram/_cumulative.py b/plotly/graph_objs/histogram/_cumulative.py index 9fe74553a1b..71081757742 100644 --- a/plotly/graph_objs/histogram/_cumulative.py +++ b/plotly/graph_objs/histogram/_cumulative.py @@ -189,11 +189,11 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('currentbin', None) - self.currentbin = currentbin if currentbin is not None else _v + self['currentbin'] = currentbin if currentbin is not None else _v _v = arg.pop('direction', None) - self.direction = direction if direction is not None else _v + self['direction'] = direction if direction is not None else _v _v = arg.pop('enabled', None) - self.enabled = enabled if enabled is not None else _v + self['enabled'] = enabled if enabled is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/histogram/_error_x.py b/plotly/graph_objs/histogram/_error_x.py index e6ebea7c201..26e0f47c71c 100644 --- a/plotly/graph_objs/histogram/_error_x.py +++ b/plotly/graph_objs/histogram/_error_x.py @@ -552,35 +552,37 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('array', None) - self.array = array if array is not None else _v + self['array'] = array if array is not None else _v _v = arg.pop('arrayminus', None) - self.arrayminus = arrayminus if arrayminus is not None else _v + self['arrayminus'] = arrayminus if arrayminus is not None else _v _v = arg.pop('arrayminussrc', None) - self.arrayminussrc = arrayminussrc if arrayminussrc is not None else _v + self['arrayminussrc' + ] = arrayminussrc if arrayminussrc is not None else _v _v = arg.pop('arraysrc', None) - self.arraysrc = arraysrc if arraysrc is not None else _v + self['arraysrc'] = arraysrc if arraysrc is not None else _v _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('copy_ystyle', None) - self.copy_ystyle = copy_ystyle if copy_ystyle is not None else _v + self['copy_ystyle'] = copy_ystyle if copy_ystyle is not None else _v _v = arg.pop('symmetric', None) - self.symmetric = symmetric if symmetric is not None else _v + self['symmetric'] = symmetric if symmetric is not None else _v _v = arg.pop('thickness', None) - self.thickness = thickness if thickness is not None else _v + self['thickness'] = thickness if thickness is not None else _v _v = arg.pop('traceref', None) - self.traceref = traceref if traceref is not None else _v + self['traceref'] = traceref if traceref is not None else _v _v = arg.pop('tracerefminus', None) - self.tracerefminus = tracerefminus if tracerefminus is not None else _v + self['tracerefminus' + ] = tracerefminus if tracerefminus is not None else _v _v = arg.pop('type', None) - self.type = type if type is not None else _v + self['type'] = type if type is not None else _v _v = arg.pop('value', None) - self.value = value if value is not None else _v + self['value'] = value if value is not None else _v _v = arg.pop('valueminus', None) - self.valueminus = valueminus if valueminus is not None else _v + self['valueminus'] = valueminus if valueminus is not None else _v _v = arg.pop('visible', None) - self.visible = visible if visible is not None else _v + self['visible'] = visible if visible is not None else _v _v = arg.pop('width', None) - self.width = width if width is not None else _v + self['width'] = width if width is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/histogram/_error_y.py b/plotly/graph_objs/histogram/_error_y.py index 058ac2e9f80..68fb3f00617 100644 --- a/plotly/graph_objs/histogram/_error_y.py +++ b/plotly/graph_objs/histogram/_error_y.py @@ -528,33 +528,35 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('array', None) - self.array = array if array is not None else _v + self['array'] = array if array is not None else _v _v = arg.pop('arrayminus', None) - self.arrayminus = arrayminus if arrayminus is not None else _v + self['arrayminus'] = arrayminus if arrayminus is not None else _v _v = arg.pop('arrayminussrc', None) - self.arrayminussrc = arrayminussrc if arrayminussrc is not None else _v + self['arrayminussrc' + ] = arrayminussrc if arrayminussrc is not None else _v _v = arg.pop('arraysrc', None) - self.arraysrc = arraysrc if arraysrc is not None else _v + self['arraysrc'] = arraysrc if arraysrc is not None else _v _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('symmetric', None) - self.symmetric = symmetric if symmetric is not None else _v + self['symmetric'] = symmetric if symmetric is not None else _v _v = arg.pop('thickness', None) - self.thickness = thickness if thickness is not None else _v + self['thickness'] = thickness if thickness is not None else _v _v = arg.pop('traceref', None) - self.traceref = traceref if traceref is not None else _v + self['traceref'] = traceref if traceref is not None else _v _v = arg.pop('tracerefminus', None) - self.tracerefminus = tracerefminus if tracerefminus is not None else _v + self['tracerefminus' + ] = tracerefminus if tracerefminus is not None else _v _v = arg.pop('type', None) - self.type = type if type is not None else _v + self['type'] = type if type is not None else _v _v = arg.pop('value', None) - self.value = value if value is not None else _v + self['value'] = value if value is not None else _v _v = arg.pop('valueminus', None) - self.valueminus = valueminus if valueminus is not None else _v + self['valueminus'] = valueminus if valueminus is not None else _v _v = arg.pop('visible', None) - self.visible = visible if visible is not None else _v + self['visible'] = visible if visible is not None else _v _v = arg.pop('width', None) - self.width = width if width is not None else _v + self['width'] = width if width is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/histogram/_hoverlabel.py b/plotly/graph_objs/histogram/_hoverlabel.py index 6f7baffe92a..ccbbb86d617 100644 --- a/plotly/graph_objs/histogram/_hoverlabel.py +++ b/plotly/graph_objs/histogram/_hoverlabel.py @@ -385,19 +385,21 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('bgcolor', None) - self.bgcolor = bgcolor if bgcolor is not None else _v + self['bgcolor'] = bgcolor if bgcolor is not None else _v _v = arg.pop('bgcolorsrc', None) - self.bgcolorsrc = bgcolorsrc if bgcolorsrc is not None else _v + self['bgcolorsrc'] = bgcolorsrc if bgcolorsrc is not None else _v _v = arg.pop('bordercolor', None) - self.bordercolor = bordercolor if bordercolor is not None else _v + self['bordercolor'] = bordercolor if bordercolor is not None else _v _v = arg.pop('bordercolorsrc', None) - self.bordercolorsrc = bordercolorsrc if bordercolorsrc is not None else _v + self['bordercolorsrc' + ] = bordercolorsrc if bordercolorsrc is not None else _v _v = arg.pop('font', None) - self.font = font if font is not None else _v + self['font'] = font if font is not None else _v _v = arg.pop('namelength', None) - self.namelength = namelength if namelength is not None else _v + self['namelength'] = namelength if namelength is not None else _v _v = arg.pop('namelengthsrc', None) - self.namelengthsrc = namelengthsrc if namelengthsrc is not None else _v + self['namelengthsrc' + ] = namelengthsrc if namelengthsrc is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/histogram/_marker.py b/plotly/graph_objs/histogram/_marker.py index 5cd7d1a7680..d8f4d376b5b 100644 --- a/plotly/graph_objs/histogram/_marker.py +++ b/plotly/graph_objs/histogram/_marker.py @@ -844,31 +844,32 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('autocolorscale', None) - self.autocolorscale = autocolorscale if autocolorscale is not None else _v + self['autocolorscale' + ] = autocolorscale if autocolorscale is not None else _v _v = arg.pop('cauto', None) - self.cauto = cauto if cauto is not None else _v + self['cauto'] = cauto if cauto is not None else _v _v = arg.pop('cmax', None) - self.cmax = cmax if cmax is not None else _v + self['cmax'] = cmax if cmax is not None else _v _v = arg.pop('cmin', None) - self.cmin = cmin if cmin is not None else _v + self['cmin'] = cmin if cmin is not None else _v _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('colorbar', None) - self.colorbar = colorbar if colorbar is not None else _v + self['colorbar'] = colorbar if colorbar is not None else _v _v = arg.pop('colorscale', None) - self.colorscale = colorscale if colorscale is not None else _v + self['colorscale'] = colorscale if colorscale is not None else _v _v = arg.pop('colorsrc', None) - self.colorsrc = colorsrc if colorsrc is not None else _v + self['colorsrc'] = colorsrc if colorsrc is not None else _v _v = arg.pop('line', None) - self.line = line if line is not None else _v + self['line'] = line if line is not None else _v _v = arg.pop('opacity', None) - self.opacity = opacity if opacity is not None else _v + self['opacity'] = opacity if opacity is not None else _v _v = arg.pop('opacitysrc', None) - self.opacitysrc = opacitysrc if opacitysrc is not None else _v + self['opacitysrc'] = opacitysrc if opacitysrc is not None else _v _v = arg.pop('reversescale', None) - self.reversescale = reversescale if reversescale is not None else _v + self['reversescale'] = reversescale if reversescale is not None else _v _v = arg.pop('showscale', None) - self.showscale = showscale if showscale is not None else _v + self['showscale'] = showscale if showscale is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/histogram/_selected.py b/plotly/graph_objs/histogram/_selected.py index 59af1dab7e1..c4ab66b5012 100644 --- a/plotly/graph_objs/histogram/_selected.py +++ b/plotly/graph_objs/histogram/_selected.py @@ -127,9 +127,9 @@ def __init__(self, arg=None, marker=None, textfont=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('marker', None) - self.marker = marker if marker is not None else _v + self['marker'] = marker if marker is not None else _v _v = arg.pop('textfont', None) - self.textfont = textfont if textfont is not None else _v + self['textfont'] = textfont if textfont is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/histogram/_stream.py b/plotly/graph_objs/histogram/_stream.py index d60b027461a..b968f8fdb8e 100644 --- a/plotly/graph_objs/histogram/_stream.py +++ b/plotly/graph_objs/histogram/_stream.py @@ -122,9 +122,9 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('maxpoints', None) - self.maxpoints = maxpoints if maxpoints is not None else _v + self['maxpoints'] = maxpoints if maxpoints is not None else _v _v = arg.pop('token', None) - self.token = token if token is not None else _v + self['token'] = token if token is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/histogram/_unselected.py b/plotly/graph_objs/histogram/_unselected.py index 71601512627..bf8b341884c 100644 --- a/plotly/graph_objs/histogram/_unselected.py +++ b/plotly/graph_objs/histogram/_unselected.py @@ -130,9 +130,9 @@ def __init__(self, arg=None, marker=None, textfont=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('marker', None) - self.marker = marker if marker is not None else _v + self['marker'] = marker if marker is not None else _v _v = arg.pop('textfont', None) - self.textfont = textfont if textfont is not None else _v + self['textfont'] = textfont if textfont is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/histogram/_xbins.py b/plotly/graph_objs/histogram/_xbins.py index 202502d033d..74ffb6b63a3 100644 --- a/plotly/graph_objs/histogram/_xbins.py +++ b/plotly/graph_objs/histogram/_xbins.py @@ -131,11 +131,11 @@ def __init__(self, arg=None, end=None, size=None, start=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('end', None) - self.end = end if end is not None else _v + self['end'] = end if end is not None else _v _v = arg.pop('size', None) - self.size = size if size is not None else _v + self['size'] = size if size is not None else _v _v = arg.pop('start', None) - self.start = start if start is not None else _v + self['start'] = start if start is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/histogram/_ybins.py b/plotly/graph_objs/histogram/_ybins.py index b561dae5211..d53d242bcfc 100644 --- a/plotly/graph_objs/histogram/_ybins.py +++ b/plotly/graph_objs/histogram/_ybins.py @@ -131,11 +131,11 @@ def __init__(self, arg=None, end=None, size=None, start=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('end', None) - self.end = end if end is not None else _v + self['end'] = end if end is not None else _v _v = arg.pop('size', None) - self.size = size if size is not None else _v + self['size'] = size if size is not None else _v _v = arg.pop('start', None) - self.start = start if start is not None else _v + self['start'] = start if start is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/histogram/hoverlabel/_font.py b/plotly/graph_objs/histogram/hoverlabel/_font.py index c3dc4a230bb..cd109deffb6 100644 --- a/plotly/graph_objs/histogram/hoverlabel/_font.py +++ b/plotly/graph_objs/histogram/hoverlabel/_font.py @@ -295,17 +295,17 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('colorsrc', None) - self.colorsrc = colorsrc if colorsrc is not None else _v + self['colorsrc'] = colorsrc if colorsrc is not None else _v _v = arg.pop('family', None) - self.family = family if family is not None else _v + self['family'] = family if family is not None else _v _v = arg.pop('familysrc', None) - self.familysrc = familysrc if familysrc is not None else _v + self['familysrc'] = familysrc if familysrc is not None else _v _v = arg.pop('size', None) - self.size = size if size is not None else _v + self['size'] = size if size is not None else _v _v = arg.pop('sizesrc', None) - self.sizesrc = sizesrc if sizesrc is not None else _v + self['sizesrc'] = sizesrc if sizesrc is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/histogram/marker/_colorbar.py b/plotly/graph_objs/histogram/marker/_colorbar.py index 95640a4aee8..aa56522ff93 100644 --- a/plotly/graph_objs/histogram/marker/_colorbar.py +++ b/plotly/graph_objs/histogram/marker/_colorbar.py @@ -1672,89 +1672,96 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('bgcolor', None) - self.bgcolor = bgcolor if bgcolor is not None else _v + self['bgcolor'] = bgcolor if bgcolor is not None else _v _v = arg.pop('bordercolor', None) - self.bordercolor = bordercolor if bordercolor is not None else _v + self['bordercolor'] = bordercolor if bordercolor is not None else _v _v = arg.pop('borderwidth', None) - self.borderwidth = borderwidth if borderwidth is not None else _v + self['borderwidth'] = borderwidth if borderwidth is not None else _v _v = arg.pop('dtick', None) - self.dtick = dtick if dtick is not None else _v + self['dtick'] = dtick if dtick is not None else _v _v = arg.pop('exponentformat', None) - self.exponentformat = exponentformat if exponentformat is not None else _v + self['exponentformat' + ] = exponentformat if exponentformat is not None else _v _v = arg.pop('len', None) - self.len = len if len is not None else _v + self['len'] = len if len is not None else _v _v = arg.pop('lenmode', None) - self.lenmode = lenmode if lenmode is not None else _v + self['lenmode'] = lenmode if lenmode is not None else _v _v = arg.pop('nticks', None) - self.nticks = nticks if nticks is not None else _v + self['nticks'] = nticks if nticks is not None else _v _v = arg.pop('outlinecolor', None) - self.outlinecolor = outlinecolor if outlinecolor is not None else _v + self['outlinecolor'] = outlinecolor if outlinecolor is not None else _v _v = arg.pop('outlinewidth', None) - self.outlinewidth = outlinewidth if outlinewidth is not None else _v + self['outlinewidth'] = outlinewidth if outlinewidth is not None else _v _v = arg.pop('separatethousands', None) - self.separatethousands = separatethousands if separatethousands is not None else _v + self['separatethousands' + ] = separatethousands if separatethousands is not None else _v _v = arg.pop('showexponent', None) - self.showexponent = showexponent if showexponent is not None else _v + self['showexponent'] = showexponent if showexponent is not None else _v _v = arg.pop('showticklabels', None) - self.showticklabels = showticklabels if showticklabels is not None else _v + self['showticklabels' + ] = showticklabels if showticklabels is not None else _v _v = arg.pop('showtickprefix', None) - self.showtickprefix = showtickprefix if showtickprefix is not None else _v + self['showtickprefix' + ] = showtickprefix if showtickprefix is not None else _v _v = arg.pop('showticksuffix', None) - self.showticksuffix = showticksuffix if showticksuffix is not None else _v + self['showticksuffix' + ] = showticksuffix if showticksuffix is not None else _v _v = arg.pop('thickness', None) - self.thickness = thickness if thickness is not None else _v + self['thickness'] = thickness if thickness is not None else _v _v = arg.pop('thicknessmode', None) - self.thicknessmode = thicknessmode if thicknessmode is not None else _v + self['thicknessmode' + ] = thicknessmode if thicknessmode is not None else _v _v = arg.pop('tick0', None) - self.tick0 = tick0 if tick0 is not None else _v + self['tick0'] = tick0 if tick0 is not None else _v _v = arg.pop('tickangle', None) - self.tickangle = tickangle if tickangle is not None else _v + self['tickangle'] = tickangle if tickangle is not None else _v _v = arg.pop('tickcolor', None) - self.tickcolor = tickcolor if tickcolor is not None else _v + self['tickcolor'] = tickcolor if tickcolor is not None else _v _v = arg.pop('tickfont', None) - self.tickfont = tickfont if tickfont is not None else _v + self['tickfont'] = tickfont if tickfont is not None else _v _v = arg.pop('tickformat', None) - self.tickformat = tickformat if tickformat is not None else _v + self['tickformat'] = tickformat if tickformat is not None else _v _v = arg.pop('tickformatstops', None) - self.tickformatstops = tickformatstops if tickformatstops is not None else _v + self['tickformatstops' + ] = tickformatstops if tickformatstops is not None else _v _v = arg.pop('ticklen', None) - self.ticklen = ticklen if ticklen is not None else _v + self['ticklen'] = ticklen if ticklen is not None else _v _v = arg.pop('tickmode', None) - self.tickmode = tickmode if tickmode is not None else _v + self['tickmode'] = tickmode if tickmode is not None else _v _v = arg.pop('tickprefix', None) - self.tickprefix = tickprefix if tickprefix is not None else _v + self['tickprefix'] = tickprefix if tickprefix is not None else _v _v = arg.pop('ticks', None) - self.ticks = ticks if ticks is not None else _v + self['ticks'] = ticks if ticks is not None else _v _v = arg.pop('ticksuffix', None) - self.ticksuffix = ticksuffix if ticksuffix is not None else _v + self['ticksuffix'] = ticksuffix if ticksuffix is not None else _v _v = arg.pop('ticktext', None) - self.ticktext = ticktext if ticktext is not None else _v + self['ticktext'] = ticktext if ticktext is not None else _v _v = arg.pop('ticktextsrc', None) - self.ticktextsrc = ticktextsrc if ticktextsrc is not None else _v + self['ticktextsrc'] = ticktextsrc if ticktextsrc is not None else _v _v = arg.pop('tickvals', None) - self.tickvals = tickvals if tickvals is not None else _v + self['tickvals'] = tickvals if tickvals is not None else _v _v = arg.pop('tickvalssrc', None) - self.tickvalssrc = tickvalssrc if tickvalssrc is not None else _v + self['tickvalssrc'] = tickvalssrc if tickvalssrc is not None else _v _v = arg.pop('tickwidth', None) - self.tickwidth = tickwidth if tickwidth is not None else _v + self['tickwidth'] = tickwidth if tickwidth is not None else _v _v = arg.pop('title', None) - self.title = title if title is not None else _v + self['title'] = title if title is not None else _v _v = arg.pop('titlefont', None) - self.titlefont = titlefont if titlefont is not None else _v + self['titlefont'] = titlefont if titlefont is not None else _v _v = arg.pop('titleside', None) - self.titleside = titleside if titleside is not None else _v + self['titleside'] = titleside if titleside is not None else _v _v = arg.pop('x', None) - self.x = x if x is not None else _v + self['x'] = x if x is not None else _v _v = arg.pop('xanchor', None) - self.xanchor = xanchor if xanchor is not None else _v + self['xanchor'] = xanchor if xanchor is not None else _v _v = arg.pop('xpad', None) - self.xpad = xpad if xpad is not None else _v + self['xpad'] = xpad if xpad is not None else _v _v = arg.pop('y', None) - self.y = y if y is not None else _v + self['y'] = y if y is not None else _v _v = arg.pop('yanchor', None) - self.yanchor = yanchor if yanchor is not None else _v + self['yanchor'] = yanchor if yanchor is not None else _v _v = arg.pop('ypad', None) - self.ypad = ypad if ypad is not None else _v + self['ypad'] = ypad if ypad is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/histogram/marker/_line.py b/plotly/graph_objs/histogram/marker/_line.py index 3c7dabc8357..448a06e35ce 100644 --- a/plotly/graph_objs/histogram/marker/_line.py +++ b/plotly/graph_objs/histogram/marker/_line.py @@ -495,25 +495,26 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('autocolorscale', None) - self.autocolorscale = autocolorscale if autocolorscale is not None else _v + self['autocolorscale' + ] = autocolorscale if autocolorscale is not None else _v _v = arg.pop('cauto', None) - self.cauto = cauto if cauto is not None else _v + self['cauto'] = cauto if cauto is not None else _v _v = arg.pop('cmax', None) - self.cmax = cmax if cmax is not None else _v + self['cmax'] = cmax if cmax is not None else _v _v = arg.pop('cmin', None) - self.cmin = cmin if cmin is not None else _v + self['cmin'] = cmin if cmin is not None else _v _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('colorscale', None) - self.colorscale = colorscale if colorscale is not None else _v + self['colorscale'] = colorscale if colorscale is not None else _v _v = arg.pop('colorsrc', None) - self.colorsrc = colorsrc if colorsrc is not None else _v + self['colorsrc'] = colorsrc if colorsrc is not None else _v _v = arg.pop('reversescale', None) - self.reversescale = reversescale if reversescale is not None else _v + self['reversescale'] = reversescale if reversescale is not None else _v _v = arg.pop('width', None) - self.width = width if width is not None else _v + self['width'] = width if width is not None else _v _v = arg.pop('widthsrc', None) - self.widthsrc = widthsrc if widthsrc is not None else _v + self['widthsrc'] = widthsrc if widthsrc is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/histogram/marker/colorbar/_tickfont.py b/plotly/graph_objs/histogram/marker/colorbar/_tickfont.py index 3d1d9832d21..8c17a934385 100644 --- a/plotly/graph_objs/histogram/marker/colorbar/_tickfont.py +++ b/plotly/graph_objs/histogram/marker/colorbar/_tickfont.py @@ -209,11 +209,11 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('family', None) - self.family = family if family is not None else _v + self['family'] = family if family is not None else _v _v = arg.pop('size', None) - self.size = size if size is not None else _v + self['size'] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/histogram/marker/colorbar/_tickformatstop.py b/plotly/graph_objs/histogram/marker/colorbar/_tickformatstop.py index bed529b502f..ebeddbde4e2 100644 --- a/plotly/graph_objs/histogram/marker/colorbar/_tickformatstop.py +++ b/plotly/graph_objs/histogram/marker/colorbar/_tickformatstop.py @@ -260,15 +260,16 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('dtickrange', None) - self.dtickrange = dtickrange if dtickrange is not None else _v + self['dtickrange'] = dtickrange if dtickrange is not None else _v _v = arg.pop('enabled', None) - self.enabled = enabled if enabled is not None else _v + self['enabled'] = enabled if enabled is not None else _v _v = arg.pop('name', None) - self.name = name if name is not None else _v + self['name'] = name if name is not None else _v _v = arg.pop('templateitemname', None) - self.templateitemname = templateitemname if templateitemname is not None else _v + self['templateitemname' + ] = templateitemname if templateitemname is not None else _v _v = arg.pop('value', None) - self.value = value if value is not None else _v + self['value'] = value if value is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/histogram/marker/colorbar/_titlefont.py b/plotly/graph_objs/histogram/marker/colorbar/_titlefont.py index 31f56c3e560..355891a9118 100644 --- a/plotly/graph_objs/histogram/marker/colorbar/_titlefont.py +++ b/plotly/graph_objs/histogram/marker/colorbar/_titlefont.py @@ -209,11 +209,11 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('family', None) - self.family = family if family is not None else _v + self['family'] = family if family is not None else _v _v = arg.pop('size', None) - self.size = size if size is not None else _v + self['size'] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/histogram/selected/_marker.py b/plotly/graph_objs/histogram/selected/_marker.py index 7cc16aad90a..f9fd3301bf4 100644 --- a/plotly/graph_objs/histogram/selected/_marker.py +++ b/plotly/graph_objs/histogram/selected/_marker.py @@ -149,9 +149,9 @@ def __init__(self, arg=None, color=None, opacity=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('opacity', None) - self.opacity = opacity if opacity is not None else _v + self['opacity'] = opacity if opacity is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/histogram/selected/_textfont.py b/plotly/graph_objs/histogram/selected/_textfont.py index 27dbe5c3eea..f11da635098 100644 --- a/plotly/graph_objs/histogram/selected/_textfont.py +++ b/plotly/graph_objs/histogram/selected/_textfont.py @@ -126,7 +126,7 @@ def __init__(self, arg=None, color=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/histogram/unselected/_marker.py b/plotly/graph_objs/histogram/unselected/_marker.py index d2a04061349..a7cb2284675 100644 --- a/plotly/graph_objs/histogram/unselected/_marker.py +++ b/plotly/graph_objs/histogram/unselected/_marker.py @@ -155,9 +155,9 @@ def __init__(self, arg=None, color=None, opacity=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('opacity', None) - self.opacity = opacity if opacity is not None else _v + self['opacity'] = opacity if opacity is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/histogram/unselected/_textfont.py b/plotly/graph_objs/histogram/unselected/_textfont.py index 4e086b6cc51..da2a72a4726 100644 --- a/plotly/graph_objs/histogram/unselected/_textfont.py +++ b/plotly/graph_objs/histogram/unselected/_textfont.py @@ -129,7 +129,7 @@ def __init__(self, arg=None, color=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/histogram2d/_colorbar.py b/plotly/graph_objs/histogram2d/_colorbar.py index 772fca70cb6..1cf73b4e1bd 100644 --- a/plotly/graph_objs/histogram2d/_colorbar.py +++ b/plotly/graph_objs/histogram2d/_colorbar.py @@ -1671,89 +1671,96 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('bgcolor', None) - self.bgcolor = bgcolor if bgcolor is not None else _v + self['bgcolor'] = bgcolor if bgcolor is not None else _v _v = arg.pop('bordercolor', None) - self.bordercolor = bordercolor if bordercolor is not None else _v + self['bordercolor'] = bordercolor if bordercolor is not None else _v _v = arg.pop('borderwidth', None) - self.borderwidth = borderwidth if borderwidth is not None else _v + self['borderwidth'] = borderwidth if borderwidth is not None else _v _v = arg.pop('dtick', None) - self.dtick = dtick if dtick is not None else _v + self['dtick'] = dtick if dtick is not None else _v _v = arg.pop('exponentformat', None) - self.exponentformat = exponentformat if exponentformat is not None else _v + self['exponentformat' + ] = exponentformat if exponentformat is not None else _v _v = arg.pop('len', None) - self.len = len if len is not None else _v + self['len'] = len if len is not None else _v _v = arg.pop('lenmode', None) - self.lenmode = lenmode if lenmode is not None else _v + self['lenmode'] = lenmode if lenmode is not None else _v _v = arg.pop('nticks', None) - self.nticks = nticks if nticks is not None else _v + self['nticks'] = nticks if nticks is not None else _v _v = arg.pop('outlinecolor', None) - self.outlinecolor = outlinecolor if outlinecolor is not None else _v + self['outlinecolor'] = outlinecolor if outlinecolor is not None else _v _v = arg.pop('outlinewidth', None) - self.outlinewidth = outlinewidth if outlinewidth is not None else _v + self['outlinewidth'] = outlinewidth if outlinewidth is not None else _v _v = arg.pop('separatethousands', None) - self.separatethousands = separatethousands if separatethousands is not None else _v + self['separatethousands' + ] = separatethousands if separatethousands is not None else _v _v = arg.pop('showexponent', None) - self.showexponent = showexponent if showexponent is not None else _v + self['showexponent'] = showexponent if showexponent is not None else _v _v = arg.pop('showticklabels', None) - self.showticklabels = showticklabels if showticklabels is not None else _v + self['showticklabels' + ] = showticklabels if showticklabels is not None else _v _v = arg.pop('showtickprefix', None) - self.showtickprefix = showtickprefix if showtickprefix is not None else _v + self['showtickprefix' + ] = showtickprefix if showtickprefix is not None else _v _v = arg.pop('showticksuffix', None) - self.showticksuffix = showticksuffix if showticksuffix is not None else _v + self['showticksuffix' + ] = showticksuffix if showticksuffix is not None else _v _v = arg.pop('thickness', None) - self.thickness = thickness if thickness is not None else _v + self['thickness'] = thickness if thickness is not None else _v _v = arg.pop('thicknessmode', None) - self.thicknessmode = thicknessmode if thicknessmode is not None else _v + self['thicknessmode' + ] = thicknessmode if thicknessmode is not None else _v _v = arg.pop('tick0', None) - self.tick0 = tick0 if tick0 is not None else _v + self['tick0'] = tick0 if tick0 is not None else _v _v = arg.pop('tickangle', None) - self.tickangle = tickangle if tickangle is not None else _v + self['tickangle'] = tickangle if tickangle is not None else _v _v = arg.pop('tickcolor', None) - self.tickcolor = tickcolor if tickcolor is not None else _v + self['tickcolor'] = tickcolor if tickcolor is not None else _v _v = arg.pop('tickfont', None) - self.tickfont = tickfont if tickfont is not None else _v + self['tickfont'] = tickfont if tickfont is not None else _v _v = arg.pop('tickformat', None) - self.tickformat = tickformat if tickformat is not None else _v + self['tickformat'] = tickformat if tickformat is not None else _v _v = arg.pop('tickformatstops', None) - self.tickformatstops = tickformatstops if tickformatstops is not None else _v + self['tickformatstops' + ] = tickformatstops if tickformatstops is not None else _v _v = arg.pop('ticklen', None) - self.ticklen = ticklen if ticklen is not None else _v + self['ticklen'] = ticklen if ticklen is not None else _v _v = arg.pop('tickmode', None) - self.tickmode = tickmode if tickmode is not None else _v + self['tickmode'] = tickmode if tickmode is not None else _v _v = arg.pop('tickprefix', None) - self.tickprefix = tickprefix if tickprefix is not None else _v + self['tickprefix'] = tickprefix if tickprefix is not None else _v _v = arg.pop('ticks', None) - self.ticks = ticks if ticks is not None else _v + self['ticks'] = ticks if ticks is not None else _v _v = arg.pop('ticksuffix', None) - self.ticksuffix = ticksuffix if ticksuffix is not None else _v + self['ticksuffix'] = ticksuffix if ticksuffix is not None else _v _v = arg.pop('ticktext', None) - self.ticktext = ticktext if ticktext is not None else _v + self['ticktext'] = ticktext if ticktext is not None else _v _v = arg.pop('ticktextsrc', None) - self.ticktextsrc = ticktextsrc if ticktextsrc is not None else _v + self['ticktextsrc'] = ticktextsrc if ticktextsrc is not None else _v _v = arg.pop('tickvals', None) - self.tickvals = tickvals if tickvals is not None else _v + self['tickvals'] = tickvals if tickvals is not None else _v _v = arg.pop('tickvalssrc', None) - self.tickvalssrc = tickvalssrc if tickvalssrc is not None else _v + self['tickvalssrc'] = tickvalssrc if tickvalssrc is not None else _v _v = arg.pop('tickwidth', None) - self.tickwidth = tickwidth if tickwidth is not None else _v + self['tickwidth'] = tickwidth if tickwidth is not None else _v _v = arg.pop('title', None) - self.title = title if title is not None else _v + self['title'] = title if title is not None else _v _v = arg.pop('titlefont', None) - self.titlefont = titlefont if titlefont is not None else _v + self['titlefont'] = titlefont if titlefont is not None else _v _v = arg.pop('titleside', None) - self.titleside = titleside if titleside is not None else _v + self['titleside'] = titleside if titleside is not None else _v _v = arg.pop('x', None) - self.x = x if x is not None else _v + self['x'] = x if x is not None else _v _v = arg.pop('xanchor', None) - self.xanchor = xanchor if xanchor is not None else _v + self['xanchor'] = xanchor if xanchor is not None else _v _v = arg.pop('xpad', None) - self.xpad = xpad if xpad is not None else _v + self['xpad'] = xpad if xpad is not None else _v _v = arg.pop('y', None) - self.y = y if y is not None else _v + self['y'] = y if y is not None else _v _v = arg.pop('yanchor', None) - self.yanchor = yanchor if yanchor is not None else _v + self['yanchor'] = yanchor if yanchor is not None else _v _v = arg.pop('ypad', None) - self.ypad = ypad if ypad is not None else _v + self['ypad'] = ypad if ypad is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/histogram2d/_hoverlabel.py b/plotly/graph_objs/histogram2d/_hoverlabel.py index 16dc2f70dc8..504f2a23697 100644 --- a/plotly/graph_objs/histogram2d/_hoverlabel.py +++ b/plotly/graph_objs/histogram2d/_hoverlabel.py @@ -385,19 +385,21 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('bgcolor', None) - self.bgcolor = bgcolor if bgcolor is not None else _v + self['bgcolor'] = bgcolor if bgcolor is not None else _v _v = arg.pop('bgcolorsrc', None) - self.bgcolorsrc = bgcolorsrc if bgcolorsrc is not None else _v + self['bgcolorsrc'] = bgcolorsrc if bgcolorsrc is not None else _v _v = arg.pop('bordercolor', None) - self.bordercolor = bordercolor if bordercolor is not None else _v + self['bordercolor'] = bordercolor if bordercolor is not None else _v _v = arg.pop('bordercolorsrc', None) - self.bordercolorsrc = bordercolorsrc if bordercolorsrc is not None else _v + self['bordercolorsrc' + ] = bordercolorsrc if bordercolorsrc is not None else _v _v = arg.pop('font', None) - self.font = font if font is not None else _v + self['font'] = font if font is not None else _v _v = arg.pop('namelength', None) - self.namelength = namelength if namelength is not None else _v + self['namelength'] = namelength if namelength is not None else _v _v = arg.pop('namelengthsrc', None) - self.namelengthsrc = namelengthsrc if namelengthsrc is not None else _v + self['namelengthsrc' + ] = namelengthsrc if namelengthsrc is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/histogram2d/_marker.py b/plotly/graph_objs/histogram2d/_marker.py index 2b2ac9348a7..0658cba9346 100644 --- a/plotly/graph_objs/histogram2d/_marker.py +++ b/plotly/graph_objs/histogram2d/_marker.py @@ -109,9 +109,9 @@ def __init__(self, arg=None, color=None, colorsrc=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('colorsrc', None) - self.colorsrc = colorsrc if colorsrc is not None else _v + self['colorsrc'] = colorsrc if colorsrc is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/histogram2d/_stream.py b/plotly/graph_objs/histogram2d/_stream.py index 2062a851de8..8d208eb36d5 100644 --- a/plotly/graph_objs/histogram2d/_stream.py +++ b/plotly/graph_objs/histogram2d/_stream.py @@ -122,9 +122,9 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('maxpoints', None) - self.maxpoints = maxpoints if maxpoints is not None else _v + self['maxpoints'] = maxpoints if maxpoints is not None else _v _v = arg.pop('token', None) - self.token = token if token is not None else _v + self['token'] = token if token is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/histogram2d/_xbins.py b/plotly/graph_objs/histogram2d/_xbins.py index 806a3e563d8..eaa00db390b 100644 --- a/plotly/graph_objs/histogram2d/_xbins.py +++ b/plotly/graph_objs/histogram2d/_xbins.py @@ -131,11 +131,11 @@ def __init__(self, arg=None, end=None, size=None, start=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('end', None) - self.end = end if end is not None else _v + self['end'] = end if end is not None else _v _v = arg.pop('size', None) - self.size = size if size is not None else _v + self['size'] = size if size is not None else _v _v = arg.pop('start', None) - self.start = start if start is not None else _v + self['start'] = start if start is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/histogram2d/_ybins.py b/plotly/graph_objs/histogram2d/_ybins.py index 6bf7c827644..ca665e1f8ed 100644 --- a/plotly/graph_objs/histogram2d/_ybins.py +++ b/plotly/graph_objs/histogram2d/_ybins.py @@ -131,11 +131,11 @@ def __init__(self, arg=None, end=None, size=None, start=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('end', None) - self.end = end if end is not None else _v + self['end'] = end if end is not None else _v _v = arg.pop('size', None) - self.size = size if size is not None else _v + self['size'] = size if size is not None else _v _v = arg.pop('start', None) - self.start = start if start is not None else _v + self['start'] = start if start is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/histogram2d/colorbar/_tickfont.py b/plotly/graph_objs/histogram2d/colorbar/_tickfont.py index 9d7f77aeb3f..e042fb5c093 100644 --- a/plotly/graph_objs/histogram2d/colorbar/_tickfont.py +++ b/plotly/graph_objs/histogram2d/colorbar/_tickfont.py @@ -209,11 +209,11 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('family', None) - self.family = family if family is not None else _v + self['family'] = family if family is not None else _v _v = arg.pop('size', None) - self.size = size if size is not None else _v + self['size'] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/histogram2d/colorbar/_tickformatstop.py b/plotly/graph_objs/histogram2d/colorbar/_tickformatstop.py index 60dd6a87c64..fe9b25d9205 100644 --- a/plotly/graph_objs/histogram2d/colorbar/_tickformatstop.py +++ b/plotly/graph_objs/histogram2d/colorbar/_tickformatstop.py @@ -260,15 +260,16 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('dtickrange', None) - self.dtickrange = dtickrange if dtickrange is not None else _v + self['dtickrange'] = dtickrange if dtickrange is not None else _v _v = arg.pop('enabled', None) - self.enabled = enabled if enabled is not None else _v + self['enabled'] = enabled if enabled is not None else _v _v = arg.pop('name', None) - self.name = name if name is not None else _v + self['name'] = name if name is not None else _v _v = arg.pop('templateitemname', None) - self.templateitemname = templateitemname if templateitemname is not None else _v + self['templateitemname' + ] = templateitemname if templateitemname is not None else _v _v = arg.pop('value', None) - self.value = value if value is not None else _v + self['value'] = value if value is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/histogram2d/colorbar/_titlefont.py b/plotly/graph_objs/histogram2d/colorbar/_titlefont.py index 72f04624e23..6e08e200907 100644 --- a/plotly/graph_objs/histogram2d/colorbar/_titlefont.py +++ b/plotly/graph_objs/histogram2d/colorbar/_titlefont.py @@ -209,11 +209,11 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('family', None) - self.family = family if family is not None else _v + self['family'] = family if family is not None else _v _v = arg.pop('size', None) - self.size = size if size is not None else _v + self['size'] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/histogram2d/hoverlabel/_font.py b/plotly/graph_objs/histogram2d/hoverlabel/_font.py index 8fa28fda051..55dae3f4a41 100644 --- a/plotly/graph_objs/histogram2d/hoverlabel/_font.py +++ b/plotly/graph_objs/histogram2d/hoverlabel/_font.py @@ -295,17 +295,17 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('colorsrc', None) - self.colorsrc = colorsrc if colorsrc is not None else _v + self['colorsrc'] = colorsrc if colorsrc is not None else _v _v = arg.pop('family', None) - self.family = family if family is not None else _v + self['family'] = family if family is not None else _v _v = arg.pop('familysrc', None) - self.familysrc = familysrc if familysrc is not None else _v + self['familysrc'] = familysrc if familysrc is not None else _v _v = arg.pop('size', None) - self.size = size if size is not None else _v + self['size'] = size if size is not None else _v _v = arg.pop('sizesrc', None) - self.sizesrc = sizesrc if sizesrc is not None else _v + self['sizesrc'] = sizesrc if sizesrc is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/histogram2dcontour/_colorbar.py b/plotly/graph_objs/histogram2dcontour/_colorbar.py index 66bd64ce469..9d6a594457a 100644 --- a/plotly/graph_objs/histogram2dcontour/_colorbar.py +++ b/plotly/graph_objs/histogram2dcontour/_colorbar.py @@ -1674,89 +1674,96 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('bgcolor', None) - self.bgcolor = bgcolor if bgcolor is not None else _v + self['bgcolor'] = bgcolor if bgcolor is not None else _v _v = arg.pop('bordercolor', None) - self.bordercolor = bordercolor if bordercolor is not None else _v + self['bordercolor'] = bordercolor if bordercolor is not None else _v _v = arg.pop('borderwidth', None) - self.borderwidth = borderwidth if borderwidth is not None else _v + self['borderwidth'] = borderwidth if borderwidth is not None else _v _v = arg.pop('dtick', None) - self.dtick = dtick if dtick is not None else _v + self['dtick'] = dtick if dtick is not None else _v _v = arg.pop('exponentformat', None) - self.exponentformat = exponentformat if exponentformat is not None else _v + self['exponentformat' + ] = exponentformat if exponentformat is not None else _v _v = arg.pop('len', None) - self.len = len if len is not None else _v + self['len'] = len if len is not None else _v _v = arg.pop('lenmode', None) - self.lenmode = lenmode if lenmode is not None else _v + self['lenmode'] = lenmode if lenmode is not None else _v _v = arg.pop('nticks', None) - self.nticks = nticks if nticks is not None else _v + self['nticks'] = nticks if nticks is not None else _v _v = arg.pop('outlinecolor', None) - self.outlinecolor = outlinecolor if outlinecolor is not None else _v + self['outlinecolor'] = outlinecolor if outlinecolor is not None else _v _v = arg.pop('outlinewidth', None) - self.outlinewidth = outlinewidth if outlinewidth is not None else _v + self['outlinewidth'] = outlinewidth if outlinewidth is not None else _v _v = arg.pop('separatethousands', None) - self.separatethousands = separatethousands if separatethousands is not None else _v + self['separatethousands' + ] = separatethousands if separatethousands is not None else _v _v = arg.pop('showexponent', None) - self.showexponent = showexponent if showexponent is not None else _v + self['showexponent'] = showexponent if showexponent is not None else _v _v = arg.pop('showticklabels', None) - self.showticklabels = showticklabels if showticklabels is not None else _v + self['showticklabels' + ] = showticklabels if showticklabels is not None else _v _v = arg.pop('showtickprefix', None) - self.showtickprefix = showtickprefix if showtickprefix is not None else _v + self['showtickprefix' + ] = showtickprefix if showtickprefix is not None else _v _v = arg.pop('showticksuffix', None) - self.showticksuffix = showticksuffix if showticksuffix is not None else _v + self['showticksuffix' + ] = showticksuffix if showticksuffix is not None else _v _v = arg.pop('thickness', None) - self.thickness = thickness if thickness is not None else _v + self['thickness'] = thickness if thickness is not None else _v _v = arg.pop('thicknessmode', None) - self.thicknessmode = thicknessmode if thicknessmode is not None else _v + self['thicknessmode' + ] = thicknessmode if thicknessmode is not None else _v _v = arg.pop('tick0', None) - self.tick0 = tick0 if tick0 is not None else _v + self['tick0'] = tick0 if tick0 is not None else _v _v = arg.pop('tickangle', None) - self.tickangle = tickangle if tickangle is not None else _v + self['tickangle'] = tickangle if tickangle is not None else _v _v = arg.pop('tickcolor', None) - self.tickcolor = tickcolor if tickcolor is not None else _v + self['tickcolor'] = tickcolor if tickcolor is not None else _v _v = arg.pop('tickfont', None) - self.tickfont = tickfont if tickfont is not None else _v + self['tickfont'] = tickfont if tickfont is not None else _v _v = arg.pop('tickformat', None) - self.tickformat = tickformat if tickformat is not None else _v + self['tickformat'] = tickformat if tickformat is not None else _v _v = arg.pop('tickformatstops', None) - self.tickformatstops = tickformatstops if tickformatstops is not None else _v + self['tickformatstops' + ] = tickformatstops if tickformatstops is not None else _v _v = arg.pop('ticklen', None) - self.ticklen = ticklen if ticklen is not None else _v + self['ticklen'] = ticklen if ticklen is not None else _v _v = arg.pop('tickmode', None) - self.tickmode = tickmode if tickmode is not None else _v + self['tickmode'] = tickmode if tickmode is not None else _v _v = arg.pop('tickprefix', None) - self.tickprefix = tickprefix if tickprefix is not None else _v + self['tickprefix'] = tickprefix if tickprefix is not None else _v _v = arg.pop('ticks', None) - self.ticks = ticks if ticks is not None else _v + self['ticks'] = ticks if ticks is not None else _v _v = arg.pop('ticksuffix', None) - self.ticksuffix = ticksuffix if ticksuffix is not None else _v + self['ticksuffix'] = ticksuffix if ticksuffix is not None else _v _v = arg.pop('ticktext', None) - self.ticktext = ticktext if ticktext is not None else _v + self['ticktext'] = ticktext if ticktext is not None else _v _v = arg.pop('ticktextsrc', None) - self.ticktextsrc = ticktextsrc if ticktextsrc is not None else _v + self['ticktextsrc'] = ticktextsrc if ticktextsrc is not None else _v _v = arg.pop('tickvals', None) - self.tickvals = tickvals if tickvals is not None else _v + self['tickvals'] = tickvals if tickvals is not None else _v _v = arg.pop('tickvalssrc', None) - self.tickvalssrc = tickvalssrc if tickvalssrc is not None else _v + self['tickvalssrc'] = tickvalssrc if tickvalssrc is not None else _v _v = arg.pop('tickwidth', None) - self.tickwidth = tickwidth if tickwidth is not None else _v + self['tickwidth'] = tickwidth if tickwidth is not None else _v _v = arg.pop('title', None) - self.title = title if title is not None else _v + self['title'] = title if title is not None else _v _v = arg.pop('titlefont', None) - self.titlefont = titlefont if titlefont is not None else _v + self['titlefont'] = titlefont if titlefont is not None else _v _v = arg.pop('titleside', None) - self.titleside = titleside if titleside is not None else _v + self['titleside'] = titleside if titleside is not None else _v _v = arg.pop('x', None) - self.x = x if x is not None else _v + self['x'] = x if x is not None else _v _v = arg.pop('xanchor', None) - self.xanchor = xanchor if xanchor is not None else _v + self['xanchor'] = xanchor if xanchor is not None else _v _v = arg.pop('xpad', None) - self.xpad = xpad if xpad is not None else _v + self['xpad'] = xpad if xpad is not None else _v _v = arg.pop('y', None) - self.y = y if y is not None else _v + self['y'] = y if y is not None else _v _v = arg.pop('yanchor', None) - self.yanchor = yanchor if yanchor is not None else _v + self['yanchor'] = yanchor if yanchor is not None else _v _v = arg.pop('ypad', None) - self.ypad = ypad if ypad is not None else _v + self['ypad'] = ypad if ypad is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/histogram2dcontour/_contours.py b/plotly/graph_objs/histogram2dcontour/_contours.py index 47dfc416e62..e24ac2f9a69 100644 --- a/plotly/graph_objs/histogram2dcontour/_contours.py +++ b/plotly/graph_objs/histogram2dcontour/_contours.py @@ -475,27 +475,27 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('coloring', None) - self.coloring = coloring if coloring is not None else _v + self['coloring'] = coloring if coloring is not None else _v _v = arg.pop('end', None) - self.end = end if end is not None else _v + self['end'] = end if end is not None else _v _v = arg.pop('labelfont', None) - self.labelfont = labelfont if labelfont is not None else _v + self['labelfont'] = labelfont if labelfont is not None else _v _v = arg.pop('labelformat', None) - self.labelformat = labelformat if labelformat is not None else _v + self['labelformat'] = labelformat if labelformat is not None else _v _v = arg.pop('operation', None) - self.operation = operation if operation is not None else _v + self['operation'] = operation if operation is not None else _v _v = arg.pop('showlabels', None) - self.showlabels = showlabels if showlabels is not None else _v + self['showlabels'] = showlabels if showlabels is not None else _v _v = arg.pop('showlines', None) - self.showlines = showlines if showlines is not None else _v + self['showlines'] = showlines if showlines is not None else _v _v = arg.pop('size', None) - self.size = size if size is not None else _v + self['size'] = size if size is not None else _v _v = arg.pop('start', None) - self.start = start if start is not None else _v + self['start'] = start if start is not None else _v _v = arg.pop('type', None) - self.type = type if type is not None else _v + self['type'] = type if type is not None else _v _v = arg.pop('value', None) - self.value = value if value is not None else _v + self['value'] = value if value is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/histogram2dcontour/_hoverlabel.py b/plotly/graph_objs/histogram2dcontour/_hoverlabel.py index ce5b28c0be9..f937ff53067 100644 --- a/plotly/graph_objs/histogram2dcontour/_hoverlabel.py +++ b/plotly/graph_objs/histogram2dcontour/_hoverlabel.py @@ -388,19 +388,21 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('bgcolor', None) - self.bgcolor = bgcolor if bgcolor is not None else _v + self['bgcolor'] = bgcolor if bgcolor is not None else _v _v = arg.pop('bgcolorsrc', None) - self.bgcolorsrc = bgcolorsrc if bgcolorsrc is not None else _v + self['bgcolorsrc'] = bgcolorsrc if bgcolorsrc is not None else _v _v = arg.pop('bordercolor', None) - self.bordercolor = bordercolor if bordercolor is not None else _v + self['bordercolor'] = bordercolor if bordercolor is not None else _v _v = arg.pop('bordercolorsrc', None) - self.bordercolorsrc = bordercolorsrc if bordercolorsrc is not None else _v + self['bordercolorsrc' + ] = bordercolorsrc if bordercolorsrc is not None else _v _v = arg.pop('font', None) - self.font = font if font is not None else _v + self['font'] = font if font is not None else _v _v = arg.pop('namelength', None) - self.namelength = namelength if namelength is not None else _v + self['namelength'] = namelength if namelength is not None else _v _v = arg.pop('namelengthsrc', None) - self.namelengthsrc = namelengthsrc if namelengthsrc is not None else _v + self['namelengthsrc' + ] = namelengthsrc if namelengthsrc is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/histogram2dcontour/_line.py b/plotly/graph_objs/histogram2dcontour/_line.py index b1ac00d3551..f0b15886c74 100644 --- a/plotly/graph_objs/histogram2dcontour/_line.py +++ b/plotly/graph_objs/histogram2dcontour/_line.py @@ -225,13 +225,13 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('dash', None) - self.dash = dash if dash is not None else _v + self['dash'] = dash if dash is not None else _v _v = arg.pop('smoothing', None) - self.smoothing = smoothing if smoothing is not None else _v + self['smoothing'] = smoothing if smoothing is not None else _v _v = arg.pop('width', None) - self.width = width if width is not None else _v + self['width'] = width if width is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/histogram2dcontour/_marker.py b/plotly/graph_objs/histogram2dcontour/_marker.py index 2888be8dc59..5bb1ddb8afc 100644 --- a/plotly/graph_objs/histogram2dcontour/_marker.py +++ b/plotly/graph_objs/histogram2dcontour/_marker.py @@ -110,9 +110,9 @@ def __init__(self, arg=None, color=None, colorsrc=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('colorsrc', None) - self.colorsrc = colorsrc if colorsrc is not None else _v + self['colorsrc'] = colorsrc if colorsrc is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/histogram2dcontour/_stream.py b/plotly/graph_objs/histogram2dcontour/_stream.py index a983c550e74..608c9712177 100644 --- a/plotly/graph_objs/histogram2dcontour/_stream.py +++ b/plotly/graph_objs/histogram2dcontour/_stream.py @@ -123,9 +123,9 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('maxpoints', None) - self.maxpoints = maxpoints if maxpoints is not None else _v + self['maxpoints'] = maxpoints if maxpoints is not None else _v _v = arg.pop('token', None) - self.token = token if token is not None else _v + self['token'] = token if token is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/histogram2dcontour/_xbins.py b/plotly/graph_objs/histogram2dcontour/_xbins.py index dcf48d2d277..4b1e3e24bf8 100644 --- a/plotly/graph_objs/histogram2dcontour/_xbins.py +++ b/plotly/graph_objs/histogram2dcontour/_xbins.py @@ -132,11 +132,11 @@ def __init__(self, arg=None, end=None, size=None, start=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('end', None) - self.end = end if end is not None else _v + self['end'] = end if end is not None else _v _v = arg.pop('size', None) - self.size = size if size is not None else _v + self['size'] = size if size is not None else _v _v = arg.pop('start', None) - self.start = start if start is not None else _v + self['start'] = start if start is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/histogram2dcontour/_ybins.py b/plotly/graph_objs/histogram2dcontour/_ybins.py index 65c1b12acda..ff33b63bbf4 100644 --- a/plotly/graph_objs/histogram2dcontour/_ybins.py +++ b/plotly/graph_objs/histogram2dcontour/_ybins.py @@ -132,11 +132,11 @@ def __init__(self, arg=None, end=None, size=None, start=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('end', None) - self.end = end if end is not None else _v + self['end'] = end if end is not None else _v _v = arg.pop('size', None) - self.size = size if size is not None else _v + self['size'] = size if size is not None else _v _v = arg.pop('start', None) - self.start = start if start is not None else _v + self['start'] = start if start is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/histogram2dcontour/colorbar/_tickfont.py b/plotly/graph_objs/histogram2dcontour/colorbar/_tickfont.py index 3480a2ec15f..aa725cf07c5 100644 --- a/plotly/graph_objs/histogram2dcontour/colorbar/_tickfont.py +++ b/plotly/graph_objs/histogram2dcontour/colorbar/_tickfont.py @@ -209,11 +209,11 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('family', None) - self.family = family if family is not None else _v + self['family'] = family if family is not None else _v _v = arg.pop('size', None) - self.size = size if size is not None else _v + self['size'] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/histogram2dcontour/colorbar/_tickformatstop.py b/plotly/graph_objs/histogram2dcontour/colorbar/_tickformatstop.py index 9fab095ce9c..4c2d64ba9e8 100644 --- a/plotly/graph_objs/histogram2dcontour/colorbar/_tickformatstop.py +++ b/plotly/graph_objs/histogram2dcontour/colorbar/_tickformatstop.py @@ -260,15 +260,16 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('dtickrange', None) - self.dtickrange = dtickrange if dtickrange is not None else _v + self['dtickrange'] = dtickrange if dtickrange is not None else _v _v = arg.pop('enabled', None) - self.enabled = enabled if enabled is not None else _v + self['enabled'] = enabled if enabled is not None else _v _v = arg.pop('name', None) - self.name = name if name is not None else _v + self['name'] = name if name is not None else _v _v = arg.pop('templateitemname', None) - self.templateitemname = templateitemname if templateitemname is not None else _v + self['templateitemname' + ] = templateitemname if templateitemname is not None else _v _v = arg.pop('value', None) - self.value = value if value is not None else _v + self['value'] = value if value is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/histogram2dcontour/colorbar/_titlefont.py b/plotly/graph_objs/histogram2dcontour/colorbar/_titlefont.py index 1ce58107d86..2fd91ff9fb8 100644 --- a/plotly/graph_objs/histogram2dcontour/colorbar/_titlefont.py +++ b/plotly/graph_objs/histogram2dcontour/colorbar/_titlefont.py @@ -209,11 +209,11 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('family', None) - self.family = family if family is not None else _v + self['family'] = family if family is not None else _v _v = arg.pop('size', None) - self.size = size if size is not None else _v + self['size'] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/histogram2dcontour/contours/_labelfont.py b/plotly/graph_objs/histogram2dcontour/contours/_labelfont.py index db643923a34..07b67c4abf5 100644 --- a/plotly/graph_objs/histogram2dcontour/contours/_labelfont.py +++ b/plotly/graph_objs/histogram2dcontour/contours/_labelfont.py @@ -211,11 +211,11 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('family', None) - self.family = family if family is not None else _v + self['family'] = family if family is not None else _v _v = arg.pop('size', None) - self.size = size if size is not None else _v + self['size'] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/histogram2dcontour/hoverlabel/_font.py b/plotly/graph_objs/histogram2dcontour/hoverlabel/_font.py index e6fe62dc105..07d0f1ee5de 100644 --- a/plotly/graph_objs/histogram2dcontour/hoverlabel/_font.py +++ b/plotly/graph_objs/histogram2dcontour/hoverlabel/_font.py @@ -297,17 +297,17 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('colorsrc', None) - self.colorsrc = colorsrc if colorsrc is not None else _v + self['colorsrc'] = colorsrc if colorsrc is not None else _v _v = arg.pop('family', None) - self.family = family if family is not None else _v + self['family'] = family if family is not None else _v _v = arg.pop('familysrc', None) - self.familysrc = familysrc if familysrc is not None else _v + self['familysrc'] = familysrc if familysrc is not None else _v _v = arg.pop('size', None) - self.size = size if size is not None else _v + self['size'] = size if size is not None else _v _v = arg.pop('sizesrc', None) - self.sizesrc = sizesrc if sizesrc is not None else _v + self['sizesrc'] = sizesrc if sizesrc is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/layout/_angularaxis.py b/plotly/graph_objs/layout/_angularaxis.py index 8461023d343..3b5c6663425 100644 --- a/plotly/graph_objs/layout/_angularaxis.py +++ b/plotly/graph_objs/layout/_angularaxis.py @@ -386,25 +386,27 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('domain', None) - self.domain = domain if domain is not None else _v + self['domain'] = domain if domain is not None else _v _v = arg.pop('endpadding', None) - self.endpadding = endpadding if endpadding is not None else _v + self['endpadding'] = endpadding if endpadding is not None else _v _v = arg.pop('range', None) - self.range = range if range is not None else _v + self['range'] = range if range is not None else _v _v = arg.pop('showline', None) - self.showline = showline if showline is not None else _v + self['showline'] = showline if showline is not None else _v _v = arg.pop('showticklabels', None) - self.showticklabels = showticklabels if showticklabels is not None else _v + self['showticklabels' + ] = showticklabels if showticklabels is not None else _v _v = arg.pop('tickcolor', None) - self.tickcolor = tickcolor if tickcolor is not None else _v + self['tickcolor'] = tickcolor if tickcolor is not None else _v _v = arg.pop('ticklen', None) - self.ticklen = ticklen if ticklen is not None else _v + self['ticklen'] = ticklen if ticklen is not None else _v _v = arg.pop('tickorientation', None) - self.tickorientation = tickorientation if tickorientation is not None else _v + self['tickorientation' + ] = tickorientation if tickorientation is not None else _v _v = arg.pop('ticksuffix', None) - self.ticksuffix = ticksuffix if ticksuffix is not None else _v + self['ticksuffix'] = ticksuffix if ticksuffix is not None else _v _v = arg.pop('visible', None) - self.visible = visible if visible is not None else _v + self['visible'] = visible if visible is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/layout/_annotation.py b/plotly/graph_objs/layout/_annotation.py index 13192d8aa96..7e3fbf1da22 100644 --- a/plotly/graph_objs/layout/_annotation.py +++ b/plotly/graph_objs/layout/_annotation.py @@ -1766,91 +1766,96 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('align', None) - self.align = align if align is not None else _v + self['align'] = align if align is not None else _v _v = arg.pop('arrowcolor', None) - self.arrowcolor = arrowcolor if arrowcolor is not None else _v + self['arrowcolor'] = arrowcolor if arrowcolor is not None else _v _v = arg.pop('arrowhead', None) - self.arrowhead = arrowhead if arrowhead is not None else _v + self['arrowhead'] = arrowhead if arrowhead is not None else _v _v = arg.pop('arrowside', None) - self.arrowside = arrowside if arrowside is not None else _v + self['arrowside'] = arrowside if arrowside is not None else _v _v = arg.pop('arrowsize', None) - self.arrowsize = arrowsize if arrowsize is not None else _v + self['arrowsize'] = arrowsize if arrowsize is not None else _v _v = arg.pop('arrowwidth', None) - self.arrowwidth = arrowwidth if arrowwidth is not None else _v + self['arrowwidth'] = arrowwidth if arrowwidth is not None else _v _v = arg.pop('ax', None) - self.ax = ax if ax is not None else _v + self['ax'] = ax if ax is not None else _v _v = arg.pop('axref', None) - self.axref = axref if axref is not None else _v + self['axref'] = axref if axref is not None else _v _v = arg.pop('ay', None) - self.ay = ay if ay is not None else _v + self['ay'] = ay if ay is not None else _v _v = arg.pop('ayref', None) - self.ayref = ayref if ayref is not None else _v + self['ayref'] = ayref if ayref is not None else _v _v = arg.pop('bgcolor', None) - self.bgcolor = bgcolor if bgcolor is not None else _v + self['bgcolor'] = bgcolor if bgcolor is not None else _v _v = arg.pop('bordercolor', None) - self.bordercolor = bordercolor if bordercolor is not None else _v + self['bordercolor'] = bordercolor if bordercolor is not None else _v _v = arg.pop('borderpad', None) - self.borderpad = borderpad if borderpad is not None else _v + self['borderpad'] = borderpad if borderpad is not None else _v _v = arg.pop('borderwidth', None) - self.borderwidth = borderwidth if borderwidth is not None else _v + self['borderwidth'] = borderwidth if borderwidth is not None else _v _v = arg.pop('captureevents', None) - self.captureevents = captureevents if captureevents is not None else _v + self['captureevents' + ] = captureevents if captureevents is not None else _v _v = arg.pop('clicktoshow', None) - self.clicktoshow = clicktoshow if clicktoshow is not None else _v + self['clicktoshow'] = clicktoshow if clicktoshow is not None else _v _v = arg.pop('font', None) - self.font = font if font is not None else _v + self['font'] = font if font is not None else _v _v = arg.pop('height', None) - self.height = height if height is not None else _v + self['height'] = height if height is not None else _v _v = arg.pop('hoverlabel', None) - self.hoverlabel = hoverlabel if hoverlabel is not None else _v + self['hoverlabel'] = hoverlabel if hoverlabel is not None else _v _v = arg.pop('hovertext', None) - self.hovertext = hovertext if hovertext is not None else _v + self['hovertext'] = hovertext if hovertext is not None else _v _v = arg.pop('name', None) - self.name = name if name is not None else _v + self['name'] = name if name is not None else _v _v = arg.pop('opacity', None) - self.opacity = opacity if opacity is not None else _v + self['opacity'] = opacity if opacity is not None else _v _v = arg.pop('showarrow', None) - self.showarrow = showarrow if showarrow is not None else _v + self['showarrow'] = showarrow if showarrow is not None else _v _v = arg.pop('standoff', None) - self.standoff = standoff if standoff is not None else _v + self['standoff'] = standoff if standoff is not None else _v _v = arg.pop('startarrowhead', None) - self.startarrowhead = startarrowhead if startarrowhead is not None else _v + self['startarrowhead' + ] = startarrowhead if startarrowhead is not None else _v _v = arg.pop('startarrowsize', None) - self.startarrowsize = startarrowsize if startarrowsize is not None else _v + self['startarrowsize' + ] = startarrowsize if startarrowsize is not None else _v _v = arg.pop('startstandoff', None) - self.startstandoff = startstandoff if startstandoff is not None else _v + self['startstandoff' + ] = startstandoff if startstandoff is not None else _v _v = arg.pop('templateitemname', None) - self.templateitemname = templateitemname if templateitemname is not None else _v + self['templateitemname' + ] = templateitemname if templateitemname is not None else _v _v = arg.pop('text', None) - self.text = text if text is not None else _v + self['text'] = text if text is not None else _v _v = arg.pop('textangle', None) - self.textangle = textangle if textangle is not None else _v + self['textangle'] = textangle if textangle is not None else _v _v = arg.pop('valign', None) - self.valign = valign if valign is not None else _v + self['valign'] = valign if valign is not None else _v _v = arg.pop('visible', None) - self.visible = visible if visible is not None else _v + self['visible'] = visible if visible is not None else _v _v = arg.pop('width', None) - self.width = width if width is not None else _v + self['width'] = width if width is not None else _v _v = arg.pop('x', None) - self.x = x if x is not None else _v + self['x'] = x if x is not None else _v _v = arg.pop('xanchor', None) - self.xanchor = xanchor if xanchor is not None else _v + self['xanchor'] = xanchor if xanchor is not None else _v _v = arg.pop('xclick', None) - self.xclick = xclick if xclick is not None else _v + self['xclick'] = xclick if xclick is not None else _v _v = arg.pop('xref', None) - self.xref = xref if xref is not None else _v + self['xref'] = xref if xref is not None else _v _v = arg.pop('xshift', None) - self.xshift = xshift if xshift is not None else _v + self['xshift'] = xshift if xshift is not None else _v _v = arg.pop('y', None) - self.y = y if y is not None else _v + self['y'] = y if y is not None else _v _v = arg.pop('yanchor', None) - self.yanchor = yanchor if yanchor is not None else _v + self['yanchor'] = yanchor if yanchor is not None else _v _v = arg.pop('yclick', None) - self.yclick = yclick if yclick is not None else _v + self['yclick'] = yclick if yclick is not None else _v _v = arg.pop('yref', None) - self.yref = yref if yref is not None else _v + self['yref'] = yref if yref is not None else _v _v = arg.pop('yshift', None) - self.yshift = yshift if yshift is not None else _v + self['yshift'] = yshift if yshift is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/layout/_font.py b/plotly/graph_objs/layout/_font.py index dbde43b0dbc..e20dabe6c39 100644 --- a/plotly/graph_objs/layout/_font.py +++ b/plotly/graph_objs/layout/_font.py @@ -207,11 +207,11 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('family', None) - self.family = family if family is not None else _v + self['family'] = family if family is not None else _v _v = arg.pop('size', None) - self.size = size if size is not None else _v + self['size'] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/layout/_geo.py b/plotly/graph_objs/layout/_geo.py index 36a21ae2924..ae964ce1626 100644 --- a/plotly/graph_objs/layout/_geo.py +++ b/plotly/graph_objs/layout/_geo.py @@ -1294,63 +1294,67 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('bgcolor', None) - self.bgcolor = bgcolor if bgcolor is not None else _v + self['bgcolor'] = bgcolor if bgcolor is not None else _v _v = arg.pop('center', None) - self.center = center if center is not None else _v + self['center'] = center if center is not None else _v _v = arg.pop('coastlinecolor', None) - self.coastlinecolor = coastlinecolor if coastlinecolor is not None else _v + self['coastlinecolor' + ] = coastlinecolor if coastlinecolor is not None else _v _v = arg.pop('coastlinewidth', None) - self.coastlinewidth = coastlinewidth if coastlinewidth is not None else _v + self['coastlinewidth' + ] = coastlinewidth if coastlinewidth is not None else _v _v = arg.pop('countrycolor', None) - self.countrycolor = countrycolor if countrycolor is not None else _v + self['countrycolor'] = countrycolor if countrycolor is not None else _v _v = arg.pop('countrywidth', None) - self.countrywidth = countrywidth if countrywidth is not None else _v + self['countrywidth'] = countrywidth if countrywidth is not None else _v _v = arg.pop('domain', None) - self.domain = domain if domain is not None else _v + self['domain'] = domain if domain is not None else _v _v = arg.pop('framecolor', None) - self.framecolor = framecolor if framecolor is not None else _v + self['framecolor'] = framecolor if framecolor is not None else _v _v = arg.pop('framewidth', None) - self.framewidth = framewidth if framewidth is not None else _v + self['framewidth'] = framewidth if framewidth is not None else _v _v = arg.pop('lakecolor', None) - self.lakecolor = lakecolor if lakecolor is not None else _v + self['lakecolor'] = lakecolor if lakecolor is not None else _v _v = arg.pop('landcolor', None) - self.landcolor = landcolor if landcolor is not None else _v + self['landcolor'] = landcolor if landcolor is not None else _v _v = arg.pop('lataxis', None) - self.lataxis = lataxis if lataxis is not None else _v + self['lataxis'] = lataxis if lataxis is not None else _v _v = arg.pop('lonaxis', None) - self.lonaxis = lonaxis if lonaxis is not None else _v + self['lonaxis'] = lonaxis if lonaxis is not None else _v _v = arg.pop('oceancolor', None) - self.oceancolor = oceancolor if oceancolor is not None else _v + self['oceancolor'] = oceancolor if oceancolor is not None else _v _v = arg.pop('projection', None) - self.projection = projection if projection is not None else _v + self['projection'] = projection if projection is not None else _v _v = arg.pop('resolution', None) - self.resolution = resolution if resolution is not None else _v + self['resolution'] = resolution if resolution is not None else _v _v = arg.pop('rivercolor', None) - self.rivercolor = rivercolor if rivercolor is not None else _v + self['rivercolor'] = rivercolor if rivercolor is not None else _v _v = arg.pop('riverwidth', None) - self.riverwidth = riverwidth if riverwidth is not None else _v + self['riverwidth'] = riverwidth if riverwidth is not None else _v _v = arg.pop('scope', None) - self.scope = scope if scope is not None else _v + self['scope'] = scope if scope is not None else _v _v = arg.pop('showcoastlines', None) - self.showcoastlines = showcoastlines if showcoastlines is not None else _v + self['showcoastlines' + ] = showcoastlines if showcoastlines is not None else _v _v = arg.pop('showcountries', None) - self.showcountries = showcountries if showcountries is not None else _v + self['showcountries' + ] = showcountries if showcountries is not None else _v _v = arg.pop('showframe', None) - self.showframe = showframe if showframe is not None else _v + self['showframe'] = showframe if showframe is not None else _v _v = arg.pop('showlakes', None) - self.showlakes = showlakes if showlakes is not None else _v + self['showlakes'] = showlakes if showlakes is not None else _v _v = arg.pop('showland', None) - self.showland = showland if showland is not None else _v + self['showland'] = showland if showland is not None else _v _v = arg.pop('showocean', None) - self.showocean = showocean if showocean is not None else _v + self['showocean'] = showocean if showocean is not None else _v _v = arg.pop('showrivers', None) - self.showrivers = showrivers if showrivers is not None else _v + self['showrivers'] = showrivers if showrivers is not None else _v _v = arg.pop('showsubunits', None) - self.showsubunits = showsubunits if showsubunits is not None else _v + self['showsubunits'] = showsubunits if showsubunits is not None else _v _v = arg.pop('subunitcolor', None) - self.subunitcolor = subunitcolor if subunitcolor is not None else _v + self['subunitcolor'] = subunitcolor if subunitcolor is not None else _v _v = arg.pop('subunitwidth', None) - self.subunitwidth = subunitwidth if subunitwidth is not None else _v + self['subunitwidth'] = subunitwidth if subunitwidth is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/layout/_grid.py b/plotly/graph_objs/layout/_grid.py index f51dd514398..082b723970e 100644 --- a/plotly/graph_objs/layout/_grid.py +++ b/plotly/graph_objs/layout/_grid.py @@ -544,29 +544,29 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('columns', None) - self.columns = columns if columns is not None else _v + self['columns'] = columns if columns is not None else _v _v = arg.pop('domain', None) - self.domain = domain if domain is not None else _v + self['domain'] = domain if domain is not None else _v _v = arg.pop('pattern', None) - self.pattern = pattern if pattern is not None else _v + self['pattern'] = pattern if pattern is not None else _v _v = arg.pop('roworder', None) - self.roworder = roworder if roworder is not None else _v + self['roworder'] = roworder if roworder is not None else _v _v = arg.pop('rows', None) - self.rows = rows if rows is not None else _v + self['rows'] = rows if rows is not None else _v _v = arg.pop('subplots', None) - self.subplots = subplots if subplots is not None else _v + self['subplots'] = subplots if subplots is not None else _v _v = arg.pop('xaxes', None) - self.xaxes = xaxes if xaxes is not None else _v + self['xaxes'] = xaxes if xaxes is not None else _v _v = arg.pop('xgap', None) - self.xgap = xgap if xgap is not None else _v + self['xgap'] = xgap if xgap is not None else _v _v = arg.pop('xside', None) - self.xside = xside if xside is not None else _v + self['xside'] = xside if xside is not None else _v _v = arg.pop('yaxes', None) - self.yaxes = yaxes if yaxes is not None else _v + self['yaxes'] = yaxes if yaxes is not None else _v _v = arg.pop('ygap', None) - self.ygap = ygap if ygap is not None else _v + self['ygap'] = ygap if ygap is not None else _v _v = arg.pop('yside', None) - self.yside = yside if yside is not None else _v + self['yside'] = yside if yside is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/layout/_hoverlabel.py b/plotly/graph_objs/layout/_hoverlabel.py index 6706cc56f9a..b86172f9a1d 100644 --- a/plotly/graph_objs/layout/_hoverlabel.py +++ b/plotly/graph_objs/layout/_hoverlabel.py @@ -291,13 +291,13 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('bgcolor', None) - self.bgcolor = bgcolor if bgcolor is not None else _v + self['bgcolor'] = bgcolor if bgcolor is not None else _v _v = arg.pop('bordercolor', None) - self.bordercolor = bordercolor if bordercolor is not None else _v + self['bordercolor'] = bordercolor if bordercolor is not None else _v _v = arg.pop('font', None) - self.font = font if font is not None else _v + self['font'] = font if font is not None else _v _v = arg.pop('namelength', None) - self.namelength = namelength if namelength is not None else _v + self['namelength'] = namelength if namelength is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/layout/_image.py b/plotly/graph_objs/layout/_image.py index d45f5194c64..f666237fd61 100644 --- a/plotly/graph_objs/layout/_image.py +++ b/plotly/graph_objs/layout/_image.py @@ -581,35 +581,36 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('layer', None) - self.layer = layer if layer is not None else _v + self['layer'] = layer if layer is not None else _v _v = arg.pop('name', None) - self.name = name if name is not None else _v + self['name'] = name if name is not None else _v _v = arg.pop('opacity', None) - self.opacity = opacity if opacity is not None else _v + self['opacity'] = opacity if opacity is not None else _v _v = arg.pop('sizex', None) - self.sizex = sizex if sizex is not None else _v + self['sizex'] = sizex if sizex is not None else _v _v = arg.pop('sizey', None) - self.sizey = sizey if sizey is not None else _v + self['sizey'] = sizey if sizey is not None else _v _v = arg.pop('sizing', None) - self.sizing = sizing if sizing is not None else _v + self['sizing'] = sizing if sizing is not None else _v _v = arg.pop('source', None) - self.source = source if source is not None else _v + self['source'] = source if source is not None else _v _v = arg.pop('templateitemname', None) - self.templateitemname = templateitemname if templateitemname is not None else _v + self['templateitemname' + ] = templateitemname if templateitemname is not None else _v _v = arg.pop('visible', None) - self.visible = visible if visible is not None else _v + self['visible'] = visible if visible is not None else _v _v = arg.pop('x', None) - self.x = x if x is not None else _v + self['x'] = x if x is not None else _v _v = arg.pop('xanchor', None) - self.xanchor = xanchor if xanchor is not None else _v + self['xanchor'] = xanchor if xanchor is not None else _v _v = arg.pop('xref', None) - self.xref = xref if xref is not None else _v + self['xref'] = xref if xref is not None else _v _v = arg.pop('y', None) - self.y = y if y is not None else _v + self['y'] = y if y is not None else _v _v = arg.pop('yanchor', None) - self.yanchor = yanchor if yanchor is not None else _v + self['yanchor'] = yanchor if yanchor is not None else _v _v = arg.pop('yref', None) - self.yref = yref if yref is not None else _v + self['yref'] = yref if yref is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/layout/_legend.py b/plotly/graph_objs/layout/_legend.py index b65f4e4cf38..fa9e7832810 100644 --- a/plotly/graph_objs/layout/_legend.py +++ b/plotly/graph_objs/layout/_legend.py @@ -499,27 +499,28 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('bgcolor', None) - self.bgcolor = bgcolor if bgcolor is not None else _v + self['bgcolor'] = bgcolor if bgcolor is not None else _v _v = arg.pop('bordercolor', None) - self.bordercolor = bordercolor if bordercolor is not None else _v + self['bordercolor'] = bordercolor if bordercolor is not None else _v _v = arg.pop('borderwidth', None) - self.borderwidth = borderwidth if borderwidth is not None else _v + self['borderwidth'] = borderwidth if borderwidth is not None else _v _v = arg.pop('font', None) - self.font = font if font is not None else _v + self['font'] = font if font is not None else _v _v = arg.pop('orientation', None) - self.orientation = orientation if orientation is not None else _v + self['orientation'] = orientation if orientation is not None else _v _v = arg.pop('tracegroupgap', None) - self.tracegroupgap = tracegroupgap if tracegroupgap is not None else _v + self['tracegroupgap' + ] = tracegroupgap if tracegroupgap is not None else _v _v = arg.pop('traceorder', None) - self.traceorder = traceorder if traceorder is not None else _v + self['traceorder'] = traceorder if traceorder is not None else _v _v = arg.pop('x', None) - self.x = x if x is not None else _v + self['x'] = x if x is not None else _v _v = arg.pop('xanchor', None) - self.xanchor = xanchor if xanchor is not None else _v + self['xanchor'] = xanchor if xanchor is not None else _v _v = arg.pop('y', None) - self.y = y if y is not None else _v + self['y'] = y if y is not None else _v _v = arg.pop('yanchor', None) - self.yanchor = yanchor if yanchor is not None else _v + self['yanchor'] = yanchor if yanchor is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/layout/_mapbox.py b/plotly/graph_objs/layout/_mapbox.py index 922ba3f3b8e..6703da5ff0e 100644 --- a/plotly/graph_objs/layout/_mapbox.py +++ b/plotly/graph_objs/layout/_mapbox.py @@ -392,21 +392,21 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('accesstoken', None) - self.accesstoken = accesstoken if accesstoken is not None else _v + self['accesstoken'] = accesstoken if accesstoken is not None else _v _v = arg.pop('bearing', None) - self.bearing = bearing if bearing is not None else _v + self['bearing'] = bearing if bearing is not None else _v _v = arg.pop('center', None) - self.center = center if center is not None else _v + self['center'] = center if center is not None else _v _v = arg.pop('domain', None) - self.domain = domain if domain is not None else _v + self['domain'] = domain if domain is not None else _v _v = arg.pop('layers', None) - self.layers = layers if layers is not None else _v + self['layers'] = layers if layers is not None else _v _v = arg.pop('pitch', None) - self.pitch = pitch if pitch is not None else _v + self['pitch'] = pitch if pitch is not None else _v _v = arg.pop('style', None) - self.style = style if style is not None else _v + self['style'] = style if style is not None else _v _v = arg.pop('zoom', None) - self.zoom = zoom if zoom is not None else _v + self['zoom'] = zoom if zoom is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/layout/_margin.py b/plotly/graph_objs/layout/_margin.py index be5e6de5c34..67502539409 100644 --- a/plotly/graph_objs/layout/_margin.py +++ b/plotly/graph_objs/layout/_margin.py @@ -220,17 +220,17 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('autoexpand', None) - self.autoexpand = autoexpand if autoexpand is not None else _v + self['autoexpand'] = autoexpand if autoexpand is not None else _v _v = arg.pop('b', None) - self.b = b if b is not None else _v + self['b'] = b if b is not None else _v _v = arg.pop('l', None) - self.l = l if l is not None else _v + self['l'] = l if l is not None else _v _v = arg.pop('pad', None) - self.pad = pad if pad is not None else _v + self['pad'] = pad if pad is not None else _v _v = arg.pop('r', None) - self.r = r if r is not None else _v + self['r'] = r if r is not None else _v _v = arg.pop('t', None) - self.t = t if t is not None else _v + self['t'] = t if t is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/layout/_polar.py b/plotly/graph_objs/layout/_polar.py index f11c109f1ff..de69ab1bcc6 100644 --- a/plotly/graph_objs/layout/_polar.py +++ b/plotly/graph_objs/layout/_polar.py @@ -807,17 +807,17 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('angularaxis', None) - self.angularaxis = angularaxis if angularaxis is not None else _v + self['angularaxis'] = angularaxis if angularaxis is not None else _v _v = arg.pop('bgcolor', None) - self.bgcolor = bgcolor if bgcolor is not None else _v + self['bgcolor'] = bgcolor if bgcolor is not None else _v _v = arg.pop('domain', None) - self.domain = domain if domain is not None else _v + self['domain'] = domain if domain is not None else _v _v = arg.pop('gridshape', None) - self.gridshape = gridshape if gridshape is not None else _v + self['gridshape'] = gridshape if gridshape is not None else _v _v = arg.pop('radialaxis', None) - self.radialaxis = radialaxis if radialaxis is not None else _v + self['radialaxis'] = radialaxis if radialaxis is not None else _v _v = arg.pop('sector', None) - self.sector = sector if sector is not None else _v + self['sector'] = sector if sector is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/layout/_radialaxis.py b/plotly/graph_objs/layout/_radialaxis.py index 3866e7752b2..8f66939a097 100644 --- a/plotly/graph_objs/layout/_radialaxis.py +++ b/plotly/graph_objs/layout/_radialaxis.py @@ -415,27 +415,29 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('domain', None) - self.domain = domain if domain is not None else _v + self['domain'] = domain if domain is not None else _v _v = arg.pop('endpadding', None) - self.endpadding = endpadding if endpadding is not None else _v + self['endpadding'] = endpadding if endpadding is not None else _v _v = arg.pop('orientation', None) - self.orientation = orientation if orientation is not None else _v + self['orientation'] = orientation if orientation is not None else _v _v = arg.pop('range', None) - self.range = range if range is not None else _v + self['range'] = range if range is not None else _v _v = arg.pop('showline', None) - self.showline = showline if showline is not None else _v + self['showline'] = showline if showline is not None else _v _v = arg.pop('showticklabels', None) - self.showticklabels = showticklabels if showticklabels is not None else _v + self['showticklabels' + ] = showticklabels if showticklabels is not None else _v _v = arg.pop('tickcolor', None) - self.tickcolor = tickcolor if tickcolor is not None else _v + self['tickcolor'] = tickcolor if tickcolor is not None else _v _v = arg.pop('ticklen', None) - self.ticklen = ticklen if ticklen is not None else _v + self['ticklen'] = ticklen if ticklen is not None else _v _v = arg.pop('tickorientation', None) - self.tickorientation = tickorientation if tickorientation is not None else _v + self['tickorientation' + ] = tickorientation if tickorientation is not None else _v _v = arg.pop('ticksuffix', None) - self.ticksuffix = ticksuffix if ticksuffix is not None else _v + self['ticksuffix'] = ticksuffix if ticksuffix is not None else _v _v = arg.pop('visible', None) - self.visible = visible if visible is not None else _v + self['visible'] = visible if visible is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/layout/_scene.py b/plotly/graph_objs/layout/_scene.py index 938c1c72989..3832e1f43d5 100644 --- a/plotly/graph_objs/layout/_scene.py +++ b/plotly/graph_objs/layout/_scene.py @@ -1481,27 +1481,27 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('annotations', None) - self.annotations = annotations if annotations is not None else _v + self['annotations'] = annotations if annotations is not None else _v _v = arg.pop('aspectmode', None) - self.aspectmode = aspectmode if aspectmode is not None else _v + self['aspectmode'] = aspectmode if aspectmode is not None else _v _v = arg.pop('aspectratio', None) - self.aspectratio = aspectratio if aspectratio is not None else _v + self['aspectratio'] = aspectratio if aspectratio is not None else _v _v = arg.pop('bgcolor', None) - self.bgcolor = bgcolor if bgcolor is not None else _v + self['bgcolor'] = bgcolor if bgcolor is not None else _v _v = arg.pop('camera', None) - self.camera = camera if camera is not None else _v + self['camera'] = camera if camera is not None else _v _v = arg.pop('domain', None) - self.domain = domain if domain is not None else _v + self['domain'] = domain if domain is not None else _v _v = arg.pop('dragmode', None) - self.dragmode = dragmode if dragmode is not None else _v + self['dragmode'] = dragmode if dragmode is not None else _v _v = arg.pop('hovermode', None) - self.hovermode = hovermode if hovermode is not None else _v + self['hovermode'] = hovermode if hovermode is not None else _v _v = arg.pop('xaxis', None) - self.xaxis = xaxis if xaxis is not None else _v + self['xaxis'] = xaxis if xaxis is not None else _v _v = arg.pop('yaxis', None) - self.yaxis = yaxis if yaxis is not None else _v + self['yaxis'] = yaxis if yaxis is not None else _v _v = arg.pop('zaxis', None) - self.zaxis = zaxis if zaxis is not None else _v + self['zaxis'] = zaxis if zaxis is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/layout/_shape.py b/plotly/graph_objs/layout/_shape.py index bb4cd3550b5..97bdb42102f 100644 --- a/plotly/graph_objs/layout/_shape.py +++ b/plotly/graph_objs/layout/_shape.py @@ -877,43 +877,44 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('fillcolor', None) - self.fillcolor = fillcolor if fillcolor is not None else _v + self['fillcolor'] = fillcolor if fillcolor is not None else _v _v = arg.pop('layer', None) - self.layer = layer if layer is not None else _v + self['layer'] = layer if layer is not None else _v _v = arg.pop('line', None) - self.line = line if line is not None else _v + self['line'] = line if line is not None else _v _v = arg.pop('name', None) - self.name = name if name is not None else _v + self['name'] = name if name is not None else _v _v = arg.pop('opacity', None) - self.opacity = opacity if opacity is not None else _v + self['opacity'] = opacity if opacity is not None else _v _v = arg.pop('path', None) - self.path = path if path is not None else _v + self['path'] = path if path is not None else _v _v = arg.pop('templateitemname', None) - self.templateitemname = templateitemname if templateitemname is not None else _v + self['templateitemname' + ] = templateitemname if templateitemname is not None else _v _v = arg.pop('type', None) - self.type = type if type is not None else _v + self['type'] = type if type is not None else _v _v = arg.pop('visible', None) - self.visible = visible if visible is not None else _v + self['visible'] = visible if visible is not None else _v _v = arg.pop('x0', None) - self.x0 = x0 if x0 is not None else _v + self['x0'] = x0 if x0 is not None else _v _v = arg.pop('x1', None) - self.x1 = x1 if x1 is not None else _v + self['x1'] = x1 if x1 is not None else _v _v = arg.pop('xanchor', None) - self.xanchor = xanchor if xanchor is not None else _v + self['xanchor'] = xanchor if xanchor is not None else _v _v = arg.pop('xref', None) - self.xref = xref if xref is not None else _v + self['xref'] = xref if xref is not None else _v _v = arg.pop('xsizemode', None) - self.xsizemode = xsizemode if xsizemode is not None else _v + self['xsizemode'] = xsizemode if xsizemode is not None else _v _v = arg.pop('y0', None) - self.y0 = y0 if y0 is not None else _v + self['y0'] = y0 if y0 is not None else _v _v = arg.pop('y1', None) - self.y1 = y1 if y1 is not None else _v + self['y1'] = y1 if y1 is not None else _v _v = arg.pop('yanchor', None) - self.yanchor = yanchor if yanchor is not None else _v + self['yanchor'] = yanchor if yanchor is not None else _v _v = arg.pop('yref', None) - self.yref = yref if yref is not None else _v + self['yref'] = yref if yref is not None else _v _v = arg.pop('ysizemode', None) - self.ysizemode = ysizemode if ysizemode is not None else _v + self['ysizemode'] = ysizemode if ysizemode is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/layout/_slider.py b/plotly/graph_objs/layout/_slider.py index d5453c2aa60..babb355ea7f 100644 --- a/plotly/graph_objs/layout/_slider.py +++ b/plotly/graph_objs/layout/_slider.py @@ -1036,51 +1036,53 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('active', None) - self.active = active if active is not None else _v + self['active'] = active if active is not None else _v _v = arg.pop('activebgcolor', None) - self.activebgcolor = activebgcolor if activebgcolor is not None else _v + self['activebgcolor' + ] = activebgcolor if activebgcolor is not None else _v _v = arg.pop('bgcolor', None) - self.bgcolor = bgcolor if bgcolor is not None else _v + self['bgcolor'] = bgcolor if bgcolor is not None else _v _v = arg.pop('bordercolor', None) - self.bordercolor = bordercolor if bordercolor is not None else _v + self['bordercolor'] = bordercolor if bordercolor is not None else _v _v = arg.pop('borderwidth', None) - self.borderwidth = borderwidth if borderwidth is not None else _v + self['borderwidth'] = borderwidth if borderwidth is not None else _v _v = arg.pop('currentvalue', None) - self.currentvalue = currentvalue if currentvalue is not None else _v + self['currentvalue'] = currentvalue if currentvalue is not None else _v _v = arg.pop('font', None) - self.font = font if font is not None else _v + self['font'] = font if font is not None else _v _v = arg.pop('len', None) - self.len = len if len is not None else _v + self['len'] = len if len is not None else _v _v = arg.pop('lenmode', None) - self.lenmode = lenmode if lenmode is not None else _v + self['lenmode'] = lenmode if lenmode is not None else _v _v = arg.pop('minorticklen', None) - self.minorticklen = minorticklen if minorticklen is not None else _v + self['minorticklen'] = minorticklen if minorticklen is not None else _v _v = arg.pop('name', None) - self.name = name if name is not None else _v + self['name'] = name if name is not None else _v _v = arg.pop('pad', None) - self.pad = pad if pad is not None else _v + self['pad'] = pad if pad is not None else _v _v = arg.pop('steps', None) - self.steps = steps if steps is not None else _v + self['steps'] = steps if steps is not None else _v _v = arg.pop('templateitemname', None) - self.templateitemname = templateitemname if templateitemname is not None else _v + self['templateitemname' + ] = templateitemname if templateitemname is not None else _v _v = arg.pop('tickcolor', None) - self.tickcolor = tickcolor if tickcolor is not None else _v + self['tickcolor'] = tickcolor if tickcolor is not None else _v _v = arg.pop('ticklen', None) - self.ticklen = ticklen if ticklen is not None else _v + self['ticklen'] = ticklen if ticklen is not None else _v _v = arg.pop('tickwidth', None) - self.tickwidth = tickwidth if tickwidth is not None else _v + self['tickwidth'] = tickwidth if tickwidth is not None else _v _v = arg.pop('transition', None) - self.transition = transition if transition is not None else _v + self['transition'] = transition if transition is not None else _v _v = arg.pop('visible', None) - self.visible = visible if visible is not None else _v + self['visible'] = visible if visible is not None else _v _v = arg.pop('x', None) - self.x = x if x is not None else _v + self['x'] = x if x is not None else _v _v = arg.pop('xanchor', None) - self.xanchor = xanchor if xanchor is not None else _v + self['xanchor'] = xanchor if xanchor is not None else _v _v = arg.pop('y', None) - self.y = y if y is not None else _v + self['y'] = y if y is not None else _v _v = arg.pop('yanchor', None) - self.yanchor = yanchor if yanchor is not None else _v + self['yanchor'] = yanchor if yanchor is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/layout/_ternary.py b/plotly/graph_objs/layout/_ternary.py index d9c1e0340c4..11d1bc342ef 100644 --- a/plotly/graph_objs/layout/_ternary.py +++ b/plotly/graph_objs/layout/_ternary.py @@ -862,17 +862,17 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('aaxis', None) - self.aaxis = aaxis if aaxis is not None else _v + self['aaxis'] = aaxis if aaxis is not None else _v _v = arg.pop('baxis', None) - self.baxis = baxis if baxis is not None else _v + self['baxis'] = baxis if baxis is not None else _v _v = arg.pop('bgcolor', None) - self.bgcolor = bgcolor if bgcolor is not None else _v + self['bgcolor'] = bgcolor if bgcolor is not None else _v _v = arg.pop('caxis', None) - self.caxis = caxis if caxis is not None else _v + self['caxis'] = caxis if caxis is not None else _v _v = arg.pop('domain', None) - self.domain = domain if domain is not None else _v + self['domain'] = domain if domain is not None else _v _v = arg.pop('sum', None) - self.sum = sum if sum is not None else _v + self['sum'] = sum if sum is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/layout/_titlefont.py b/plotly/graph_objs/layout/_titlefont.py index a4a7b18b15b..48873d60693 100644 --- a/plotly/graph_objs/layout/_titlefont.py +++ b/plotly/graph_objs/layout/_titlefont.py @@ -206,11 +206,11 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('family', None) - self.family = family if family is not None else _v + self['family'] = family if family is not None else _v _v = arg.pop('size', None) - self.size = size if size is not None else _v + self['size'] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/layout/_updatemenu.py b/plotly/graph_objs/layout/_updatemenu.py index 8106967fede..57eae1676d8 100644 --- a/plotly/graph_objs/layout/_updatemenu.py +++ b/plotly/graph_objs/layout/_updatemenu.py @@ -772,39 +772,40 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('active', None) - self.active = active if active is not None else _v + self['active'] = active if active is not None else _v _v = arg.pop('bgcolor', None) - self.bgcolor = bgcolor if bgcolor is not None else _v + self['bgcolor'] = bgcolor if bgcolor is not None else _v _v = arg.pop('bordercolor', None) - self.bordercolor = bordercolor if bordercolor is not None else _v + self['bordercolor'] = bordercolor if bordercolor is not None else _v _v = arg.pop('borderwidth', None) - self.borderwidth = borderwidth if borderwidth is not None else _v + self['borderwidth'] = borderwidth if borderwidth is not None else _v _v = arg.pop('buttons', None) - self.buttons = buttons if buttons is not None else _v + self['buttons'] = buttons if buttons is not None else _v _v = arg.pop('direction', None) - self.direction = direction if direction is not None else _v + self['direction'] = direction if direction is not None else _v _v = arg.pop('font', None) - self.font = font if font is not None else _v + self['font'] = font if font is not None else _v _v = arg.pop('name', None) - self.name = name if name is not None else _v + self['name'] = name if name is not None else _v _v = arg.pop('pad', None) - self.pad = pad if pad is not None else _v + self['pad'] = pad if pad is not None else _v _v = arg.pop('showactive', None) - self.showactive = showactive if showactive is not None else _v + self['showactive'] = showactive if showactive is not None else _v _v = arg.pop('templateitemname', None) - self.templateitemname = templateitemname if templateitemname is not None else _v + self['templateitemname' + ] = templateitemname if templateitemname is not None else _v _v = arg.pop('type', None) - self.type = type if type is not None else _v + self['type'] = type if type is not None else _v _v = arg.pop('visible', None) - self.visible = visible if visible is not None else _v + self['visible'] = visible if visible is not None else _v _v = arg.pop('x', None) - self.x = x if x is not None else _v + self['x'] = x if x is not None else _v _v = arg.pop('xanchor', None) - self.xanchor = xanchor if xanchor is not None else _v + self['xanchor'] = xanchor if xanchor is not None else _v _v = arg.pop('y', None) - self.y = y if y is not None else _v + self['y'] = y if y is not None else _v _v = arg.pop('yanchor', None) - self.yanchor = yanchor if yanchor is not None else _v + self['yanchor'] = yanchor if yanchor is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/layout/_xaxis.py b/plotly/graph_objs/layout/_xaxis.py index 5d5e0eb58a5..dd9b86c23b5 100644 --- a/plotly/graph_objs/layout/_xaxis.py +++ b/plotly/graph_objs/layout/_xaxis.py @@ -2799,139 +2799,153 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('anchor', None) - self.anchor = anchor if anchor is not None else _v + self['anchor'] = anchor if anchor is not None else _v _v = arg.pop('automargin', None) - self.automargin = automargin if automargin is not None else _v + self['automargin'] = automargin if automargin is not None else _v _v = arg.pop('autorange', None) - self.autorange = autorange if autorange is not None else _v + self['autorange'] = autorange if autorange is not None else _v _v = arg.pop('calendar', None) - self.calendar = calendar if calendar is not None else _v + self['calendar'] = calendar if calendar is not None else _v _v = arg.pop('categoryarray', None) - self.categoryarray = categoryarray if categoryarray is not None else _v + self['categoryarray' + ] = categoryarray if categoryarray is not None else _v _v = arg.pop('categoryarraysrc', None) - self.categoryarraysrc = categoryarraysrc if categoryarraysrc is not None else _v + self['categoryarraysrc' + ] = categoryarraysrc if categoryarraysrc is not None else _v _v = arg.pop('categoryorder', None) - self.categoryorder = categoryorder if categoryorder is not None else _v + self['categoryorder' + ] = categoryorder if categoryorder is not None else _v _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('constrain', None) - self.constrain = constrain if constrain is not None else _v + self['constrain'] = constrain if constrain is not None else _v _v = arg.pop('constraintoward', None) - self.constraintoward = constraintoward if constraintoward is not None else _v + self['constraintoward' + ] = constraintoward if constraintoward is not None else _v _v = arg.pop('domain', None) - self.domain = domain if domain is not None else _v + self['domain'] = domain if domain is not None else _v _v = arg.pop('dtick', None) - self.dtick = dtick if dtick is not None else _v + self['dtick'] = dtick if dtick is not None else _v _v = arg.pop('exponentformat', None) - self.exponentformat = exponentformat if exponentformat is not None else _v + self['exponentformat' + ] = exponentformat if exponentformat is not None else _v _v = arg.pop('fixedrange', None) - self.fixedrange = fixedrange if fixedrange is not None else _v + self['fixedrange'] = fixedrange if fixedrange is not None else _v _v = arg.pop('gridcolor', None) - self.gridcolor = gridcolor if gridcolor is not None else _v + self['gridcolor'] = gridcolor if gridcolor is not None else _v _v = arg.pop('gridwidth', None) - self.gridwidth = gridwidth if gridwidth is not None else _v + self['gridwidth'] = gridwidth if gridwidth is not None else _v _v = arg.pop('hoverformat', None) - self.hoverformat = hoverformat if hoverformat is not None else _v + self['hoverformat'] = hoverformat if hoverformat is not None else _v _v = arg.pop('layer', None) - self.layer = layer if layer is not None else _v + self['layer'] = layer if layer is not None else _v _v = arg.pop('linecolor', None) - self.linecolor = linecolor if linecolor is not None else _v + self['linecolor'] = linecolor if linecolor is not None else _v _v = arg.pop('linewidth', None) - self.linewidth = linewidth if linewidth is not None else _v + self['linewidth'] = linewidth if linewidth is not None else _v _v = arg.pop('mirror', None) - self.mirror = mirror if mirror is not None else _v + self['mirror'] = mirror if mirror is not None else _v _v = arg.pop('nticks', None) - self.nticks = nticks if nticks is not None else _v + self['nticks'] = nticks if nticks is not None else _v _v = arg.pop('overlaying', None) - self.overlaying = overlaying if overlaying is not None else _v + self['overlaying'] = overlaying if overlaying is not None else _v _v = arg.pop('position', None) - self.position = position if position is not None else _v + self['position'] = position if position is not None else _v _v = arg.pop('range', None) - self.range = range if range is not None else _v + self['range'] = range if range is not None else _v _v = arg.pop('rangemode', None) - self.rangemode = rangemode if rangemode is not None else _v + self['rangemode'] = rangemode if rangemode is not None else _v _v = arg.pop('rangeselector', None) - self.rangeselector = rangeselector if rangeselector is not None else _v + self['rangeselector' + ] = rangeselector if rangeselector is not None else _v _v = arg.pop('rangeslider', None) - self.rangeslider = rangeslider if rangeslider is not None else _v + self['rangeslider'] = rangeslider if rangeslider is not None else _v _v = arg.pop('scaleanchor', None) - self.scaleanchor = scaleanchor if scaleanchor is not None else _v + self['scaleanchor'] = scaleanchor if scaleanchor is not None else _v _v = arg.pop('scaleratio', None) - self.scaleratio = scaleratio if scaleratio is not None else _v + self['scaleratio'] = scaleratio if scaleratio is not None else _v _v = arg.pop('separatethousands', None) - self.separatethousands = separatethousands if separatethousands is not None else _v + self['separatethousands' + ] = separatethousands if separatethousands is not None else _v _v = arg.pop('showexponent', None) - self.showexponent = showexponent if showexponent is not None else _v + self['showexponent'] = showexponent if showexponent is not None else _v _v = arg.pop('showgrid', None) - self.showgrid = showgrid if showgrid is not None else _v + self['showgrid'] = showgrid if showgrid is not None else _v _v = arg.pop('showline', None) - self.showline = showline if showline is not None else _v + self['showline'] = showline if showline is not None else _v _v = arg.pop('showspikes', None) - self.showspikes = showspikes if showspikes is not None else _v + self['showspikes'] = showspikes if showspikes is not None else _v _v = arg.pop('showticklabels', None) - self.showticklabels = showticklabels if showticklabels is not None else _v + self['showticklabels' + ] = showticklabels if showticklabels is not None else _v _v = arg.pop('showtickprefix', None) - self.showtickprefix = showtickprefix if showtickprefix is not None else _v + self['showtickprefix' + ] = showtickprefix if showtickprefix is not None else _v _v = arg.pop('showticksuffix', None) - self.showticksuffix = showticksuffix if showticksuffix is not None else _v + self['showticksuffix' + ] = showticksuffix if showticksuffix is not None else _v _v = arg.pop('side', None) - self.side = side if side is not None else _v + self['side'] = side if side is not None else _v _v = arg.pop('spikecolor', None) - self.spikecolor = spikecolor if spikecolor is not None else _v + self['spikecolor'] = spikecolor if spikecolor is not None else _v _v = arg.pop('spikedash', None) - self.spikedash = spikedash if spikedash is not None else _v + self['spikedash'] = spikedash if spikedash is not None else _v _v = arg.pop('spikemode', None) - self.spikemode = spikemode if spikemode is not None else _v + self['spikemode'] = spikemode if spikemode is not None else _v _v = arg.pop('spikesnap', None) - self.spikesnap = spikesnap if spikesnap is not None else _v + self['spikesnap'] = spikesnap if spikesnap is not None else _v _v = arg.pop('spikethickness', None) - self.spikethickness = spikethickness if spikethickness is not None else _v + self['spikethickness' + ] = spikethickness if spikethickness is not None else _v _v = arg.pop('tick0', None) - self.tick0 = tick0 if tick0 is not None else _v + self['tick0'] = tick0 if tick0 is not None else _v _v = arg.pop('tickangle', None) - self.tickangle = tickangle if tickangle is not None else _v + self['tickangle'] = tickangle if tickangle is not None else _v _v = arg.pop('tickcolor', None) - self.tickcolor = tickcolor if tickcolor is not None else _v + self['tickcolor'] = tickcolor if tickcolor is not None else _v _v = arg.pop('tickfont', None) - self.tickfont = tickfont if tickfont is not None else _v + self['tickfont'] = tickfont if tickfont is not None else _v _v = arg.pop('tickformat', None) - self.tickformat = tickformat if tickformat is not None else _v + self['tickformat'] = tickformat if tickformat is not None else _v _v = arg.pop('tickformatstops', None) - self.tickformatstops = tickformatstops if tickformatstops is not None else _v + self['tickformatstops' + ] = tickformatstops if tickformatstops is not None else _v _v = arg.pop('ticklen', None) - self.ticklen = ticklen if ticklen is not None else _v + self['ticklen'] = ticklen if ticklen is not None else _v _v = arg.pop('tickmode', None) - self.tickmode = tickmode if tickmode is not None else _v + self['tickmode'] = tickmode if tickmode is not None else _v _v = arg.pop('tickprefix', None) - self.tickprefix = tickprefix if tickprefix is not None else _v + self['tickprefix'] = tickprefix if tickprefix is not None else _v _v = arg.pop('ticks', None) - self.ticks = ticks if ticks is not None else _v + self['ticks'] = ticks if ticks is not None else _v _v = arg.pop('ticksuffix', None) - self.ticksuffix = ticksuffix if ticksuffix is not None else _v + self['ticksuffix'] = ticksuffix if ticksuffix is not None else _v _v = arg.pop('ticktext', None) - self.ticktext = ticktext if ticktext is not None else _v + self['ticktext'] = ticktext if ticktext is not None else _v _v = arg.pop('ticktextsrc', None) - self.ticktextsrc = ticktextsrc if ticktextsrc is not None else _v + self['ticktextsrc'] = ticktextsrc if ticktextsrc is not None else _v _v = arg.pop('tickvals', None) - self.tickvals = tickvals if tickvals is not None else _v + self['tickvals'] = tickvals if tickvals is not None else _v _v = arg.pop('tickvalssrc', None) - self.tickvalssrc = tickvalssrc if tickvalssrc is not None else _v + self['tickvalssrc'] = tickvalssrc if tickvalssrc is not None else _v _v = arg.pop('tickwidth', None) - self.tickwidth = tickwidth if tickwidth is not None else _v + self['tickwidth'] = tickwidth if tickwidth is not None else _v _v = arg.pop('title', None) - self.title = title if title is not None else _v + self['title'] = title if title is not None else _v _v = arg.pop('titlefont', None) - self.titlefont = titlefont if titlefont is not None else _v + self['titlefont'] = titlefont if titlefont is not None else _v _v = arg.pop('type', None) - self.type = type if type is not None else _v + self['type'] = type if type is not None else _v _v = arg.pop('visible', None) - self.visible = visible if visible is not None else _v + self['visible'] = visible if visible is not None else _v _v = arg.pop('zeroline', None) - self.zeroline = zeroline if zeroline is not None else _v + self['zeroline'] = zeroline if zeroline is not None else _v _v = arg.pop('zerolinecolor', None) - self.zerolinecolor = zerolinecolor if zerolinecolor is not None else _v + self['zerolinecolor' + ] = zerolinecolor if zerolinecolor is not None else _v _v = arg.pop('zerolinewidth', None) - self.zerolinewidth = zerolinewidth if zerolinewidth is not None else _v + self['zerolinewidth' + ] = zerolinewidth if zerolinewidth is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/layout/_yaxis.py b/plotly/graph_objs/layout/_yaxis.py index acd836c1167..418a825c01c 100644 --- a/plotly/graph_objs/layout/_yaxis.py +++ b/plotly/graph_objs/layout/_yaxis.py @@ -2662,135 +2662,148 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('anchor', None) - self.anchor = anchor if anchor is not None else _v + self['anchor'] = anchor if anchor is not None else _v _v = arg.pop('automargin', None) - self.automargin = automargin if automargin is not None else _v + self['automargin'] = automargin if automargin is not None else _v _v = arg.pop('autorange', None) - self.autorange = autorange if autorange is not None else _v + self['autorange'] = autorange if autorange is not None else _v _v = arg.pop('calendar', None) - self.calendar = calendar if calendar is not None else _v + self['calendar'] = calendar if calendar is not None else _v _v = arg.pop('categoryarray', None) - self.categoryarray = categoryarray if categoryarray is not None else _v + self['categoryarray' + ] = categoryarray if categoryarray is not None else _v _v = arg.pop('categoryarraysrc', None) - self.categoryarraysrc = categoryarraysrc if categoryarraysrc is not None else _v + self['categoryarraysrc' + ] = categoryarraysrc if categoryarraysrc is not None else _v _v = arg.pop('categoryorder', None) - self.categoryorder = categoryorder if categoryorder is not None else _v + self['categoryorder' + ] = categoryorder if categoryorder is not None else _v _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('constrain', None) - self.constrain = constrain if constrain is not None else _v + self['constrain'] = constrain if constrain is not None else _v _v = arg.pop('constraintoward', None) - self.constraintoward = constraintoward if constraintoward is not None else _v + self['constraintoward' + ] = constraintoward if constraintoward is not None else _v _v = arg.pop('domain', None) - self.domain = domain if domain is not None else _v + self['domain'] = domain if domain is not None else _v _v = arg.pop('dtick', None) - self.dtick = dtick if dtick is not None else _v + self['dtick'] = dtick if dtick is not None else _v _v = arg.pop('exponentformat', None) - self.exponentformat = exponentformat if exponentformat is not None else _v + self['exponentformat' + ] = exponentformat if exponentformat is not None else _v _v = arg.pop('fixedrange', None) - self.fixedrange = fixedrange if fixedrange is not None else _v + self['fixedrange'] = fixedrange if fixedrange is not None else _v _v = arg.pop('gridcolor', None) - self.gridcolor = gridcolor if gridcolor is not None else _v + self['gridcolor'] = gridcolor if gridcolor is not None else _v _v = arg.pop('gridwidth', None) - self.gridwidth = gridwidth if gridwidth is not None else _v + self['gridwidth'] = gridwidth if gridwidth is not None else _v _v = arg.pop('hoverformat', None) - self.hoverformat = hoverformat if hoverformat is not None else _v + self['hoverformat'] = hoverformat if hoverformat is not None else _v _v = arg.pop('layer', None) - self.layer = layer if layer is not None else _v + self['layer'] = layer if layer is not None else _v _v = arg.pop('linecolor', None) - self.linecolor = linecolor if linecolor is not None else _v + self['linecolor'] = linecolor if linecolor is not None else _v _v = arg.pop('linewidth', None) - self.linewidth = linewidth if linewidth is not None else _v + self['linewidth'] = linewidth if linewidth is not None else _v _v = arg.pop('mirror', None) - self.mirror = mirror if mirror is not None else _v + self['mirror'] = mirror if mirror is not None else _v _v = arg.pop('nticks', None) - self.nticks = nticks if nticks is not None else _v + self['nticks'] = nticks if nticks is not None else _v _v = arg.pop('overlaying', None) - self.overlaying = overlaying if overlaying is not None else _v + self['overlaying'] = overlaying if overlaying is not None else _v _v = arg.pop('position', None) - self.position = position if position is not None else _v + self['position'] = position if position is not None else _v _v = arg.pop('range', None) - self.range = range if range is not None else _v + self['range'] = range if range is not None else _v _v = arg.pop('rangemode', None) - self.rangemode = rangemode if rangemode is not None else _v + self['rangemode'] = rangemode if rangemode is not None else _v _v = arg.pop('scaleanchor', None) - self.scaleanchor = scaleanchor if scaleanchor is not None else _v + self['scaleanchor'] = scaleanchor if scaleanchor is not None else _v _v = arg.pop('scaleratio', None) - self.scaleratio = scaleratio if scaleratio is not None else _v + self['scaleratio'] = scaleratio if scaleratio is not None else _v _v = arg.pop('separatethousands', None) - self.separatethousands = separatethousands if separatethousands is not None else _v + self['separatethousands' + ] = separatethousands if separatethousands is not None else _v _v = arg.pop('showexponent', None) - self.showexponent = showexponent if showexponent is not None else _v + self['showexponent'] = showexponent if showexponent is not None else _v _v = arg.pop('showgrid', None) - self.showgrid = showgrid if showgrid is not None else _v + self['showgrid'] = showgrid if showgrid is not None else _v _v = arg.pop('showline', None) - self.showline = showline if showline is not None else _v + self['showline'] = showline if showline is not None else _v _v = arg.pop('showspikes', None) - self.showspikes = showspikes if showspikes is not None else _v + self['showspikes'] = showspikes if showspikes is not None else _v _v = arg.pop('showticklabels', None) - self.showticklabels = showticklabels if showticklabels is not None else _v + self['showticklabels' + ] = showticklabels if showticklabels is not None else _v _v = arg.pop('showtickprefix', None) - self.showtickprefix = showtickprefix if showtickprefix is not None else _v + self['showtickprefix' + ] = showtickprefix if showtickprefix is not None else _v _v = arg.pop('showticksuffix', None) - self.showticksuffix = showticksuffix if showticksuffix is not None else _v + self['showticksuffix' + ] = showticksuffix if showticksuffix is not None else _v _v = arg.pop('side', None) - self.side = side if side is not None else _v + self['side'] = side if side is not None else _v _v = arg.pop('spikecolor', None) - self.spikecolor = spikecolor if spikecolor is not None else _v + self['spikecolor'] = spikecolor if spikecolor is not None else _v _v = arg.pop('spikedash', None) - self.spikedash = spikedash if spikedash is not None else _v + self['spikedash'] = spikedash if spikedash is not None else _v _v = arg.pop('spikemode', None) - self.spikemode = spikemode if spikemode is not None else _v + self['spikemode'] = spikemode if spikemode is not None else _v _v = arg.pop('spikesnap', None) - self.spikesnap = spikesnap if spikesnap is not None else _v + self['spikesnap'] = spikesnap if spikesnap is not None else _v _v = arg.pop('spikethickness', None) - self.spikethickness = spikethickness if spikethickness is not None else _v + self['spikethickness' + ] = spikethickness if spikethickness is not None else _v _v = arg.pop('tick0', None) - self.tick0 = tick0 if tick0 is not None else _v + self['tick0'] = tick0 if tick0 is not None else _v _v = arg.pop('tickangle', None) - self.tickangle = tickangle if tickangle is not None else _v + self['tickangle'] = tickangle if tickangle is not None else _v _v = arg.pop('tickcolor', None) - self.tickcolor = tickcolor if tickcolor is not None else _v + self['tickcolor'] = tickcolor if tickcolor is not None else _v _v = arg.pop('tickfont', None) - self.tickfont = tickfont if tickfont is not None else _v + self['tickfont'] = tickfont if tickfont is not None else _v _v = arg.pop('tickformat', None) - self.tickformat = tickformat if tickformat is not None else _v + self['tickformat'] = tickformat if tickformat is not None else _v _v = arg.pop('tickformatstops', None) - self.tickformatstops = tickformatstops if tickformatstops is not None else _v + self['tickformatstops' + ] = tickformatstops if tickformatstops is not None else _v _v = arg.pop('ticklen', None) - self.ticklen = ticklen if ticklen is not None else _v + self['ticklen'] = ticklen if ticklen is not None else _v _v = arg.pop('tickmode', None) - self.tickmode = tickmode if tickmode is not None else _v + self['tickmode'] = tickmode if tickmode is not None else _v _v = arg.pop('tickprefix', None) - self.tickprefix = tickprefix if tickprefix is not None else _v + self['tickprefix'] = tickprefix if tickprefix is not None else _v _v = arg.pop('ticks', None) - self.ticks = ticks if ticks is not None else _v + self['ticks'] = ticks if ticks is not None else _v _v = arg.pop('ticksuffix', None) - self.ticksuffix = ticksuffix if ticksuffix is not None else _v + self['ticksuffix'] = ticksuffix if ticksuffix is not None else _v _v = arg.pop('ticktext', None) - self.ticktext = ticktext if ticktext is not None else _v + self['ticktext'] = ticktext if ticktext is not None else _v _v = arg.pop('ticktextsrc', None) - self.ticktextsrc = ticktextsrc if ticktextsrc is not None else _v + self['ticktextsrc'] = ticktextsrc if ticktextsrc is not None else _v _v = arg.pop('tickvals', None) - self.tickvals = tickvals if tickvals is not None else _v + self['tickvals'] = tickvals if tickvals is not None else _v _v = arg.pop('tickvalssrc', None) - self.tickvalssrc = tickvalssrc if tickvalssrc is not None else _v + self['tickvalssrc'] = tickvalssrc if tickvalssrc is not None else _v _v = arg.pop('tickwidth', None) - self.tickwidth = tickwidth if tickwidth is not None else _v + self['tickwidth'] = tickwidth if tickwidth is not None else _v _v = arg.pop('title', None) - self.title = title if title is not None else _v + self['title'] = title if title is not None else _v _v = arg.pop('titlefont', None) - self.titlefont = titlefont if titlefont is not None else _v + self['titlefont'] = titlefont if titlefont is not None else _v _v = arg.pop('type', None) - self.type = type if type is not None else _v + self['type'] = type if type is not None else _v _v = arg.pop('visible', None) - self.visible = visible if visible is not None else _v + self['visible'] = visible if visible is not None else _v _v = arg.pop('zeroline', None) - self.zeroline = zeroline if zeroline is not None else _v + self['zeroline'] = zeroline if zeroline is not None else _v _v = arg.pop('zerolinecolor', None) - self.zerolinecolor = zerolinecolor if zerolinecolor is not None else _v + self['zerolinecolor' + ] = zerolinecolor if zerolinecolor is not None else _v _v = arg.pop('zerolinewidth', None) - self.zerolinewidth = zerolinewidth if zerolinewidth is not None else _v + self['zerolinewidth' + ] = zerolinewidth if zerolinewidth is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/layout/annotation/_font.py b/plotly/graph_objs/layout/annotation/_font.py index b7568c2321f..559620a7768 100644 --- a/plotly/graph_objs/layout/annotation/_font.py +++ b/plotly/graph_objs/layout/annotation/_font.py @@ -206,11 +206,11 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('family', None) - self.family = family if family is not None else _v + self['family'] = family if family is not None else _v _v = arg.pop('size', None) - self.size = size if size is not None else _v + self['size'] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/layout/annotation/_hoverlabel.py b/plotly/graph_objs/layout/annotation/_hoverlabel.py index 49ac1c3ece1..ca7ef23bb5a 100644 --- a/plotly/graph_objs/layout/annotation/_hoverlabel.py +++ b/plotly/graph_objs/layout/annotation/_hoverlabel.py @@ -259,11 +259,11 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('bgcolor', None) - self.bgcolor = bgcolor if bgcolor is not None else _v + self['bgcolor'] = bgcolor if bgcolor is not None else _v _v = arg.pop('bordercolor', None) - self.bordercolor = bordercolor if bordercolor is not None else _v + self['bordercolor'] = bordercolor if bordercolor is not None else _v _v = arg.pop('font', None) - self.font = font if font is not None else _v + self['font'] = font if font is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/layout/annotation/hoverlabel/_font.py b/plotly/graph_objs/layout/annotation/hoverlabel/_font.py index f9bcc2aa5d6..0a71e17c1d5 100644 --- a/plotly/graph_objs/layout/annotation/hoverlabel/_font.py +++ b/plotly/graph_objs/layout/annotation/hoverlabel/_font.py @@ -210,11 +210,11 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('family', None) - self.family = family if family is not None else _v + self['family'] = family if family is not None else _v _v = arg.pop('size', None) - self.size = size if size is not None else _v + self['size'] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/layout/geo/_center.py b/plotly/graph_objs/layout/geo/_center.py index 2be19b223cc..b316cbedfb8 100644 --- a/plotly/graph_objs/layout/geo/_center.py +++ b/plotly/graph_objs/layout/geo/_center.py @@ -124,9 +124,9 @@ def __init__(self, arg=None, lat=None, lon=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('lat', None) - self.lat = lat if lat is not None else _v + self['lat'] = lat if lat is not None else _v _v = arg.pop('lon', None) - self.lon = lon if lon is not None else _v + self['lon'] = lon if lon is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/layout/geo/_domain.py b/plotly/graph_objs/layout/geo/_domain.py index 62891ffafb6..06733b489d0 100644 --- a/plotly/graph_objs/layout/geo/_domain.py +++ b/plotly/graph_objs/layout/geo/_domain.py @@ -219,13 +219,13 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('column', None) - self.column = column if column is not None else _v + self['column'] = column if column is not None else _v _v = arg.pop('row', None) - self.row = row if row is not None else _v + self['row'] = row if row is not None else _v _v = arg.pop('x', None) - self.x = x if x is not None else _v + self['x'] = x if x is not None else _v _v = arg.pop('y', None) - self.y = y if y is not None else _v + self['y'] = y if y is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/layout/geo/_lataxis.py b/plotly/graph_objs/layout/geo/_lataxis.py index 24169d7ea32..986bebb4b1a 100644 --- a/plotly/graph_objs/layout/geo/_lataxis.py +++ b/plotly/graph_objs/layout/geo/_lataxis.py @@ -266,17 +266,17 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('dtick', None) - self.dtick = dtick if dtick is not None else _v + self['dtick'] = dtick if dtick is not None else _v _v = arg.pop('gridcolor', None) - self.gridcolor = gridcolor if gridcolor is not None else _v + self['gridcolor'] = gridcolor if gridcolor is not None else _v _v = arg.pop('gridwidth', None) - self.gridwidth = gridwidth if gridwidth is not None else _v + self['gridwidth'] = gridwidth if gridwidth is not None else _v _v = arg.pop('range', None) - self.range = range if range is not None else _v + self['range'] = range if range is not None else _v _v = arg.pop('showgrid', None) - self.showgrid = showgrid if showgrid is not None else _v + self['showgrid'] = showgrid if showgrid is not None else _v _v = arg.pop('tick0', None) - self.tick0 = tick0 if tick0 is not None else _v + self['tick0'] = tick0 if tick0 is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/layout/geo/_lonaxis.py b/plotly/graph_objs/layout/geo/_lonaxis.py index fb4442ba3fe..e08939a8d22 100644 --- a/plotly/graph_objs/layout/geo/_lonaxis.py +++ b/plotly/graph_objs/layout/geo/_lonaxis.py @@ -266,17 +266,17 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('dtick', None) - self.dtick = dtick if dtick is not None else _v + self['dtick'] = dtick if dtick is not None else _v _v = arg.pop('gridcolor', None) - self.gridcolor = gridcolor if gridcolor is not None else _v + self['gridcolor'] = gridcolor if gridcolor is not None else _v _v = arg.pop('gridwidth', None) - self.gridwidth = gridwidth if gridwidth is not None else _v + self['gridwidth'] = gridwidth if gridwidth is not None else _v _v = arg.pop('range', None) - self.range = range if range is not None else _v + self['range'] = range if range is not None else _v _v = arg.pop('showgrid', None) - self.showgrid = showgrid if showgrid is not None else _v + self['showgrid'] = showgrid if showgrid is not None else _v _v = arg.pop('tick0', None) - self.tick0 = tick0 if tick0 is not None else _v + self['tick0'] = tick0 if tick0 is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/layout/geo/_projection.py b/plotly/graph_objs/layout/geo/_projection.py index 7420398717e..dc88a06e95d 100644 --- a/plotly/graph_objs/layout/geo/_projection.py +++ b/plotly/graph_objs/layout/geo/_projection.py @@ -203,13 +203,13 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('parallels', None) - self.parallels = parallels if parallels is not None else _v + self['parallels'] = parallels if parallels is not None else _v _v = arg.pop('rotation', None) - self.rotation = rotation if rotation is not None else _v + self['rotation'] = rotation if rotation is not None else _v _v = arg.pop('scale', None) - self.scale = scale if scale is not None else _v + self['scale'] = scale if scale is not None else _v _v = arg.pop('type', None) - self.type = type if type is not None else _v + self['type'] = type if type is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/layout/geo/projection/_rotation.py b/plotly/graph_objs/layout/geo/projection/_rotation.py index 91af496ec44..c35438b5b2e 100644 --- a/plotly/graph_objs/layout/geo/projection/_rotation.py +++ b/plotly/graph_objs/layout/geo/projection/_rotation.py @@ -143,11 +143,11 @@ def __init__(self, arg=None, lat=None, lon=None, roll=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('lat', None) - self.lat = lat if lat is not None else _v + self['lat'] = lat if lat is not None else _v _v = arg.pop('lon', None) - self.lon = lon if lon is not None else _v + self['lon'] = lon if lon is not None else _v _v = arg.pop('roll', None) - self.roll = roll if roll is not None else _v + self['roll'] = roll if roll is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/layout/grid/_domain.py b/plotly/graph_objs/layout/grid/_domain.py index eded3596fcf..69dff973b87 100644 --- a/plotly/graph_objs/layout/grid/_domain.py +++ b/plotly/graph_objs/layout/grid/_domain.py @@ -131,9 +131,9 @@ def __init__(self, arg=None, x=None, y=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('x', None) - self.x = x if x is not None else _v + self['x'] = x if x is not None else _v _v = arg.pop('y', None) - self.y = y if y is not None else _v + self['y'] = y if y is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/layout/hoverlabel/_font.py b/plotly/graph_objs/layout/hoverlabel/_font.py index b36a823a442..60ef776eebf 100644 --- a/plotly/graph_objs/layout/hoverlabel/_font.py +++ b/plotly/graph_objs/layout/hoverlabel/_font.py @@ -207,11 +207,11 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('family', None) - self.family = family if family is not None else _v + self['family'] = family if family is not None else _v _v = arg.pop('size', None) - self.size = size if size is not None else _v + self['size'] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/layout/legend/_font.py b/plotly/graph_objs/layout/legend/_font.py index 7ba115534bb..b32b98af5df 100644 --- a/plotly/graph_objs/layout/legend/_font.py +++ b/plotly/graph_objs/layout/legend/_font.py @@ -206,11 +206,11 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('family', None) - self.family = family if family is not None else _v + self['family'] = family if family is not None else _v _v = arg.pop('size', None) - self.size = size if size is not None else _v + self['size'] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/layout/mapbox/_center.py b/plotly/graph_objs/layout/mapbox/_center.py index b1e086f945f..26f02d7f9f9 100644 --- a/plotly/graph_objs/layout/mapbox/_center.py +++ b/plotly/graph_objs/layout/mapbox/_center.py @@ -113,9 +113,9 @@ def __init__(self, arg=None, lat=None, lon=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('lat', None) - self.lat = lat if lat is not None else _v + self['lat'] = lat if lat is not None else _v _v = arg.pop('lon', None) - self.lon = lon if lon is not None else _v + self['lon'] = lon if lon is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/layout/mapbox/_domain.py b/plotly/graph_objs/layout/mapbox/_domain.py index e30f06952cf..1000b429e24 100644 --- a/plotly/graph_objs/layout/mapbox/_domain.py +++ b/plotly/graph_objs/layout/mapbox/_domain.py @@ -185,13 +185,13 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('column', None) - self.column = column if column is not None else _v + self['column'] = column if column is not None else _v _v = arg.pop('row', None) - self.row = row if row is not None else _v + self['row'] = row if row is not None else _v _v = arg.pop('x', None) - self.x = x if x is not None else _v + self['x'] = x if x is not None else _v _v = arg.pop('y', None) - self.y = y if y is not None else _v + self['y'] = y if y is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/layout/mapbox/_layer.py b/plotly/graph_objs/layout/mapbox/_layer.py index 6db18aa9f4b..0a9af334b59 100644 --- a/plotly/graph_objs/layout/mapbox/_layer.py +++ b/plotly/graph_objs/layout/mapbox/_layer.py @@ -604,33 +604,34 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('below', None) - self.below = below if below is not None else _v + self['below'] = below if below is not None else _v _v = arg.pop('circle', None) - self.circle = circle if circle is not None else _v + self['circle'] = circle if circle is not None else _v _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('fill', None) - self.fill = fill if fill is not None else _v + self['fill'] = fill if fill is not None else _v _v = arg.pop('line', None) - self.line = line if line is not None else _v + self['line'] = line if line is not None else _v _v = arg.pop('name', None) - self.name = name if name is not None else _v + self['name'] = name if name is not None else _v _v = arg.pop('opacity', None) - self.opacity = opacity if opacity is not None else _v + self['opacity'] = opacity if opacity is not None else _v _v = arg.pop('source', None) - self.source = source if source is not None else _v + self['source'] = source if source is not None else _v _v = arg.pop('sourcelayer', None) - self.sourcelayer = sourcelayer if sourcelayer is not None else _v + self['sourcelayer'] = sourcelayer if sourcelayer is not None else _v _v = arg.pop('sourcetype', None) - self.sourcetype = sourcetype if sourcetype is not None else _v + self['sourcetype'] = sourcetype if sourcetype is not None else _v _v = arg.pop('symbol', None) - self.symbol = symbol if symbol is not None else _v + self['symbol'] = symbol if symbol is not None else _v _v = arg.pop('templateitemname', None) - self.templateitemname = templateitemname if templateitemname is not None else _v + self['templateitemname' + ] = templateitemname if templateitemname is not None else _v _v = arg.pop('type', None) - self.type = type if type is not None else _v + self['type'] = type if type is not None else _v _v = arg.pop('visible', None) - self.visible = visible if visible is not None else _v + self['visible'] = visible if visible is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/layout/mapbox/layer/_circle.py b/plotly/graph_objs/layout/mapbox/layer/_circle.py index 7e1d56b95da..4ec8c1dde4d 100644 --- a/plotly/graph_objs/layout/mapbox/layer/_circle.py +++ b/plotly/graph_objs/layout/mapbox/layer/_circle.py @@ -88,7 +88,7 @@ def __init__(self, arg=None, radius=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('radius', None) - self.radius = radius if radius is not None else _v + self['radius'] = radius if radius is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/layout/mapbox/layer/_fill.py b/plotly/graph_objs/layout/mapbox/layer/_fill.py index 12703a76445..b8ab1348add 100644 --- a/plotly/graph_objs/layout/mapbox/layer/_fill.py +++ b/plotly/graph_objs/layout/mapbox/layer/_fill.py @@ -127,7 +127,7 @@ def __init__(self, arg=None, outlinecolor=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('outlinecolor', None) - self.outlinecolor = outlinecolor if outlinecolor is not None else _v + self['outlinecolor'] = outlinecolor if outlinecolor is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/layout/mapbox/layer/_line.py b/plotly/graph_objs/layout/mapbox/layer/_line.py index b57d6f09321..1335990d74d 100644 --- a/plotly/graph_objs/layout/mapbox/layer/_line.py +++ b/plotly/graph_objs/layout/mapbox/layer/_line.py @@ -88,7 +88,7 @@ def __init__(self, arg=None, width=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('width', None) - self.width = width if width is not None else _v + self['width'] = width if width is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/layout/mapbox/layer/_symbol.py b/plotly/graph_objs/layout/mapbox/layer/_symbol.py index 30e85f541d7..c5260e11cd2 100644 --- a/plotly/graph_objs/layout/mapbox/layer/_symbol.py +++ b/plotly/graph_objs/layout/mapbox/layer/_symbol.py @@ -236,15 +236,15 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('icon', None) - self.icon = icon if icon is not None else _v + self['icon'] = icon if icon is not None else _v _v = arg.pop('iconsize', None) - self.iconsize = iconsize if iconsize is not None else _v + self['iconsize'] = iconsize if iconsize is not None else _v _v = arg.pop('text', None) - self.text = text if text is not None else _v + self['text'] = text if text is not None else _v _v = arg.pop('textfont', None) - self.textfont = textfont if textfont is not None else _v + self['textfont'] = textfont if textfont is not None else _v _v = arg.pop('textposition', None) - self.textposition = textposition if textposition is not None else _v + self['textposition'] = textposition if textposition is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/layout/mapbox/layer/symbol/_textfont.py b/plotly/graph_objs/layout/mapbox/layer/symbol/_textfont.py index 35346106815..216de7a1ca0 100644 --- a/plotly/graph_objs/layout/mapbox/layer/symbol/_textfont.py +++ b/plotly/graph_objs/layout/mapbox/layer/symbol/_textfont.py @@ -210,11 +210,11 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('family', None) - self.family = family if family is not None else _v + self['family'] = family if family is not None else _v _v = arg.pop('size', None) - self.size = size if size is not None else _v + self['size'] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/layout/polar/_angularaxis.py b/plotly/graph_objs/layout/polar/_angularaxis.py index c8aef079554..dd213140136 100644 --- a/plotly/graph_objs/layout/polar/_angularaxis.py +++ b/plotly/graph_objs/layout/polar/_angularaxis.py @@ -1741,89 +1741,98 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('categoryarray', None) - self.categoryarray = categoryarray if categoryarray is not None else _v + self['categoryarray' + ] = categoryarray if categoryarray is not None else _v _v = arg.pop('categoryarraysrc', None) - self.categoryarraysrc = categoryarraysrc if categoryarraysrc is not None else _v + self['categoryarraysrc' + ] = categoryarraysrc if categoryarraysrc is not None else _v _v = arg.pop('categoryorder', None) - self.categoryorder = categoryorder if categoryorder is not None else _v + self['categoryorder' + ] = categoryorder if categoryorder is not None else _v _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('direction', None) - self.direction = direction if direction is not None else _v + self['direction'] = direction if direction is not None else _v _v = arg.pop('dtick', None) - self.dtick = dtick if dtick is not None else _v + self['dtick'] = dtick if dtick is not None else _v _v = arg.pop('exponentformat', None) - self.exponentformat = exponentformat if exponentformat is not None else _v + self['exponentformat' + ] = exponentformat if exponentformat is not None else _v _v = arg.pop('gridcolor', None) - self.gridcolor = gridcolor if gridcolor is not None else _v + self['gridcolor'] = gridcolor if gridcolor is not None else _v _v = arg.pop('gridwidth', None) - self.gridwidth = gridwidth if gridwidth is not None else _v + self['gridwidth'] = gridwidth if gridwidth is not None else _v _v = arg.pop('hoverformat', None) - self.hoverformat = hoverformat if hoverformat is not None else _v + self['hoverformat'] = hoverformat if hoverformat is not None else _v _v = arg.pop('layer', None) - self.layer = layer if layer is not None else _v + self['layer'] = layer if layer is not None else _v _v = arg.pop('linecolor', None) - self.linecolor = linecolor if linecolor is not None else _v + self['linecolor'] = linecolor if linecolor is not None else _v _v = arg.pop('linewidth', None) - self.linewidth = linewidth if linewidth is not None else _v + self['linewidth'] = linewidth if linewidth is not None else _v _v = arg.pop('nticks', None) - self.nticks = nticks if nticks is not None else _v + self['nticks'] = nticks if nticks is not None else _v _v = arg.pop('period', None) - self.period = period if period is not None else _v + self['period'] = period if period is not None else _v _v = arg.pop('rotation', None) - self.rotation = rotation if rotation is not None else _v + self['rotation'] = rotation if rotation is not None else _v _v = arg.pop('separatethousands', None) - self.separatethousands = separatethousands if separatethousands is not None else _v + self['separatethousands' + ] = separatethousands if separatethousands is not None else _v _v = arg.pop('showexponent', None) - self.showexponent = showexponent if showexponent is not None else _v + self['showexponent'] = showexponent if showexponent is not None else _v _v = arg.pop('showgrid', None) - self.showgrid = showgrid if showgrid is not None else _v + self['showgrid'] = showgrid if showgrid is not None else _v _v = arg.pop('showline', None) - self.showline = showline if showline is not None else _v + self['showline'] = showline if showline is not None else _v _v = arg.pop('showticklabels', None) - self.showticklabels = showticklabels if showticklabels is not None else _v + self['showticklabels' + ] = showticklabels if showticklabels is not None else _v _v = arg.pop('showtickprefix', None) - self.showtickprefix = showtickprefix if showtickprefix is not None else _v + self['showtickprefix' + ] = showtickprefix if showtickprefix is not None else _v _v = arg.pop('showticksuffix', None) - self.showticksuffix = showticksuffix if showticksuffix is not None else _v + self['showticksuffix' + ] = showticksuffix if showticksuffix is not None else _v _v = arg.pop('thetaunit', None) - self.thetaunit = thetaunit if thetaunit is not None else _v + self['thetaunit'] = thetaunit if thetaunit is not None else _v _v = arg.pop('tick0', None) - self.tick0 = tick0 if tick0 is not None else _v + self['tick0'] = tick0 if tick0 is not None else _v _v = arg.pop('tickangle', None) - self.tickangle = tickangle if tickangle is not None else _v + self['tickangle'] = tickangle if tickangle is not None else _v _v = arg.pop('tickcolor', None) - self.tickcolor = tickcolor if tickcolor is not None else _v + self['tickcolor'] = tickcolor if tickcolor is not None else _v _v = arg.pop('tickfont', None) - self.tickfont = tickfont if tickfont is not None else _v + self['tickfont'] = tickfont if tickfont is not None else _v _v = arg.pop('tickformat', None) - self.tickformat = tickformat if tickformat is not None else _v + self['tickformat'] = tickformat if tickformat is not None else _v _v = arg.pop('tickformatstops', None) - self.tickformatstops = tickformatstops if tickformatstops is not None else _v + self['tickformatstops' + ] = tickformatstops if tickformatstops is not None else _v _v = arg.pop('ticklen', None) - self.ticklen = ticklen if ticklen is not None else _v + self['ticklen'] = ticklen if ticklen is not None else _v _v = arg.pop('tickmode', None) - self.tickmode = tickmode if tickmode is not None else _v + self['tickmode'] = tickmode if tickmode is not None else _v _v = arg.pop('tickprefix', None) - self.tickprefix = tickprefix if tickprefix is not None else _v + self['tickprefix'] = tickprefix if tickprefix is not None else _v _v = arg.pop('ticks', None) - self.ticks = ticks if ticks is not None else _v + self['ticks'] = ticks if ticks is not None else _v _v = arg.pop('ticksuffix', None) - self.ticksuffix = ticksuffix if ticksuffix is not None else _v + self['ticksuffix'] = ticksuffix if ticksuffix is not None else _v _v = arg.pop('ticktext', None) - self.ticktext = ticktext if ticktext is not None else _v + self['ticktext'] = ticktext if ticktext is not None else _v _v = arg.pop('ticktextsrc', None) - self.ticktextsrc = ticktextsrc if ticktextsrc is not None else _v + self['ticktextsrc'] = ticktextsrc if ticktextsrc is not None else _v _v = arg.pop('tickvals', None) - self.tickvals = tickvals if tickvals is not None else _v + self['tickvals'] = tickvals if tickvals is not None else _v _v = arg.pop('tickvalssrc', None) - self.tickvalssrc = tickvalssrc if tickvalssrc is not None else _v + self['tickvalssrc'] = tickvalssrc if tickvalssrc is not None else _v _v = arg.pop('tickwidth', None) - self.tickwidth = tickwidth if tickwidth is not None else _v + self['tickwidth'] = tickwidth if tickwidth is not None else _v _v = arg.pop('type', None) - self.type = type if type is not None else _v + self['type'] = type if type is not None else _v _v = arg.pop('visible', None) - self.visible = visible if visible is not None else _v + self['visible'] = visible if visible is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/layout/polar/_domain.py b/plotly/graph_objs/layout/polar/_domain.py index 1938d8e00ad..7330a3d8b66 100644 --- a/plotly/graph_objs/layout/polar/_domain.py +++ b/plotly/graph_objs/layout/polar/_domain.py @@ -185,13 +185,13 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('column', None) - self.column = column if column is not None else _v + self['column'] = column if column is not None else _v _v = arg.pop('row', None) - self.row = row if row is not None else _v + self['row'] = row if row is not None else _v _v = arg.pop('x', None) - self.x = x if x is not None else _v + self['x'] = x if x is not None else _v _v = arg.pop('y', None) - self.y = y if y is not None else _v + self['y'] = y if y is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/layout/polar/_radialaxis.py b/plotly/graph_objs/layout/polar/_radialaxis.py index e8bc81c3b6d..e621e3498f8 100644 --- a/plotly/graph_objs/layout/polar/_radialaxis.py +++ b/plotly/graph_objs/layout/polar/_radialaxis.py @@ -1919,97 +1919,106 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('angle', None) - self.angle = angle if angle is not None else _v + self['angle'] = angle if angle is not None else _v _v = arg.pop('autorange', None) - self.autorange = autorange if autorange is not None else _v + self['autorange'] = autorange if autorange is not None else _v _v = arg.pop('calendar', None) - self.calendar = calendar if calendar is not None else _v + self['calendar'] = calendar if calendar is not None else _v _v = arg.pop('categoryarray', None) - self.categoryarray = categoryarray if categoryarray is not None else _v + self['categoryarray' + ] = categoryarray if categoryarray is not None else _v _v = arg.pop('categoryarraysrc', None) - self.categoryarraysrc = categoryarraysrc if categoryarraysrc is not None else _v + self['categoryarraysrc' + ] = categoryarraysrc if categoryarraysrc is not None else _v _v = arg.pop('categoryorder', None) - self.categoryorder = categoryorder if categoryorder is not None else _v + self['categoryorder' + ] = categoryorder if categoryorder is not None else _v _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('dtick', None) - self.dtick = dtick if dtick is not None else _v + self['dtick'] = dtick if dtick is not None else _v _v = arg.pop('exponentformat', None) - self.exponentformat = exponentformat if exponentformat is not None else _v + self['exponentformat' + ] = exponentformat if exponentformat is not None else _v _v = arg.pop('gridcolor', None) - self.gridcolor = gridcolor if gridcolor is not None else _v + self['gridcolor'] = gridcolor if gridcolor is not None else _v _v = arg.pop('gridwidth', None) - self.gridwidth = gridwidth if gridwidth is not None else _v + self['gridwidth'] = gridwidth if gridwidth is not None else _v _v = arg.pop('hoverformat', None) - self.hoverformat = hoverformat if hoverformat is not None else _v + self['hoverformat'] = hoverformat if hoverformat is not None else _v _v = arg.pop('layer', None) - self.layer = layer if layer is not None else _v + self['layer'] = layer if layer is not None else _v _v = arg.pop('linecolor', None) - self.linecolor = linecolor if linecolor is not None else _v + self['linecolor'] = linecolor if linecolor is not None else _v _v = arg.pop('linewidth', None) - self.linewidth = linewidth if linewidth is not None else _v + self['linewidth'] = linewidth if linewidth is not None else _v _v = arg.pop('nticks', None) - self.nticks = nticks if nticks is not None else _v + self['nticks'] = nticks if nticks is not None else _v _v = arg.pop('range', None) - self.range = range if range is not None else _v + self['range'] = range if range is not None else _v _v = arg.pop('rangemode', None) - self.rangemode = rangemode if rangemode is not None else _v + self['rangemode'] = rangemode if rangemode is not None else _v _v = arg.pop('separatethousands', None) - self.separatethousands = separatethousands if separatethousands is not None else _v + self['separatethousands' + ] = separatethousands if separatethousands is not None else _v _v = arg.pop('showexponent', None) - self.showexponent = showexponent if showexponent is not None else _v + self['showexponent'] = showexponent if showexponent is not None else _v _v = arg.pop('showgrid', None) - self.showgrid = showgrid if showgrid is not None else _v + self['showgrid'] = showgrid if showgrid is not None else _v _v = arg.pop('showline', None) - self.showline = showline if showline is not None else _v + self['showline'] = showline if showline is not None else _v _v = arg.pop('showticklabels', None) - self.showticklabels = showticklabels if showticklabels is not None else _v + self['showticklabels' + ] = showticklabels if showticklabels is not None else _v _v = arg.pop('showtickprefix', None) - self.showtickprefix = showtickprefix if showtickprefix is not None else _v + self['showtickprefix' + ] = showtickprefix if showtickprefix is not None else _v _v = arg.pop('showticksuffix', None) - self.showticksuffix = showticksuffix if showticksuffix is not None else _v + self['showticksuffix' + ] = showticksuffix if showticksuffix is not None else _v _v = arg.pop('side', None) - self.side = side if side is not None else _v + self['side'] = side if side is not None else _v _v = arg.pop('tick0', None) - self.tick0 = tick0 if tick0 is not None else _v + self['tick0'] = tick0 if tick0 is not None else _v _v = arg.pop('tickangle', None) - self.tickangle = tickangle if tickangle is not None else _v + self['tickangle'] = tickangle if tickangle is not None else _v _v = arg.pop('tickcolor', None) - self.tickcolor = tickcolor if tickcolor is not None else _v + self['tickcolor'] = tickcolor if tickcolor is not None else _v _v = arg.pop('tickfont', None) - self.tickfont = tickfont if tickfont is not None else _v + self['tickfont'] = tickfont if tickfont is not None else _v _v = arg.pop('tickformat', None) - self.tickformat = tickformat if tickformat is not None else _v + self['tickformat'] = tickformat if tickformat is not None else _v _v = arg.pop('tickformatstops', None) - self.tickformatstops = tickformatstops if tickformatstops is not None else _v + self['tickformatstops' + ] = tickformatstops if tickformatstops is not None else _v _v = arg.pop('ticklen', None) - self.ticklen = ticklen if ticklen is not None else _v + self['ticklen'] = ticklen if ticklen is not None else _v _v = arg.pop('tickmode', None) - self.tickmode = tickmode if tickmode is not None else _v + self['tickmode'] = tickmode if tickmode is not None else _v _v = arg.pop('tickprefix', None) - self.tickprefix = tickprefix if tickprefix is not None else _v + self['tickprefix'] = tickprefix if tickprefix is not None else _v _v = arg.pop('ticks', None) - self.ticks = ticks if ticks is not None else _v + self['ticks'] = ticks if ticks is not None else _v _v = arg.pop('ticksuffix', None) - self.ticksuffix = ticksuffix if ticksuffix is not None else _v + self['ticksuffix'] = ticksuffix if ticksuffix is not None else _v _v = arg.pop('ticktext', None) - self.ticktext = ticktext if ticktext is not None else _v + self['ticktext'] = ticktext if ticktext is not None else _v _v = arg.pop('ticktextsrc', None) - self.ticktextsrc = ticktextsrc if ticktextsrc is not None else _v + self['ticktextsrc'] = ticktextsrc if ticktextsrc is not None else _v _v = arg.pop('tickvals', None) - self.tickvals = tickvals if tickvals is not None else _v + self['tickvals'] = tickvals if tickvals is not None else _v _v = arg.pop('tickvalssrc', None) - self.tickvalssrc = tickvalssrc if tickvalssrc is not None else _v + self['tickvalssrc'] = tickvalssrc if tickvalssrc is not None else _v _v = arg.pop('tickwidth', None) - self.tickwidth = tickwidth if tickwidth is not None else _v + self['tickwidth'] = tickwidth if tickwidth is not None else _v _v = arg.pop('title', None) - self.title = title if title is not None else _v + self['title'] = title if title is not None else _v _v = arg.pop('titlefont', None) - self.titlefont = titlefont if titlefont is not None else _v + self['titlefont'] = titlefont if titlefont is not None else _v _v = arg.pop('type', None) - self.type = type if type is not None else _v + self['type'] = type if type is not None else _v _v = arg.pop('visible', None) - self.visible = visible if visible is not None else _v + self['visible'] = visible if visible is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/layout/polar/angularaxis/_tickfont.py b/plotly/graph_objs/layout/polar/angularaxis/_tickfont.py index e949929bf5e..2ee8edb968b 100644 --- a/plotly/graph_objs/layout/polar/angularaxis/_tickfont.py +++ b/plotly/graph_objs/layout/polar/angularaxis/_tickfont.py @@ -209,11 +209,11 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('family', None) - self.family = family if family is not None else _v + self['family'] = family if family is not None else _v _v = arg.pop('size', None) - self.size = size if size is not None else _v + self['size'] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/layout/polar/angularaxis/_tickformatstop.py b/plotly/graph_objs/layout/polar/angularaxis/_tickformatstop.py index 881f030df85..84523550ff9 100644 --- a/plotly/graph_objs/layout/polar/angularaxis/_tickformatstop.py +++ b/plotly/graph_objs/layout/polar/angularaxis/_tickformatstop.py @@ -260,15 +260,16 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('dtickrange', None) - self.dtickrange = dtickrange if dtickrange is not None else _v + self['dtickrange'] = dtickrange if dtickrange is not None else _v _v = arg.pop('enabled', None) - self.enabled = enabled if enabled is not None else _v + self['enabled'] = enabled if enabled is not None else _v _v = arg.pop('name', None) - self.name = name if name is not None else _v + self['name'] = name if name is not None else _v _v = arg.pop('templateitemname', None) - self.templateitemname = templateitemname if templateitemname is not None else _v + self['templateitemname' + ] = templateitemname if templateitemname is not None else _v _v = arg.pop('value', None) - self.value = value if value is not None else _v + self['value'] = value if value is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/layout/polar/radialaxis/_tickfont.py b/plotly/graph_objs/layout/polar/radialaxis/_tickfont.py index f23f75f6430..01e3bd6c5f4 100644 --- a/plotly/graph_objs/layout/polar/radialaxis/_tickfont.py +++ b/plotly/graph_objs/layout/polar/radialaxis/_tickfont.py @@ -209,11 +209,11 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('family', None) - self.family = family if family is not None else _v + self['family'] = family if family is not None else _v _v = arg.pop('size', None) - self.size = size if size is not None else _v + self['size'] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/layout/polar/radialaxis/_tickformatstop.py b/plotly/graph_objs/layout/polar/radialaxis/_tickformatstop.py index 742647c8f12..25e7507b01d 100644 --- a/plotly/graph_objs/layout/polar/radialaxis/_tickformatstop.py +++ b/plotly/graph_objs/layout/polar/radialaxis/_tickformatstop.py @@ -260,15 +260,16 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('dtickrange', None) - self.dtickrange = dtickrange if dtickrange is not None else _v + self['dtickrange'] = dtickrange if dtickrange is not None else _v _v = arg.pop('enabled', None) - self.enabled = enabled if enabled is not None else _v + self['enabled'] = enabled if enabled is not None else _v _v = arg.pop('name', None) - self.name = name if name is not None else _v + self['name'] = name if name is not None else _v _v = arg.pop('templateitemname', None) - self.templateitemname = templateitemname if templateitemname is not None else _v + self['templateitemname' + ] = templateitemname if templateitemname is not None else _v _v = arg.pop('value', None) - self.value = value if value is not None else _v + self['value'] = value if value is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/layout/polar/radialaxis/_titlefont.py b/plotly/graph_objs/layout/polar/radialaxis/_titlefont.py index 793dd4880f2..42c5c702723 100644 --- a/plotly/graph_objs/layout/polar/radialaxis/_titlefont.py +++ b/plotly/graph_objs/layout/polar/radialaxis/_titlefont.py @@ -209,11 +209,11 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('family', None) - self.family = family if family is not None else _v + self['family'] = family if family is not None else _v _v = arg.pop('size', None) - self.size = size if size is not None else _v + self['size'] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/layout/scene/_annotation.py b/plotly/graph_objs/layout/scene/_annotation.py index c5e99b9ed03..70546a65d55 100644 --- a/plotly/graph_objs/layout/scene/_annotation.py +++ b/plotly/graph_objs/layout/scene/_annotation.py @@ -1432,79 +1432,84 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('align', None) - self.align = align if align is not None else _v + self['align'] = align if align is not None else _v _v = arg.pop('arrowcolor', None) - self.arrowcolor = arrowcolor if arrowcolor is not None else _v + self['arrowcolor'] = arrowcolor if arrowcolor is not None else _v _v = arg.pop('arrowhead', None) - self.arrowhead = arrowhead if arrowhead is not None else _v + self['arrowhead'] = arrowhead if arrowhead is not None else _v _v = arg.pop('arrowside', None) - self.arrowside = arrowside if arrowside is not None else _v + self['arrowside'] = arrowside if arrowside is not None else _v _v = arg.pop('arrowsize', None) - self.arrowsize = arrowsize if arrowsize is not None else _v + self['arrowsize'] = arrowsize if arrowsize is not None else _v _v = arg.pop('arrowwidth', None) - self.arrowwidth = arrowwidth if arrowwidth is not None else _v + self['arrowwidth'] = arrowwidth if arrowwidth is not None else _v _v = arg.pop('ax', None) - self.ax = ax if ax is not None else _v + self['ax'] = ax if ax is not None else _v _v = arg.pop('ay', None) - self.ay = ay if ay is not None else _v + self['ay'] = ay if ay is not None else _v _v = arg.pop('bgcolor', None) - self.bgcolor = bgcolor if bgcolor is not None else _v + self['bgcolor'] = bgcolor if bgcolor is not None else _v _v = arg.pop('bordercolor', None) - self.bordercolor = bordercolor if bordercolor is not None else _v + self['bordercolor'] = bordercolor if bordercolor is not None else _v _v = arg.pop('borderpad', None) - self.borderpad = borderpad if borderpad is not None else _v + self['borderpad'] = borderpad if borderpad is not None else _v _v = arg.pop('borderwidth', None) - self.borderwidth = borderwidth if borderwidth is not None else _v + self['borderwidth'] = borderwidth if borderwidth is not None else _v _v = arg.pop('captureevents', None) - self.captureevents = captureevents if captureevents is not None else _v + self['captureevents' + ] = captureevents if captureevents is not None else _v _v = arg.pop('font', None) - self.font = font if font is not None else _v + self['font'] = font if font is not None else _v _v = arg.pop('height', None) - self.height = height if height is not None else _v + self['height'] = height if height is not None else _v _v = arg.pop('hoverlabel', None) - self.hoverlabel = hoverlabel if hoverlabel is not None else _v + self['hoverlabel'] = hoverlabel if hoverlabel is not None else _v _v = arg.pop('hovertext', None) - self.hovertext = hovertext if hovertext is not None else _v + self['hovertext'] = hovertext if hovertext is not None else _v _v = arg.pop('name', None) - self.name = name if name is not None else _v + self['name'] = name if name is not None else _v _v = arg.pop('opacity', None) - self.opacity = opacity if opacity is not None else _v + self['opacity'] = opacity if opacity is not None else _v _v = arg.pop('showarrow', None) - self.showarrow = showarrow if showarrow is not None else _v + self['showarrow'] = showarrow if showarrow is not None else _v _v = arg.pop('standoff', None) - self.standoff = standoff if standoff is not None else _v + self['standoff'] = standoff if standoff is not None else _v _v = arg.pop('startarrowhead', None) - self.startarrowhead = startarrowhead if startarrowhead is not None else _v + self['startarrowhead' + ] = startarrowhead if startarrowhead is not None else _v _v = arg.pop('startarrowsize', None) - self.startarrowsize = startarrowsize if startarrowsize is not None else _v + self['startarrowsize' + ] = startarrowsize if startarrowsize is not None else _v _v = arg.pop('startstandoff', None) - self.startstandoff = startstandoff if startstandoff is not None else _v + self['startstandoff' + ] = startstandoff if startstandoff is not None else _v _v = arg.pop('templateitemname', None) - self.templateitemname = templateitemname if templateitemname is not None else _v + self['templateitemname' + ] = templateitemname if templateitemname is not None else _v _v = arg.pop('text', None) - self.text = text if text is not None else _v + self['text'] = text if text is not None else _v _v = arg.pop('textangle', None) - self.textangle = textangle if textangle is not None else _v + self['textangle'] = textangle if textangle is not None else _v _v = arg.pop('valign', None) - self.valign = valign if valign is not None else _v + self['valign'] = valign if valign is not None else _v _v = arg.pop('visible', None) - self.visible = visible if visible is not None else _v + self['visible'] = visible if visible is not None else _v _v = arg.pop('width', None) - self.width = width if width is not None else _v + self['width'] = width if width is not None else _v _v = arg.pop('x', None) - self.x = x if x is not None else _v + self['x'] = x if x is not None else _v _v = arg.pop('xanchor', None) - self.xanchor = xanchor if xanchor is not None else _v + self['xanchor'] = xanchor if xanchor is not None else _v _v = arg.pop('xshift', None) - self.xshift = xshift if xshift is not None else _v + self['xshift'] = xshift if xshift is not None else _v _v = arg.pop('y', None) - self.y = y if y is not None else _v + self['y'] = y if y is not None else _v _v = arg.pop('yanchor', None) - self.yanchor = yanchor if yanchor is not None else _v + self['yanchor'] = yanchor if yanchor is not None else _v _v = arg.pop('yshift', None) - self.yshift = yshift if yshift is not None else _v + self['yshift'] = yshift if yshift is not None else _v _v = arg.pop('z', None) - self.z = z if z is not None else _v + self['z'] = z if z is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/layout/scene/_aspectratio.py b/plotly/graph_objs/layout/scene/_aspectratio.py index 740bbb35a45..673704cbe6a 100644 --- a/plotly/graph_objs/layout/scene/_aspectratio.py +++ b/plotly/graph_objs/layout/scene/_aspectratio.py @@ -133,11 +133,11 @@ def __init__(self, arg=None, x=None, y=None, z=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('x', None) - self.x = x if x is not None else _v + self['x'] = x if x is not None else _v _v = arg.pop('y', None) - self.y = y if y is not None else _v + self['y'] = y if y is not None else _v _v = arg.pop('z', None) - self.z = z if z is not None else _v + self['z'] = z if z is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/layout/scene/_camera.py b/plotly/graph_objs/layout/scene/_camera.py index fcf2ea93ff2..339ff93d2a2 100644 --- a/plotly/graph_objs/layout/scene/_camera.py +++ b/plotly/graph_objs/layout/scene/_camera.py @@ -190,11 +190,11 @@ def __init__(self, arg=None, center=None, eye=None, up=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('center', None) - self.center = center if center is not None else _v + self['center'] = center if center is not None else _v _v = arg.pop('eye', None) - self.eye = eye if eye is not None else _v + self['eye'] = eye if eye is not None else _v _v = arg.pop('up', None) - self.up = up if up is not None else _v + self['up'] = up if up is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/layout/scene/_domain.py b/plotly/graph_objs/layout/scene/_domain.py index f72c3deb6a6..6c0c453ffd0 100644 --- a/plotly/graph_objs/layout/scene/_domain.py +++ b/plotly/graph_objs/layout/scene/_domain.py @@ -185,13 +185,13 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('column', None) - self.column = column if column is not None else _v + self['column'] = column if column is not None else _v _v = arg.pop('row', None) - self.row = row if row is not None else _v + self['row'] = row if row is not None else _v _v = arg.pop('x', None) - self.x = x if x is not None else _v + self['x'] = x if x is not None else _v _v = arg.pop('y', None) - self.y = y if y is not None else _v + self['y'] = y if y is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/layout/scene/_xaxis.py b/plotly/graph_objs/layout/scene/_xaxis.py index f8ed1b73eb9..1affcf15f50 100644 --- a/plotly/graph_objs/layout/scene/_xaxis.py +++ b/plotly/graph_objs/layout/scene/_xaxis.py @@ -2235,113 +2235,128 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('autorange', None) - self.autorange = autorange if autorange is not None else _v + self['autorange'] = autorange if autorange is not None else _v _v = arg.pop('backgroundcolor', None) - self.backgroundcolor = backgroundcolor if backgroundcolor is not None else _v + self['backgroundcolor' + ] = backgroundcolor if backgroundcolor is not None else _v _v = arg.pop('calendar', None) - self.calendar = calendar if calendar is not None else _v + self['calendar'] = calendar if calendar is not None else _v _v = arg.pop('categoryarray', None) - self.categoryarray = categoryarray if categoryarray is not None else _v + self['categoryarray' + ] = categoryarray if categoryarray is not None else _v _v = arg.pop('categoryarraysrc', None) - self.categoryarraysrc = categoryarraysrc if categoryarraysrc is not None else _v + self['categoryarraysrc' + ] = categoryarraysrc if categoryarraysrc is not None else _v _v = arg.pop('categoryorder', None) - self.categoryorder = categoryorder if categoryorder is not None else _v + self['categoryorder' + ] = categoryorder if categoryorder is not None else _v _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('dtick', None) - self.dtick = dtick if dtick is not None else _v + self['dtick'] = dtick if dtick is not None else _v _v = arg.pop('exponentformat', None) - self.exponentformat = exponentformat if exponentformat is not None else _v + self['exponentformat' + ] = exponentformat if exponentformat is not None else _v _v = arg.pop('gridcolor', None) - self.gridcolor = gridcolor if gridcolor is not None else _v + self['gridcolor'] = gridcolor if gridcolor is not None else _v _v = arg.pop('gridwidth', None) - self.gridwidth = gridwidth if gridwidth is not None else _v + self['gridwidth'] = gridwidth if gridwidth is not None else _v _v = arg.pop('hoverformat', None) - self.hoverformat = hoverformat if hoverformat is not None else _v + self['hoverformat'] = hoverformat if hoverformat is not None else _v _v = arg.pop('linecolor', None) - self.linecolor = linecolor if linecolor is not None else _v + self['linecolor'] = linecolor if linecolor is not None else _v _v = arg.pop('linewidth', None) - self.linewidth = linewidth if linewidth is not None else _v + self['linewidth'] = linewidth if linewidth is not None else _v _v = arg.pop('mirror', None) - self.mirror = mirror if mirror is not None else _v + self['mirror'] = mirror if mirror is not None else _v _v = arg.pop('nticks', None) - self.nticks = nticks if nticks is not None else _v + self['nticks'] = nticks if nticks is not None else _v _v = arg.pop('range', None) - self.range = range if range is not None else _v + self['range'] = range if range is not None else _v _v = arg.pop('rangemode', None) - self.rangemode = rangemode if rangemode is not None else _v + self['rangemode'] = rangemode if rangemode is not None else _v _v = arg.pop('separatethousands', None) - self.separatethousands = separatethousands if separatethousands is not None else _v + self['separatethousands' + ] = separatethousands if separatethousands is not None else _v _v = arg.pop('showaxeslabels', None) - self.showaxeslabels = showaxeslabels if showaxeslabels is not None else _v + self['showaxeslabels' + ] = showaxeslabels if showaxeslabels is not None else _v _v = arg.pop('showbackground', None) - self.showbackground = showbackground if showbackground is not None else _v + self['showbackground' + ] = showbackground if showbackground is not None else _v _v = arg.pop('showexponent', None) - self.showexponent = showexponent if showexponent is not None else _v + self['showexponent'] = showexponent if showexponent is not None else _v _v = arg.pop('showgrid', None) - self.showgrid = showgrid if showgrid is not None else _v + self['showgrid'] = showgrid if showgrid is not None else _v _v = arg.pop('showline', None) - self.showline = showline if showline is not None else _v + self['showline'] = showline if showline is not None else _v _v = arg.pop('showspikes', None) - self.showspikes = showspikes if showspikes is not None else _v + self['showspikes'] = showspikes if showspikes is not None else _v _v = arg.pop('showticklabels', None) - self.showticklabels = showticklabels if showticklabels is not None else _v + self['showticklabels' + ] = showticklabels if showticklabels is not None else _v _v = arg.pop('showtickprefix', None) - self.showtickprefix = showtickprefix if showtickprefix is not None else _v + self['showtickprefix' + ] = showtickprefix if showtickprefix is not None else _v _v = arg.pop('showticksuffix', None) - self.showticksuffix = showticksuffix if showticksuffix is not None else _v + self['showticksuffix' + ] = showticksuffix if showticksuffix is not None else _v _v = arg.pop('spikecolor', None) - self.spikecolor = spikecolor if spikecolor is not None else _v + self['spikecolor'] = spikecolor if spikecolor is not None else _v _v = arg.pop('spikesides', None) - self.spikesides = spikesides if spikesides is not None else _v + self['spikesides'] = spikesides if spikesides is not None else _v _v = arg.pop('spikethickness', None) - self.spikethickness = spikethickness if spikethickness is not None else _v + self['spikethickness' + ] = spikethickness if spikethickness is not None else _v _v = arg.pop('tick0', None) - self.tick0 = tick0 if tick0 is not None else _v + self['tick0'] = tick0 if tick0 is not None else _v _v = arg.pop('tickangle', None) - self.tickangle = tickangle if tickangle is not None else _v + self['tickangle'] = tickangle if tickangle is not None else _v _v = arg.pop('tickcolor', None) - self.tickcolor = tickcolor if tickcolor is not None else _v + self['tickcolor'] = tickcolor if tickcolor is not None else _v _v = arg.pop('tickfont', None) - self.tickfont = tickfont if tickfont is not None else _v + self['tickfont'] = tickfont if tickfont is not None else _v _v = arg.pop('tickformat', None) - self.tickformat = tickformat if tickformat is not None else _v + self['tickformat'] = tickformat if tickformat is not None else _v _v = arg.pop('tickformatstops', None) - self.tickformatstops = tickformatstops if tickformatstops is not None else _v + self['tickformatstops' + ] = tickformatstops if tickformatstops is not None else _v _v = arg.pop('ticklen', None) - self.ticklen = ticklen if ticklen is not None else _v + self['ticklen'] = ticklen if ticklen is not None else _v _v = arg.pop('tickmode', None) - self.tickmode = tickmode if tickmode is not None else _v + self['tickmode'] = tickmode if tickmode is not None else _v _v = arg.pop('tickprefix', None) - self.tickprefix = tickprefix if tickprefix is not None else _v + self['tickprefix'] = tickprefix if tickprefix is not None else _v _v = arg.pop('ticks', None) - self.ticks = ticks if ticks is not None else _v + self['ticks'] = ticks if ticks is not None else _v _v = arg.pop('ticksuffix', None) - self.ticksuffix = ticksuffix if ticksuffix is not None else _v + self['ticksuffix'] = ticksuffix if ticksuffix is not None else _v _v = arg.pop('ticktext', None) - self.ticktext = ticktext if ticktext is not None else _v + self['ticktext'] = ticktext if ticktext is not None else _v _v = arg.pop('ticktextsrc', None) - self.ticktextsrc = ticktextsrc if ticktextsrc is not None else _v + self['ticktextsrc'] = ticktextsrc if ticktextsrc is not None else _v _v = arg.pop('tickvals', None) - self.tickvals = tickvals if tickvals is not None else _v + self['tickvals'] = tickvals if tickvals is not None else _v _v = arg.pop('tickvalssrc', None) - self.tickvalssrc = tickvalssrc if tickvalssrc is not None else _v + self['tickvalssrc'] = tickvalssrc if tickvalssrc is not None else _v _v = arg.pop('tickwidth', None) - self.tickwidth = tickwidth if tickwidth is not None else _v + self['tickwidth'] = tickwidth if tickwidth is not None else _v _v = arg.pop('title', None) - self.title = title if title is not None else _v + self['title'] = title if title is not None else _v _v = arg.pop('titlefont', None) - self.titlefont = titlefont if titlefont is not None else _v + self['titlefont'] = titlefont if titlefont is not None else _v _v = arg.pop('type', None) - self.type = type if type is not None else _v + self['type'] = type if type is not None else _v _v = arg.pop('visible', None) - self.visible = visible if visible is not None else _v + self['visible'] = visible if visible is not None else _v _v = arg.pop('zeroline', None) - self.zeroline = zeroline if zeroline is not None else _v + self['zeroline'] = zeroline if zeroline is not None else _v _v = arg.pop('zerolinecolor', None) - self.zerolinecolor = zerolinecolor if zerolinecolor is not None else _v + self['zerolinecolor' + ] = zerolinecolor if zerolinecolor is not None else _v _v = arg.pop('zerolinewidth', None) - self.zerolinewidth = zerolinewidth if zerolinewidth is not None else _v + self['zerolinewidth' + ] = zerolinewidth if zerolinewidth is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/layout/scene/_yaxis.py b/plotly/graph_objs/layout/scene/_yaxis.py index 475102fa374..aa171f8ec61 100644 --- a/plotly/graph_objs/layout/scene/_yaxis.py +++ b/plotly/graph_objs/layout/scene/_yaxis.py @@ -2235,113 +2235,128 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('autorange', None) - self.autorange = autorange if autorange is not None else _v + self['autorange'] = autorange if autorange is not None else _v _v = arg.pop('backgroundcolor', None) - self.backgroundcolor = backgroundcolor if backgroundcolor is not None else _v + self['backgroundcolor' + ] = backgroundcolor if backgroundcolor is not None else _v _v = arg.pop('calendar', None) - self.calendar = calendar if calendar is not None else _v + self['calendar'] = calendar if calendar is not None else _v _v = arg.pop('categoryarray', None) - self.categoryarray = categoryarray if categoryarray is not None else _v + self['categoryarray' + ] = categoryarray if categoryarray is not None else _v _v = arg.pop('categoryarraysrc', None) - self.categoryarraysrc = categoryarraysrc if categoryarraysrc is not None else _v + self['categoryarraysrc' + ] = categoryarraysrc if categoryarraysrc is not None else _v _v = arg.pop('categoryorder', None) - self.categoryorder = categoryorder if categoryorder is not None else _v + self['categoryorder' + ] = categoryorder if categoryorder is not None else _v _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('dtick', None) - self.dtick = dtick if dtick is not None else _v + self['dtick'] = dtick if dtick is not None else _v _v = arg.pop('exponentformat', None) - self.exponentformat = exponentformat if exponentformat is not None else _v + self['exponentformat' + ] = exponentformat if exponentformat is not None else _v _v = arg.pop('gridcolor', None) - self.gridcolor = gridcolor if gridcolor is not None else _v + self['gridcolor'] = gridcolor if gridcolor is not None else _v _v = arg.pop('gridwidth', None) - self.gridwidth = gridwidth if gridwidth is not None else _v + self['gridwidth'] = gridwidth if gridwidth is not None else _v _v = arg.pop('hoverformat', None) - self.hoverformat = hoverformat if hoverformat is not None else _v + self['hoverformat'] = hoverformat if hoverformat is not None else _v _v = arg.pop('linecolor', None) - self.linecolor = linecolor if linecolor is not None else _v + self['linecolor'] = linecolor if linecolor is not None else _v _v = arg.pop('linewidth', None) - self.linewidth = linewidth if linewidth is not None else _v + self['linewidth'] = linewidth if linewidth is not None else _v _v = arg.pop('mirror', None) - self.mirror = mirror if mirror is not None else _v + self['mirror'] = mirror if mirror is not None else _v _v = arg.pop('nticks', None) - self.nticks = nticks if nticks is not None else _v + self['nticks'] = nticks if nticks is not None else _v _v = arg.pop('range', None) - self.range = range if range is not None else _v + self['range'] = range if range is not None else _v _v = arg.pop('rangemode', None) - self.rangemode = rangemode if rangemode is not None else _v + self['rangemode'] = rangemode if rangemode is not None else _v _v = arg.pop('separatethousands', None) - self.separatethousands = separatethousands if separatethousands is not None else _v + self['separatethousands' + ] = separatethousands if separatethousands is not None else _v _v = arg.pop('showaxeslabels', None) - self.showaxeslabels = showaxeslabels if showaxeslabels is not None else _v + self['showaxeslabels' + ] = showaxeslabels if showaxeslabels is not None else _v _v = arg.pop('showbackground', None) - self.showbackground = showbackground if showbackground is not None else _v + self['showbackground' + ] = showbackground if showbackground is not None else _v _v = arg.pop('showexponent', None) - self.showexponent = showexponent if showexponent is not None else _v + self['showexponent'] = showexponent if showexponent is not None else _v _v = arg.pop('showgrid', None) - self.showgrid = showgrid if showgrid is not None else _v + self['showgrid'] = showgrid if showgrid is not None else _v _v = arg.pop('showline', None) - self.showline = showline if showline is not None else _v + self['showline'] = showline if showline is not None else _v _v = arg.pop('showspikes', None) - self.showspikes = showspikes if showspikes is not None else _v + self['showspikes'] = showspikes if showspikes is not None else _v _v = arg.pop('showticklabels', None) - self.showticklabels = showticklabels if showticklabels is not None else _v + self['showticklabels' + ] = showticklabels if showticklabels is not None else _v _v = arg.pop('showtickprefix', None) - self.showtickprefix = showtickprefix if showtickprefix is not None else _v + self['showtickprefix' + ] = showtickprefix if showtickprefix is not None else _v _v = arg.pop('showticksuffix', None) - self.showticksuffix = showticksuffix if showticksuffix is not None else _v + self['showticksuffix' + ] = showticksuffix if showticksuffix is not None else _v _v = arg.pop('spikecolor', None) - self.spikecolor = spikecolor if spikecolor is not None else _v + self['spikecolor'] = spikecolor if spikecolor is not None else _v _v = arg.pop('spikesides', None) - self.spikesides = spikesides if spikesides is not None else _v + self['spikesides'] = spikesides if spikesides is not None else _v _v = arg.pop('spikethickness', None) - self.spikethickness = spikethickness if spikethickness is not None else _v + self['spikethickness' + ] = spikethickness if spikethickness is not None else _v _v = arg.pop('tick0', None) - self.tick0 = tick0 if tick0 is not None else _v + self['tick0'] = tick0 if tick0 is not None else _v _v = arg.pop('tickangle', None) - self.tickangle = tickangle if tickangle is not None else _v + self['tickangle'] = tickangle if tickangle is not None else _v _v = arg.pop('tickcolor', None) - self.tickcolor = tickcolor if tickcolor is not None else _v + self['tickcolor'] = tickcolor if tickcolor is not None else _v _v = arg.pop('tickfont', None) - self.tickfont = tickfont if tickfont is not None else _v + self['tickfont'] = tickfont if tickfont is not None else _v _v = arg.pop('tickformat', None) - self.tickformat = tickformat if tickformat is not None else _v + self['tickformat'] = tickformat if tickformat is not None else _v _v = arg.pop('tickformatstops', None) - self.tickformatstops = tickformatstops if tickformatstops is not None else _v + self['tickformatstops' + ] = tickformatstops if tickformatstops is not None else _v _v = arg.pop('ticklen', None) - self.ticklen = ticklen if ticklen is not None else _v + self['ticklen'] = ticklen if ticklen is not None else _v _v = arg.pop('tickmode', None) - self.tickmode = tickmode if tickmode is not None else _v + self['tickmode'] = tickmode if tickmode is not None else _v _v = arg.pop('tickprefix', None) - self.tickprefix = tickprefix if tickprefix is not None else _v + self['tickprefix'] = tickprefix if tickprefix is not None else _v _v = arg.pop('ticks', None) - self.ticks = ticks if ticks is not None else _v + self['ticks'] = ticks if ticks is not None else _v _v = arg.pop('ticksuffix', None) - self.ticksuffix = ticksuffix if ticksuffix is not None else _v + self['ticksuffix'] = ticksuffix if ticksuffix is not None else _v _v = arg.pop('ticktext', None) - self.ticktext = ticktext if ticktext is not None else _v + self['ticktext'] = ticktext if ticktext is not None else _v _v = arg.pop('ticktextsrc', None) - self.ticktextsrc = ticktextsrc if ticktextsrc is not None else _v + self['ticktextsrc'] = ticktextsrc if ticktextsrc is not None else _v _v = arg.pop('tickvals', None) - self.tickvals = tickvals if tickvals is not None else _v + self['tickvals'] = tickvals if tickvals is not None else _v _v = arg.pop('tickvalssrc', None) - self.tickvalssrc = tickvalssrc if tickvalssrc is not None else _v + self['tickvalssrc'] = tickvalssrc if tickvalssrc is not None else _v _v = arg.pop('tickwidth', None) - self.tickwidth = tickwidth if tickwidth is not None else _v + self['tickwidth'] = tickwidth if tickwidth is not None else _v _v = arg.pop('title', None) - self.title = title if title is not None else _v + self['title'] = title if title is not None else _v _v = arg.pop('titlefont', None) - self.titlefont = titlefont if titlefont is not None else _v + self['titlefont'] = titlefont if titlefont is not None else _v _v = arg.pop('type', None) - self.type = type if type is not None else _v + self['type'] = type if type is not None else _v _v = arg.pop('visible', None) - self.visible = visible if visible is not None else _v + self['visible'] = visible if visible is not None else _v _v = arg.pop('zeroline', None) - self.zeroline = zeroline if zeroline is not None else _v + self['zeroline'] = zeroline if zeroline is not None else _v _v = arg.pop('zerolinecolor', None) - self.zerolinecolor = zerolinecolor if zerolinecolor is not None else _v + self['zerolinecolor' + ] = zerolinecolor if zerolinecolor is not None else _v _v = arg.pop('zerolinewidth', None) - self.zerolinewidth = zerolinewidth if zerolinewidth is not None else _v + self['zerolinewidth' + ] = zerolinewidth if zerolinewidth is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/layout/scene/_zaxis.py b/plotly/graph_objs/layout/scene/_zaxis.py index 7fa0d47341f..e993992ae2b 100644 --- a/plotly/graph_objs/layout/scene/_zaxis.py +++ b/plotly/graph_objs/layout/scene/_zaxis.py @@ -2235,113 +2235,128 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('autorange', None) - self.autorange = autorange if autorange is not None else _v + self['autorange'] = autorange if autorange is not None else _v _v = arg.pop('backgroundcolor', None) - self.backgroundcolor = backgroundcolor if backgroundcolor is not None else _v + self['backgroundcolor' + ] = backgroundcolor if backgroundcolor is not None else _v _v = arg.pop('calendar', None) - self.calendar = calendar if calendar is not None else _v + self['calendar'] = calendar if calendar is not None else _v _v = arg.pop('categoryarray', None) - self.categoryarray = categoryarray if categoryarray is not None else _v + self['categoryarray' + ] = categoryarray if categoryarray is not None else _v _v = arg.pop('categoryarraysrc', None) - self.categoryarraysrc = categoryarraysrc if categoryarraysrc is not None else _v + self['categoryarraysrc' + ] = categoryarraysrc if categoryarraysrc is not None else _v _v = arg.pop('categoryorder', None) - self.categoryorder = categoryorder if categoryorder is not None else _v + self['categoryorder' + ] = categoryorder if categoryorder is not None else _v _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('dtick', None) - self.dtick = dtick if dtick is not None else _v + self['dtick'] = dtick if dtick is not None else _v _v = arg.pop('exponentformat', None) - self.exponentformat = exponentformat if exponentformat is not None else _v + self['exponentformat' + ] = exponentformat if exponentformat is not None else _v _v = arg.pop('gridcolor', None) - self.gridcolor = gridcolor if gridcolor is not None else _v + self['gridcolor'] = gridcolor if gridcolor is not None else _v _v = arg.pop('gridwidth', None) - self.gridwidth = gridwidth if gridwidth is not None else _v + self['gridwidth'] = gridwidth if gridwidth is not None else _v _v = arg.pop('hoverformat', None) - self.hoverformat = hoverformat if hoverformat is not None else _v + self['hoverformat'] = hoverformat if hoverformat is not None else _v _v = arg.pop('linecolor', None) - self.linecolor = linecolor if linecolor is not None else _v + self['linecolor'] = linecolor if linecolor is not None else _v _v = arg.pop('linewidth', None) - self.linewidth = linewidth if linewidth is not None else _v + self['linewidth'] = linewidth if linewidth is not None else _v _v = arg.pop('mirror', None) - self.mirror = mirror if mirror is not None else _v + self['mirror'] = mirror if mirror is not None else _v _v = arg.pop('nticks', None) - self.nticks = nticks if nticks is not None else _v + self['nticks'] = nticks if nticks is not None else _v _v = arg.pop('range', None) - self.range = range if range is not None else _v + self['range'] = range if range is not None else _v _v = arg.pop('rangemode', None) - self.rangemode = rangemode if rangemode is not None else _v + self['rangemode'] = rangemode if rangemode is not None else _v _v = arg.pop('separatethousands', None) - self.separatethousands = separatethousands if separatethousands is not None else _v + self['separatethousands' + ] = separatethousands if separatethousands is not None else _v _v = arg.pop('showaxeslabels', None) - self.showaxeslabels = showaxeslabels if showaxeslabels is not None else _v + self['showaxeslabels' + ] = showaxeslabels if showaxeslabels is not None else _v _v = arg.pop('showbackground', None) - self.showbackground = showbackground if showbackground is not None else _v + self['showbackground' + ] = showbackground if showbackground is not None else _v _v = arg.pop('showexponent', None) - self.showexponent = showexponent if showexponent is not None else _v + self['showexponent'] = showexponent if showexponent is not None else _v _v = arg.pop('showgrid', None) - self.showgrid = showgrid if showgrid is not None else _v + self['showgrid'] = showgrid if showgrid is not None else _v _v = arg.pop('showline', None) - self.showline = showline if showline is not None else _v + self['showline'] = showline if showline is not None else _v _v = arg.pop('showspikes', None) - self.showspikes = showspikes if showspikes is not None else _v + self['showspikes'] = showspikes if showspikes is not None else _v _v = arg.pop('showticklabels', None) - self.showticklabels = showticklabels if showticklabels is not None else _v + self['showticklabels' + ] = showticklabels if showticklabels is not None else _v _v = arg.pop('showtickprefix', None) - self.showtickprefix = showtickprefix if showtickprefix is not None else _v + self['showtickprefix' + ] = showtickprefix if showtickprefix is not None else _v _v = arg.pop('showticksuffix', None) - self.showticksuffix = showticksuffix if showticksuffix is not None else _v + self['showticksuffix' + ] = showticksuffix if showticksuffix is not None else _v _v = arg.pop('spikecolor', None) - self.spikecolor = spikecolor if spikecolor is not None else _v + self['spikecolor'] = spikecolor if spikecolor is not None else _v _v = arg.pop('spikesides', None) - self.spikesides = spikesides if spikesides is not None else _v + self['spikesides'] = spikesides if spikesides is not None else _v _v = arg.pop('spikethickness', None) - self.spikethickness = spikethickness if spikethickness is not None else _v + self['spikethickness' + ] = spikethickness if spikethickness is not None else _v _v = arg.pop('tick0', None) - self.tick0 = tick0 if tick0 is not None else _v + self['tick0'] = tick0 if tick0 is not None else _v _v = arg.pop('tickangle', None) - self.tickangle = tickangle if tickangle is not None else _v + self['tickangle'] = tickangle if tickangle is not None else _v _v = arg.pop('tickcolor', None) - self.tickcolor = tickcolor if tickcolor is not None else _v + self['tickcolor'] = tickcolor if tickcolor is not None else _v _v = arg.pop('tickfont', None) - self.tickfont = tickfont if tickfont is not None else _v + self['tickfont'] = tickfont if tickfont is not None else _v _v = arg.pop('tickformat', None) - self.tickformat = tickformat if tickformat is not None else _v + self['tickformat'] = tickformat if tickformat is not None else _v _v = arg.pop('tickformatstops', None) - self.tickformatstops = tickformatstops if tickformatstops is not None else _v + self['tickformatstops' + ] = tickformatstops if tickformatstops is not None else _v _v = arg.pop('ticklen', None) - self.ticklen = ticklen if ticklen is not None else _v + self['ticklen'] = ticklen if ticklen is not None else _v _v = arg.pop('tickmode', None) - self.tickmode = tickmode if tickmode is not None else _v + self['tickmode'] = tickmode if tickmode is not None else _v _v = arg.pop('tickprefix', None) - self.tickprefix = tickprefix if tickprefix is not None else _v + self['tickprefix'] = tickprefix if tickprefix is not None else _v _v = arg.pop('ticks', None) - self.ticks = ticks if ticks is not None else _v + self['ticks'] = ticks if ticks is not None else _v _v = arg.pop('ticksuffix', None) - self.ticksuffix = ticksuffix if ticksuffix is not None else _v + self['ticksuffix'] = ticksuffix if ticksuffix is not None else _v _v = arg.pop('ticktext', None) - self.ticktext = ticktext if ticktext is not None else _v + self['ticktext'] = ticktext if ticktext is not None else _v _v = arg.pop('ticktextsrc', None) - self.ticktextsrc = ticktextsrc if ticktextsrc is not None else _v + self['ticktextsrc'] = ticktextsrc if ticktextsrc is not None else _v _v = arg.pop('tickvals', None) - self.tickvals = tickvals if tickvals is not None else _v + self['tickvals'] = tickvals if tickvals is not None else _v _v = arg.pop('tickvalssrc', None) - self.tickvalssrc = tickvalssrc if tickvalssrc is not None else _v + self['tickvalssrc'] = tickvalssrc if tickvalssrc is not None else _v _v = arg.pop('tickwidth', None) - self.tickwidth = tickwidth if tickwidth is not None else _v + self['tickwidth'] = tickwidth if tickwidth is not None else _v _v = arg.pop('title', None) - self.title = title if title is not None else _v + self['title'] = title if title is not None else _v _v = arg.pop('titlefont', None) - self.titlefont = titlefont if titlefont is not None else _v + self['titlefont'] = titlefont if titlefont is not None else _v _v = arg.pop('type', None) - self.type = type if type is not None else _v + self['type'] = type if type is not None else _v _v = arg.pop('visible', None) - self.visible = visible if visible is not None else _v + self['visible'] = visible if visible is not None else _v _v = arg.pop('zeroline', None) - self.zeroline = zeroline if zeroline is not None else _v + self['zeroline'] = zeroline if zeroline is not None else _v _v = arg.pop('zerolinecolor', None) - self.zerolinecolor = zerolinecolor if zerolinecolor is not None else _v + self['zerolinecolor' + ] = zerolinecolor if zerolinecolor is not None else _v _v = arg.pop('zerolinewidth', None) - self.zerolinewidth = zerolinewidth if zerolinewidth is not None else _v + self['zerolinewidth' + ] = zerolinewidth if zerolinewidth is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/layout/scene/annotation/_font.py b/plotly/graph_objs/layout/scene/annotation/_font.py index 002446cfb0f..bf6b6697682 100644 --- a/plotly/graph_objs/layout/scene/annotation/_font.py +++ b/plotly/graph_objs/layout/scene/annotation/_font.py @@ -207,11 +207,11 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('family', None) - self.family = family if family is not None else _v + self['family'] = family if family is not None else _v _v = arg.pop('size', None) - self.size = size if size is not None else _v + self['size'] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/layout/scene/annotation/_hoverlabel.py b/plotly/graph_objs/layout/scene/annotation/_hoverlabel.py index a67594d6e8b..dada8d826f3 100644 --- a/plotly/graph_objs/layout/scene/annotation/_hoverlabel.py +++ b/plotly/graph_objs/layout/scene/annotation/_hoverlabel.py @@ -259,11 +259,11 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('bgcolor', None) - self.bgcolor = bgcolor if bgcolor is not None else _v + self['bgcolor'] = bgcolor if bgcolor is not None else _v _v = arg.pop('bordercolor', None) - self.bordercolor = bordercolor if bordercolor is not None else _v + self['bordercolor'] = bordercolor if bordercolor is not None else _v _v = arg.pop('font', None) - self.font = font if font is not None else _v + self['font'] = font if font is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/layout/scene/annotation/hoverlabel/_font.py b/plotly/graph_objs/layout/scene/annotation/hoverlabel/_font.py index 7e89a2bc199..dc2cbd1025b 100644 --- a/plotly/graph_objs/layout/scene/annotation/hoverlabel/_font.py +++ b/plotly/graph_objs/layout/scene/annotation/hoverlabel/_font.py @@ -210,11 +210,11 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('family', None) - self.family = family if family is not None else _v + self['family'] = family if family is not None else _v _v = arg.pop('size', None) - self.size = size if size is not None else _v + self['size'] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/layout/scene/camera/_center.py b/plotly/graph_objs/layout/scene/camera/_center.py index 5824237a702..3aff521e25f 100644 --- a/plotly/graph_objs/layout/scene/camera/_center.py +++ b/plotly/graph_objs/layout/scene/camera/_center.py @@ -133,11 +133,11 @@ def __init__(self, arg=None, x=None, y=None, z=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('x', None) - self.x = x if x is not None else _v + self['x'] = x if x is not None else _v _v = arg.pop('y', None) - self.y = y if y is not None else _v + self['y'] = y if y is not None else _v _v = arg.pop('z', None) - self.z = z if z is not None else _v + self['z'] = z if z is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/layout/scene/camera/_eye.py b/plotly/graph_objs/layout/scene/camera/_eye.py index 1aed8eb2918..d4c09e151de 100644 --- a/plotly/graph_objs/layout/scene/camera/_eye.py +++ b/plotly/graph_objs/layout/scene/camera/_eye.py @@ -133,11 +133,11 @@ def __init__(self, arg=None, x=None, y=None, z=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('x', None) - self.x = x if x is not None else _v + self['x'] = x if x is not None else _v _v = arg.pop('y', None) - self.y = y if y is not None else _v + self['y'] = y if y is not None else _v _v = arg.pop('z', None) - self.z = z if z is not None else _v + self['z'] = z if z is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/layout/scene/camera/_up.py b/plotly/graph_objs/layout/scene/camera/_up.py index f76b7ecaf11..981282309bb 100644 --- a/plotly/graph_objs/layout/scene/camera/_up.py +++ b/plotly/graph_objs/layout/scene/camera/_up.py @@ -133,11 +133,11 @@ def __init__(self, arg=None, x=None, y=None, z=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('x', None) - self.x = x if x is not None else _v + self['x'] = x if x is not None else _v _v = arg.pop('y', None) - self.y = y if y is not None else _v + self['y'] = y if y is not None else _v _v = arg.pop('z', None) - self.z = z if z is not None else _v + self['z'] = z if z is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/layout/scene/xaxis/_tickfont.py b/plotly/graph_objs/layout/scene/xaxis/_tickfont.py index edadf833b35..3aaa44580cc 100644 --- a/plotly/graph_objs/layout/scene/xaxis/_tickfont.py +++ b/plotly/graph_objs/layout/scene/xaxis/_tickfont.py @@ -209,11 +209,11 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('family', None) - self.family = family if family is not None else _v + self['family'] = family if family is not None else _v _v = arg.pop('size', None) - self.size = size if size is not None else _v + self['size'] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/layout/scene/xaxis/_tickformatstop.py b/plotly/graph_objs/layout/scene/xaxis/_tickformatstop.py index 8b1489fbcfe..8ed03d361f7 100644 --- a/plotly/graph_objs/layout/scene/xaxis/_tickformatstop.py +++ b/plotly/graph_objs/layout/scene/xaxis/_tickformatstop.py @@ -260,15 +260,16 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('dtickrange', None) - self.dtickrange = dtickrange if dtickrange is not None else _v + self['dtickrange'] = dtickrange if dtickrange is not None else _v _v = arg.pop('enabled', None) - self.enabled = enabled if enabled is not None else _v + self['enabled'] = enabled if enabled is not None else _v _v = arg.pop('name', None) - self.name = name if name is not None else _v + self['name'] = name if name is not None else _v _v = arg.pop('templateitemname', None) - self.templateitemname = templateitemname if templateitemname is not None else _v + self['templateitemname' + ] = templateitemname if templateitemname is not None else _v _v = arg.pop('value', None) - self.value = value if value is not None else _v + self['value'] = value if value is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/layout/scene/xaxis/_titlefont.py b/plotly/graph_objs/layout/scene/xaxis/_titlefont.py index 8ddfcdebed0..d9eae7d7ae4 100644 --- a/plotly/graph_objs/layout/scene/xaxis/_titlefont.py +++ b/plotly/graph_objs/layout/scene/xaxis/_titlefont.py @@ -209,11 +209,11 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('family', None) - self.family = family if family is not None else _v + self['family'] = family if family is not None else _v _v = arg.pop('size', None) - self.size = size if size is not None else _v + self['size'] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/layout/scene/yaxis/_tickfont.py b/plotly/graph_objs/layout/scene/yaxis/_tickfont.py index de721e71a55..066e887e3de 100644 --- a/plotly/graph_objs/layout/scene/yaxis/_tickfont.py +++ b/plotly/graph_objs/layout/scene/yaxis/_tickfont.py @@ -209,11 +209,11 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('family', None) - self.family = family if family is not None else _v + self['family'] = family if family is not None else _v _v = arg.pop('size', None) - self.size = size if size is not None else _v + self['size'] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/layout/scene/yaxis/_tickformatstop.py b/plotly/graph_objs/layout/scene/yaxis/_tickformatstop.py index e7d1972b033..1584ec60fa1 100644 --- a/plotly/graph_objs/layout/scene/yaxis/_tickformatstop.py +++ b/plotly/graph_objs/layout/scene/yaxis/_tickformatstop.py @@ -260,15 +260,16 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('dtickrange', None) - self.dtickrange = dtickrange if dtickrange is not None else _v + self['dtickrange'] = dtickrange if dtickrange is not None else _v _v = arg.pop('enabled', None) - self.enabled = enabled if enabled is not None else _v + self['enabled'] = enabled if enabled is not None else _v _v = arg.pop('name', None) - self.name = name if name is not None else _v + self['name'] = name if name is not None else _v _v = arg.pop('templateitemname', None) - self.templateitemname = templateitemname if templateitemname is not None else _v + self['templateitemname' + ] = templateitemname if templateitemname is not None else _v _v = arg.pop('value', None) - self.value = value if value is not None else _v + self['value'] = value if value is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/layout/scene/yaxis/_titlefont.py b/plotly/graph_objs/layout/scene/yaxis/_titlefont.py index 84f23fd69c5..f6731097582 100644 --- a/plotly/graph_objs/layout/scene/yaxis/_titlefont.py +++ b/plotly/graph_objs/layout/scene/yaxis/_titlefont.py @@ -209,11 +209,11 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('family', None) - self.family = family if family is not None else _v + self['family'] = family if family is not None else _v _v = arg.pop('size', None) - self.size = size if size is not None else _v + self['size'] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/layout/scene/zaxis/_tickfont.py b/plotly/graph_objs/layout/scene/zaxis/_tickfont.py index bc411615100..812b8c6e52d 100644 --- a/plotly/graph_objs/layout/scene/zaxis/_tickfont.py +++ b/plotly/graph_objs/layout/scene/zaxis/_tickfont.py @@ -209,11 +209,11 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('family', None) - self.family = family if family is not None else _v + self['family'] = family if family is not None else _v _v = arg.pop('size', None) - self.size = size if size is not None else _v + self['size'] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/layout/scene/zaxis/_tickformatstop.py b/plotly/graph_objs/layout/scene/zaxis/_tickformatstop.py index 160db6e6947..a2ff2c32eeb 100644 --- a/plotly/graph_objs/layout/scene/zaxis/_tickformatstop.py +++ b/plotly/graph_objs/layout/scene/zaxis/_tickformatstop.py @@ -260,15 +260,16 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('dtickrange', None) - self.dtickrange = dtickrange if dtickrange is not None else _v + self['dtickrange'] = dtickrange if dtickrange is not None else _v _v = arg.pop('enabled', None) - self.enabled = enabled if enabled is not None else _v + self['enabled'] = enabled if enabled is not None else _v _v = arg.pop('name', None) - self.name = name if name is not None else _v + self['name'] = name if name is not None else _v _v = arg.pop('templateitemname', None) - self.templateitemname = templateitemname if templateitemname is not None else _v + self['templateitemname' + ] = templateitemname if templateitemname is not None else _v _v = arg.pop('value', None) - self.value = value if value is not None else _v + self['value'] = value if value is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/layout/scene/zaxis/_titlefont.py b/plotly/graph_objs/layout/scene/zaxis/_titlefont.py index 0b76c8ace53..eadc9f42b26 100644 --- a/plotly/graph_objs/layout/scene/zaxis/_titlefont.py +++ b/plotly/graph_objs/layout/scene/zaxis/_titlefont.py @@ -209,11 +209,11 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('family', None) - self.family = family if family is not None else _v + self['family'] = family if family is not None else _v _v = arg.pop('size', None) - self.size = size if size is not None else _v + self['size'] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/layout/shape/_line.py b/plotly/graph_objs/layout/shape/_line.py index 27382b715e6..ead65d1b7e6 100644 --- a/plotly/graph_objs/layout/shape/_line.py +++ b/plotly/graph_objs/layout/shape/_line.py @@ -185,11 +185,11 @@ def __init__(self, arg=None, color=None, dash=None, width=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('dash', None) - self.dash = dash if dash is not None else _v + self['dash'] = dash if dash is not None else _v _v = arg.pop('width', None) - self.width = width if width is not None else _v + self['width'] = width if width is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/layout/slider/_currentvalue.py b/plotly/graph_objs/layout/slider/_currentvalue.py index 56e7525e5c7..3b418a1d795 100644 --- a/plotly/graph_objs/layout/slider/_currentvalue.py +++ b/plotly/graph_objs/layout/slider/_currentvalue.py @@ -262,17 +262,17 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('font', None) - self.font = font if font is not None else _v + self['font'] = font if font is not None else _v _v = arg.pop('offset', None) - self.offset = offset if offset is not None else _v + self['offset'] = offset if offset is not None else _v _v = arg.pop('prefix', None) - self.prefix = prefix if prefix is not None else _v + self['prefix'] = prefix if prefix is not None else _v _v = arg.pop('suffix', None) - self.suffix = suffix if suffix is not None else _v + self['suffix'] = suffix if suffix is not None else _v _v = arg.pop('visible', None) - self.visible = visible if visible is not None else _v + self['visible'] = visible if visible is not None else _v _v = arg.pop('xanchor', None) - self.xanchor = xanchor if xanchor is not None else _v + self['xanchor'] = xanchor if xanchor is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/layout/slider/_font.py b/plotly/graph_objs/layout/slider/_font.py index 5c627a5d023..89177234602 100644 --- a/plotly/graph_objs/layout/slider/_font.py +++ b/plotly/graph_objs/layout/slider/_font.py @@ -206,11 +206,11 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('family', None) - self.family = family if family is not None else _v + self['family'] = family if family is not None else _v _v = arg.pop('size', None) - self.size = size if size is not None else _v + self['size'] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/layout/slider/_pad.py b/plotly/graph_objs/layout/slider/_pad.py index 30f232cdf2e..2f76931de8a 100644 --- a/plotly/graph_objs/layout/slider/_pad.py +++ b/plotly/graph_objs/layout/slider/_pad.py @@ -172,13 +172,13 @@ def __init__(self, arg=None, b=None, l=None, r=None, t=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('b', None) - self.b = b if b is not None else _v + self['b'] = b if b is not None else _v _v = arg.pop('l', None) - self.l = l if l is not None else _v + self['l'] = l if l is not None else _v _v = arg.pop('r', None) - self.r = r if r is not None else _v + self['r'] = r if r is not None else _v _v = arg.pop('t', None) - self.t = t if t is not None else _v + self['t'] = t if t is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/layout/slider/_step.py b/plotly/graph_objs/layout/slider/_step.py index 14bb357f519..6e5e88b2ddf 100644 --- a/plotly/graph_objs/layout/slider/_step.py +++ b/plotly/graph_objs/layout/slider/_step.py @@ -367,21 +367,22 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('args', None) - self.args = args if args is not None else _v + self['args'] = args if args is not None else _v _v = arg.pop('execute', None) - self.execute = execute if execute is not None else _v + self['execute'] = execute if execute is not None else _v _v = arg.pop('label', None) - self.label = label if label is not None else _v + self['label'] = label if label is not None else _v _v = arg.pop('method', None) - self.method = method if method is not None else _v + self['method'] = method if method is not None else _v _v = arg.pop('name', None) - self.name = name if name is not None else _v + self['name'] = name if name is not None else _v _v = arg.pop('templateitemname', None) - self.templateitemname = templateitemname if templateitemname is not None else _v + self['templateitemname' + ] = templateitemname if templateitemname is not None else _v _v = arg.pop('value', None) - self.value = value if value is not None else _v + self['value'] = value if value is not None else _v _v = arg.pop('visible', None) - self.visible = visible if visible is not None else _v + self['visible'] = visible if visible is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/layout/slider/_transition.py b/plotly/graph_objs/layout/slider/_transition.py index 2528578a427..2602a64e8f7 100644 --- a/plotly/graph_objs/layout/slider/_transition.py +++ b/plotly/graph_objs/layout/slider/_transition.py @@ -121,9 +121,9 @@ def __init__(self, arg=None, duration=None, easing=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('duration', None) - self.duration = duration if duration is not None else _v + self['duration'] = duration if duration is not None else _v _v = arg.pop('easing', None) - self.easing = easing if easing is not None else _v + self['easing'] = easing if easing is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/layout/slider/currentvalue/_font.py b/plotly/graph_objs/layout/slider/currentvalue/_font.py index 775e51fcbb4..6cce1d3ab9b 100644 --- a/plotly/graph_objs/layout/slider/currentvalue/_font.py +++ b/plotly/graph_objs/layout/slider/currentvalue/_font.py @@ -209,11 +209,11 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('family', None) - self.family = family if family is not None else _v + self['family'] = family if family is not None else _v _v = arg.pop('size', None) - self.size = size if size is not None else _v + self['size'] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/layout/ternary/_aaxis.py b/plotly/graph_objs/layout/ternary/_aaxis.py index afdbd021bf5..189fd71fb48 100644 --- a/plotly/graph_objs/layout/ternary/_aaxis.py +++ b/plotly/graph_objs/layout/ternary/_aaxis.py @@ -1523,77 +1523,83 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('dtick', None) - self.dtick = dtick if dtick is not None else _v + self['dtick'] = dtick if dtick is not None else _v _v = arg.pop('exponentformat', None) - self.exponentformat = exponentformat if exponentformat is not None else _v + self['exponentformat' + ] = exponentformat if exponentformat is not None else _v _v = arg.pop('gridcolor', None) - self.gridcolor = gridcolor if gridcolor is not None else _v + self['gridcolor'] = gridcolor if gridcolor is not None else _v _v = arg.pop('gridwidth', None) - self.gridwidth = gridwidth if gridwidth is not None else _v + self['gridwidth'] = gridwidth if gridwidth is not None else _v _v = arg.pop('hoverformat', None) - self.hoverformat = hoverformat if hoverformat is not None else _v + self['hoverformat'] = hoverformat if hoverformat is not None else _v _v = arg.pop('layer', None) - self.layer = layer if layer is not None else _v + self['layer'] = layer if layer is not None else _v _v = arg.pop('linecolor', None) - self.linecolor = linecolor if linecolor is not None else _v + self['linecolor'] = linecolor if linecolor is not None else _v _v = arg.pop('linewidth', None) - self.linewidth = linewidth if linewidth is not None else _v + self['linewidth'] = linewidth if linewidth is not None else _v _v = arg.pop('min', None) - self.min = min if min is not None else _v + self['min'] = min if min is not None else _v _v = arg.pop('nticks', None) - self.nticks = nticks if nticks is not None else _v + self['nticks'] = nticks if nticks is not None else _v _v = arg.pop('separatethousands', None) - self.separatethousands = separatethousands if separatethousands is not None else _v + self['separatethousands' + ] = separatethousands if separatethousands is not None else _v _v = arg.pop('showexponent', None) - self.showexponent = showexponent if showexponent is not None else _v + self['showexponent'] = showexponent if showexponent is not None else _v _v = arg.pop('showgrid', None) - self.showgrid = showgrid if showgrid is not None else _v + self['showgrid'] = showgrid if showgrid is not None else _v _v = arg.pop('showline', None) - self.showline = showline if showline is not None else _v + self['showline'] = showline if showline is not None else _v _v = arg.pop('showticklabels', None) - self.showticklabels = showticklabels if showticklabels is not None else _v + self['showticklabels' + ] = showticklabels if showticklabels is not None else _v _v = arg.pop('showtickprefix', None) - self.showtickprefix = showtickprefix if showtickprefix is not None else _v + self['showtickprefix' + ] = showtickprefix if showtickprefix is not None else _v _v = arg.pop('showticksuffix', None) - self.showticksuffix = showticksuffix if showticksuffix is not None else _v + self['showticksuffix' + ] = showticksuffix if showticksuffix is not None else _v _v = arg.pop('tick0', None) - self.tick0 = tick0 if tick0 is not None else _v + self['tick0'] = tick0 if tick0 is not None else _v _v = arg.pop('tickangle', None) - self.tickangle = tickangle if tickangle is not None else _v + self['tickangle'] = tickangle if tickangle is not None else _v _v = arg.pop('tickcolor', None) - self.tickcolor = tickcolor if tickcolor is not None else _v + self['tickcolor'] = tickcolor if tickcolor is not None else _v _v = arg.pop('tickfont', None) - self.tickfont = tickfont if tickfont is not None else _v + self['tickfont'] = tickfont if tickfont is not None else _v _v = arg.pop('tickformat', None) - self.tickformat = tickformat if tickformat is not None else _v + self['tickformat'] = tickformat if tickformat is not None else _v _v = arg.pop('tickformatstops', None) - self.tickformatstops = tickformatstops if tickformatstops is not None else _v + self['tickformatstops' + ] = tickformatstops if tickformatstops is not None else _v _v = arg.pop('ticklen', None) - self.ticklen = ticklen if ticklen is not None else _v + self['ticklen'] = ticklen if ticklen is not None else _v _v = arg.pop('tickmode', None) - self.tickmode = tickmode if tickmode is not None else _v + self['tickmode'] = tickmode if tickmode is not None else _v _v = arg.pop('tickprefix', None) - self.tickprefix = tickprefix if tickprefix is not None else _v + self['tickprefix'] = tickprefix if tickprefix is not None else _v _v = arg.pop('ticks', None) - self.ticks = ticks if ticks is not None else _v + self['ticks'] = ticks if ticks is not None else _v _v = arg.pop('ticksuffix', None) - self.ticksuffix = ticksuffix if ticksuffix is not None else _v + self['ticksuffix'] = ticksuffix if ticksuffix is not None else _v _v = arg.pop('ticktext', None) - self.ticktext = ticktext if ticktext is not None else _v + self['ticktext'] = ticktext if ticktext is not None else _v _v = arg.pop('ticktextsrc', None) - self.ticktextsrc = ticktextsrc if ticktextsrc is not None else _v + self['ticktextsrc'] = ticktextsrc if ticktextsrc is not None else _v _v = arg.pop('tickvals', None) - self.tickvals = tickvals if tickvals is not None else _v + self['tickvals'] = tickvals if tickvals is not None else _v _v = arg.pop('tickvalssrc', None) - self.tickvalssrc = tickvalssrc if tickvalssrc is not None else _v + self['tickvalssrc'] = tickvalssrc if tickvalssrc is not None else _v _v = arg.pop('tickwidth', None) - self.tickwidth = tickwidth if tickwidth is not None else _v + self['tickwidth'] = tickwidth if tickwidth is not None else _v _v = arg.pop('title', None) - self.title = title if title is not None else _v + self['title'] = title if title is not None else _v _v = arg.pop('titlefont', None) - self.titlefont = titlefont if titlefont is not None else _v + self['titlefont'] = titlefont if titlefont is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/layout/ternary/_baxis.py b/plotly/graph_objs/layout/ternary/_baxis.py index 33fa311a432..15e59f64871 100644 --- a/plotly/graph_objs/layout/ternary/_baxis.py +++ b/plotly/graph_objs/layout/ternary/_baxis.py @@ -1523,77 +1523,83 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('dtick', None) - self.dtick = dtick if dtick is not None else _v + self['dtick'] = dtick if dtick is not None else _v _v = arg.pop('exponentformat', None) - self.exponentformat = exponentformat if exponentformat is not None else _v + self['exponentformat' + ] = exponentformat if exponentformat is not None else _v _v = arg.pop('gridcolor', None) - self.gridcolor = gridcolor if gridcolor is not None else _v + self['gridcolor'] = gridcolor if gridcolor is not None else _v _v = arg.pop('gridwidth', None) - self.gridwidth = gridwidth if gridwidth is not None else _v + self['gridwidth'] = gridwidth if gridwidth is not None else _v _v = arg.pop('hoverformat', None) - self.hoverformat = hoverformat if hoverformat is not None else _v + self['hoverformat'] = hoverformat if hoverformat is not None else _v _v = arg.pop('layer', None) - self.layer = layer if layer is not None else _v + self['layer'] = layer if layer is not None else _v _v = arg.pop('linecolor', None) - self.linecolor = linecolor if linecolor is not None else _v + self['linecolor'] = linecolor if linecolor is not None else _v _v = arg.pop('linewidth', None) - self.linewidth = linewidth if linewidth is not None else _v + self['linewidth'] = linewidth if linewidth is not None else _v _v = arg.pop('min', None) - self.min = min if min is not None else _v + self['min'] = min if min is not None else _v _v = arg.pop('nticks', None) - self.nticks = nticks if nticks is not None else _v + self['nticks'] = nticks if nticks is not None else _v _v = arg.pop('separatethousands', None) - self.separatethousands = separatethousands if separatethousands is not None else _v + self['separatethousands' + ] = separatethousands if separatethousands is not None else _v _v = arg.pop('showexponent', None) - self.showexponent = showexponent if showexponent is not None else _v + self['showexponent'] = showexponent if showexponent is not None else _v _v = arg.pop('showgrid', None) - self.showgrid = showgrid if showgrid is not None else _v + self['showgrid'] = showgrid if showgrid is not None else _v _v = arg.pop('showline', None) - self.showline = showline if showline is not None else _v + self['showline'] = showline if showline is not None else _v _v = arg.pop('showticklabels', None) - self.showticklabels = showticklabels if showticklabels is not None else _v + self['showticklabels' + ] = showticklabels if showticklabels is not None else _v _v = arg.pop('showtickprefix', None) - self.showtickprefix = showtickprefix if showtickprefix is not None else _v + self['showtickprefix' + ] = showtickprefix if showtickprefix is not None else _v _v = arg.pop('showticksuffix', None) - self.showticksuffix = showticksuffix if showticksuffix is not None else _v + self['showticksuffix' + ] = showticksuffix if showticksuffix is not None else _v _v = arg.pop('tick0', None) - self.tick0 = tick0 if tick0 is not None else _v + self['tick0'] = tick0 if tick0 is not None else _v _v = arg.pop('tickangle', None) - self.tickangle = tickangle if tickangle is not None else _v + self['tickangle'] = tickangle if tickangle is not None else _v _v = arg.pop('tickcolor', None) - self.tickcolor = tickcolor if tickcolor is not None else _v + self['tickcolor'] = tickcolor if tickcolor is not None else _v _v = arg.pop('tickfont', None) - self.tickfont = tickfont if tickfont is not None else _v + self['tickfont'] = tickfont if tickfont is not None else _v _v = arg.pop('tickformat', None) - self.tickformat = tickformat if tickformat is not None else _v + self['tickformat'] = tickformat if tickformat is not None else _v _v = arg.pop('tickformatstops', None) - self.tickformatstops = tickformatstops if tickformatstops is not None else _v + self['tickformatstops' + ] = tickformatstops if tickformatstops is not None else _v _v = arg.pop('ticklen', None) - self.ticklen = ticklen if ticklen is not None else _v + self['ticklen'] = ticklen if ticklen is not None else _v _v = arg.pop('tickmode', None) - self.tickmode = tickmode if tickmode is not None else _v + self['tickmode'] = tickmode if tickmode is not None else _v _v = arg.pop('tickprefix', None) - self.tickprefix = tickprefix if tickprefix is not None else _v + self['tickprefix'] = tickprefix if tickprefix is not None else _v _v = arg.pop('ticks', None) - self.ticks = ticks if ticks is not None else _v + self['ticks'] = ticks if ticks is not None else _v _v = arg.pop('ticksuffix', None) - self.ticksuffix = ticksuffix if ticksuffix is not None else _v + self['ticksuffix'] = ticksuffix if ticksuffix is not None else _v _v = arg.pop('ticktext', None) - self.ticktext = ticktext if ticktext is not None else _v + self['ticktext'] = ticktext if ticktext is not None else _v _v = arg.pop('ticktextsrc', None) - self.ticktextsrc = ticktextsrc if ticktextsrc is not None else _v + self['ticktextsrc'] = ticktextsrc if ticktextsrc is not None else _v _v = arg.pop('tickvals', None) - self.tickvals = tickvals if tickvals is not None else _v + self['tickvals'] = tickvals if tickvals is not None else _v _v = arg.pop('tickvalssrc', None) - self.tickvalssrc = tickvalssrc if tickvalssrc is not None else _v + self['tickvalssrc'] = tickvalssrc if tickvalssrc is not None else _v _v = arg.pop('tickwidth', None) - self.tickwidth = tickwidth if tickwidth is not None else _v + self['tickwidth'] = tickwidth if tickwidth is not None else _v _v = arg.pop('title', None) - self.title = title if title is not None else _v + self['title'] = title if title is not None else _v _v = arg.pop('titlefont', None) - self.titlefont = titlefont if titlefont is not None else _v + self['titlefont'] = titlefont if titlefont is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/layout/ternary/_caxis.py b/plotly/graph_objs/layout/ternary/_caxis.py index 37389482dd1..3e1b747d035 100644 --- a/plotly/graph_objs/layout/ternary/_caxis.py +++ b/plotly/graph_objs/layout/ternary/_caxis.py @@ -1523,77 +1523,83 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('dtick', None) - self.dtick = dtick if dtick is not None else _v + self['dtick'] = dtick if dtick is not None else _v _v = arg.pop('exponentformat', None) - self.exponentformat = exponentformat if exponentformat is not None else _v + self['exponentformat' + ] = exponentformat if exponentformat is not None else _v _v = arg.pop('gridcolor', None) - self.gridcolor = gridcolor if gridcolor is not None else _v + self['gridcolor'] = gridcolor if gridcolor is not None else _v _v = arg.pop('gridwidth', None) - self.gridwidth = gridwidth if gridwidth is not None else _v + self['gridwidth'] = gridwidth if gridwidth is not None else _v _v = arg.pop('hoverformat', None) - self.hoverformat = hoverformat if hoverformat is not None else _v + self['hoverformat'] = hoverformat if hoverformat is not None else _v _v = arg.pop('layer', None) - self.layer = layer if layer is not None else _v + self['layer'] = layer if layer is not None else _v _v = arg.pop('linecolor', None) - self.linecolor = linecolor if linecolor is not None else _v + self['linecolor'] = linecolor if linecolor is not None else _v _v = arg.pop('linewidth', None) - self.linewidth = linewidth if linewidth is not None else _v + self['linewidth'] = linewidth if linewidth is not None else _v _v = arg.pop('min', None) - self.min = min if min is not None else _v + self['min'] = min if min is not None else _v _v = arg.pop('nticks', None) - self.nticks = nticks if nticks is not None else _v + self['nticks'] = nticks if nticks is not None else _v _v = arg.pop('separatethousands', None) - self.separatethousands = separatethousands if separatethousands is not None else _v + self['separatethousands' + ] = separatethousands if separatethousands is not None else _v _v = arg.pop('showexponent', None) - self.showexponent = showexponent if showexponent is not None else _v + self['showexponent'] = showexponent if showexponent is not None else _v _v = arg.pop('showgrid', None) - self.showgrid = showgrid if showgrid is not None else _v + self['showgrid'] = showgrid if showgrid is not None else _v _v = arg.pop('showline', None) - self.showline = showline if showline is not None else _v + self['showline'] = showline if showline is not None else _v _v = arg.pop('showticklabels', None) - self.showticklabels = showticklabels if showticklabels is not None else _v + self['showticklabels' + ] = showticklabels if showticklabels is not None else _v _v = arg.pop('showtickprefix', None) - self.showtickprefix = showtickprefix if showtickprefix is not None else _v + self['showtickprefix' + ] = showtickprefix if showtickprefix is not None else _v _v = arg.pop('showticksuffix', None) - self.showticksuffix = showticksuffix if showticksuffix is not None else _v + self['showticksuffix' + ] = showticksuffix if showticksuffix is not None else _v _v = arg.pop('tick0', None) - self.tick0 = tick0 if tick0 is not None else _v + self['tick0'] = tick0 if tick0 is not None else _v _v = arg.pop('tickangle', None) - self.tickangle = tickangle if tickangle is not None else _v + self['tickangle'] = tickangle if tickangle is not None else _v _v = arg.pop('tickcolor', None) - self.tickcolor = tickcolor if tickcolor is not None else _v + self['tickcolor'] = tickcolor if tickcolor is not None else _v _v = arg.pop('tickfont', None) - self.tickfont = tickfont if tickfont is not None else _v + self['tickfont'] = tickfont if tickfont is not None else _v _v = arg.pop('tickformat', None) - self.tickformat = tickformat if tickformat is not None else _v + self['tickformat'] = tickformat if tickformat is not None else _v _v = arg.pop('tickformatstops', None) - self.tickformatstops = tickformatstops if tickformatstops is not None else _v + self['tickformatstops' + ] = tickformatstops if tickformatstops is not None else _v _v = arg.pop('ticklen', None) - self.ticklen = ticklen if ticklen is not None else _v + self['ticklen'] = ticklen if ticklen is not None else _v _v = arg.pop('tickmode', None) - self.tickmode = tickmode if tickmode is not None else _v + self['tickmode'] = tickmode if tickmode is not None else _v _v = arg.pop('tickprefix', None) - self.tickprefix = tickprefix if tickprefix is not None else _v + self['tickprefix'] = tickprefix if tickprefix is not None else _v _v = arg.pop('ticks', None) - self.ticks = ticks if ticks is not None else _v + self['ticks'] = ticks if ticks is not None else _v _v = arg.pop('ticksuffix', None) - self.ticksuffix = ticksuffix if ticksuffix is not None else _v + self['ticksuffix'] = ticksuffix if ticksuffix is not None else _v _v = arg.pop('ticktext', None) - self.ticktext = ticktext if ticktext is not None else _v + self['ticktext'] = ticktext if ticktext is not None else _v _v = arg.pop('ticktextsrc', None) - self.ticktextsrc = ticktextsrc if ticktextsrc is not None else _v + self['ticktextsrc'] = ticktextsrc if ticktextsrc is not None else _v _v = arg.pop('tickvals', None) - self.tickvals = tickvals if tickvals is not None else _v + self['tickvals'] = tickvals if tickvals is not None else _v _v = arg.pop('tickvalssrc', None) - self.tickvalssrc = tickvalssrc if tickvalssrc is not None else _v + self['tickvalssrc'] = tickvalssrc if tickvalssrc is not None else _v _v = arg.pop('tickwidth', None) - self.tickwidth = tickwidth if tickwidth is not None else _v + self['tickwidth'] = tickwidth if tickwidth is not None else _v _v = arg.pop('title', None) - self.title = title if title is not None else _v + self['title'] = title if title is not None else _v _v = arg.pop('titlefont', None) - self.titlefont = titlefont if titlefont is not None else _v + self['titlefont'] = titlefont if titlefont is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/layout/ternary/_domain.py b/plotly/graph_objs/layout/ternary/_domain.py index 8c086f3d04b..5422de2038f 100644 --- a/plotly/graph_objs/layout/ternary/_domain.py +++ b/plotly/graph_objs/layout/ternary/_domain.py @@ -185,13 +185,13 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('column', None) - self.column = column if column is not None else _v + self['column'] = column if column is not None else _v _v = arg.pop('row', None) - self.row = row if row is not None else _v + self['row'] = row if row is not None else _v _v = arg.pop('x', None) - self.x = x if x is not None else _v + self['x'] = x if x is not None else _v _v = arg.pop('y', None) - self.y = y if y is not None else _v + self['y'] = y if y is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/layout/ternary/aaxis/_tickfont.py b/plotly/graph_objs/layout/ternary/aaxis/_tickfont.py index 2dbb2199764..a798e112144 100644 --- a/plotly/graph_objs/layout/ternary/aaxis/_tickfont.py +++ b/plotly/graph_objs/layout/ternary/aaxis/_tickfont.py @@ -209,11 +209,11 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('family', None) - self.family = family if family is not None else _v + self['family'] = family if family is not None else _v _v = arg.pop('size', None) - self.size = size if size is not None else _v + self['size'] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/layout/ternary/aaxis/_tickformatstop.py b/plotly/graph_objs/layout/ternary/aaxis/_tickformatstop.py index 435ec98a95d..191c7eaa190 100644 --- a/plotly/graph_objs/layout/ternary/aaxis/_tickformatstop.py +++ b/plotly/graph_objs/layout/ternary/aaxis/_tickformatstop.py @@ -260,15 +260,16 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('dtickrange', None) - self.dtickrange = dtickrange if dtickrange is not None else _v + self['dtickrange'] = dtickrange if dtickrange is not None else _v _v = arg.pop('enabled', None) - self.enabled = enabled if enabled is not None else _v + self['enabled'] = enabled if enabled is not None else _v _v = arg.pop('name', None) - self.name = name if name is not None else _v + self['name'] = name if name is not None else _v _v = arg.pop('templateitemname', None) - self.templateitemname = templateitemname if templateitemname is not None else _v + self['templateitemname' + ] = templateitemname if templateitemname is not None else _v _v = arg.pop('value', None) - self.value = value if value is not None else _v + self['value'] = value if value is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/layout/ternary/aaxis/_titlefont.py b/plotly/graph_objs/layout/ternary/aaxis/_titlefont.py index d1358823ded..c4d17e5d8f2 100644 --- a/plotly/graph_objs/layout/ternary/aaxis/_titlefont.py +++ b/plotly/graph_objs/layout/ternary/aaxis/_titlefont.py @@ -209,11 +209,11 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('family', None) - self.family = family if family is not None else _v + self['family'] = family if family is not None else _v _v = arg.pop('size', None) - self.size = size if size is not None else _v + self['size'] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/layout/ternary/baxis/_tickfont.py b/plotly/graph_objs/layout/ternary/baxis/_tickfont.py index 791324ef02b..2a66aa2a4b0 100644 --- a/plotly/graph_objs/layout/ternary/baxis/_tickfont.py +++ b/plotly/graph_objs/layout/ternary/baxis/_tickfont.py @@ -209,11 +209,11 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('family', None) - self.family = family if family is not None else _v + self['family'] = family if family is not None else _v _v = arg.pop('size', None) - self.size = size if size is not None else _v + self['size'] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/layout/ternary/baxis/_tickformatstop.py b/plotly/graph_objs/layout/ternary/baxis/_tickformatstop.py index 25001214dc8..a92bedf8742 100644 --- a/plotly/graph_objs/layout/ternary/baxis/_tickformatstop.py +++ b/plotly/graph_objs/layout/ternary/baxis/_tickformatstop.py @@ -260,15 +260,16 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('dtickrange', None) - self.dtickrange = dtickrange if dtickrange is not None else _v + self['dtickrange'] = dtickrange if dtickrange is not None else _v _v = arg.pop('enabled', None) - self.enabled = enabled if enabled is not None else _v + self['enabled'] = enabled if enabled is not None else _v _v = arg.pop('name', None) - self.name = name if name is not None else _v + self['name'] = name if name is not None else _v _v = arg.pop('templateitemname', None) - self.templateitemname = templateitemname if templateitemname is not None else _v + self['templateitemname' + ] = templateitemname if templateitemname is not None else _v _v = arg.pop('value', None) - self.value = value if value is not None else _v + self['value'] = value if value is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/layout/ternary/baxis/_titlefont.py b/plotly/graph_objs/layout/ternary/baxis/_titlefont.py index c7610b48a38..b0b497c2436 100644 --- a/plotly/graph_objs/layout/ternary/baxis/_titlefont.py +++ b/plotly/graph_objs/layout/ternary/baxis/_titlefont.py @@ -209,11 +209,11 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('family', None) - self.family = family if family is not None else _v + self['family'] = family if family is not None else _v _v = arg.pop('size', None) - self.size = size if size is not None else _v + self['size'] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/layout/ternary/caxis/_tickfont.py b/plotly/graph_objs/layout/ternary/caxis/_tickfont.py index e5f916701cf..a245a715b11 100644 --- a/plotly/graph_objs/layout/ternary/caxis/_tickfont.py +++ b/plotly/graph_objs/layout/ternary/caxis/_tickfont.py @@ -209,11 +209,11 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('family', None) - self.family = family if family is not None else _v + self['family'] = family if family is not None else _v _v = arg.pop('size', None) - self.size = size if size is not None else _v + self['size'] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/layout/ternary/caxis/_tickformatstop.py b/plotly/graph_objs/layout/ternary/caxis/_tickformatstop.py index c6291d8f1ad..d1ded194a63 100644 --- a/plotly/graph_objs/layout/ternary/caxis/_tickformatstop.py +++ b/plotly/graph_objs/layout/ternary/caxis/_tickformatstop.py @@ -260,15 +260,16 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('dtickrange', None) - self.dtickrange = dtickrange if dtickrange is not None else _v + self['dtickrange'] = dtickrange if dtickrange is not None else _v _v = arg.pop('enabled', None) - self.enabled = enabled if enabled is not None else _v + self['enabled'] = enabled if enabled is not None else _v _v = arg.pop('name', None) - self.name = name if name is not None else _v + self['name'] = name if name is not None else _v _v = arg.pop('templateitemname', None) - self.templateitemname = templateitemname if templateitemname is not None else _v + self['templateitemname' + ] = templateitemname if templateitemname is not None else _v _v = arg.pop('value', None) - self.value = value if value is not None else _v + self['value'] = value if value is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/layout/ternary/caxis/_titlefont.py b/plotly/graph_objs/layout/ternary/caxis/_titlefont.py index a1fa45a9c9b..20bd3495dec 100644 --- a/plotly/graph_objs/layout/ternary/caxis/_titlefont.py +++ b/plotly/graph_objs/layout/ternary/caxis/_titlefont.py @@ -209,11 +209,11 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('family', None) - self.family = family if family is not None else _v + self['family'] = family if family is not None else _v _v = arg.pop('size', None) - self.size = size if size is not None else _v + self['size'] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/layout/updatemenu/_button.py b/plotly/graph_objs/layout/updatemenu/_button.py index 2f872984bf6..7d5322caea8 100644 --- a/plotly/graph_objs/layout/updatemenu/_button.py +++ b/plotly/graph_objs/layout/updatemenu/_button.py @@ -335,19 +335,20 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('args', None) - self.args = args if args is not None else _v + self['args'] = args if args is not None else _v _v = arg.pop('execute', None) - self.execute = execute if execute is not None else _v + self['execute'] = execute if execute is not None else _v _v = arg.pop('label', None) - self.label = label if label is not None else _v + self['label'] = label if label is not None else _v _v = arg.pop('method', None) - self.method = method if method is not None else _v + self['method'] = method if method is not None else _v _v = arg.pop('name', None) - self.name = name if name is not None else _v + self['name'] = name if name is not None else _v _v = arg.pop('templateitemname', None) - self.templateitemname = templateitemname if templateitemname is not None else _v + self['templateitemname' + ] = templateitemname if templateitemname is not None else _v _v = arg.pop('visible', None) - self.visible = visible if visible is not None else _v + self['visible'] = visible if visible is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/layout/updatemenu/_font.py b/plotly/graph_objs/layout/updatemenu/_font.py index b28f5b4b01e..eed007f122a 100644 --- a/plotly/graph_objs/layout/updatemenu/_font.py +++ b/plotly/graph_objs/layout/updatemenu/_font.py @@ -206,11 +206,11 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('family', None) - self.family = family if family is not None else _v + self['family'] = family if family is not None else _v _v = arg.pop('size', None) - self.size = size if size is not None else _v + self['size'] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/layout/updatemenu/_pad.py b/plotly/graph_objs/layout/updatemenu/_pad.py index 263ee58fc9a..43313909ab7 100644 --- a/plotly/graph_objs/layout/updatemenu/_pad.py +++ b/plotly/graph_objs/layout/updatemenu/_pad.py @@ -172,13 +172,13 @@ def __init__(self, arg=None, b=None, l=None, r=None, t=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('b', None) - self.b = b if b is not None else _v + self['b'] = b if b is not None else _v _v = arg.pop('l', None) - self.l = l if l is not None else _v + self['l'] = l if l is not None else _v _v = arg.pop('r', None) - self.r = r if r is not None else _v + self['r'] = r if r is not None else _v _v = arg.pop('t', None) - self.t = t if t is not None else _v + self['t'] = t if t is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/layout/xaxis/_rangeselector.py b/plotly/graph_objs/layout/xaxis/_rangeselector.py index 52f43897bc5..0f0061ca3ff 100644 --- a/plotly/graph_objs/layout/xaxis/_rangeselector.py +++ b/plotly/graph_objs/layout/xaxis/_rangeselector.py @@ -586,27 +586,27 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('activecolor', None) - self.activecolor = activecolor if activecolor is not None else _v + self['activecolor'] = activecolor if activecolor is not None else _v _v = arg.pop('bgcolor', None) - self.bgcolor = bgcolor if bgcolor is not None else _v + self['bgcolor'] = bgcolor if bgcolor is not None else _v _v = arg.pop('bordercolor', None) - self.bordercolor = bordercolor if bordercolor is not None else _v + self['bordercolor'] = bordercolor if bordercolor is not None else _v _v = arg.pop('borderwidth', None) - self.borderwidth = borderwidth if borderwidth is not None else _v + self['borderwidth'] = borderwidth if borderwidth is not None else _v _v = arg.pop('buttons', None) - self.buttons = buttons if buttons is not None else _v + self['buttons'] = buttons if buttons is not None else _v _v = arg.pop('font', None) - self.font = font if font is not None else _v + self['font'] = font if font is not None else _v _v = arg.pop('visible', None) - self.visible = visible if visible is not None else _v + self['visible'] = visible if visible is not None else _v _v = arg.pop('x', None) - self.x = x if x is not None else _v + self['x'] = x if x is not None else _v _v = arg.pop('xanchor', None) - self.xanchor = xanchor if xanchor is not None else _v + self['xanchor'] = xanchor if xanchor is not None else _v _v = arg.pop('y', None) - self.y = y if y is not None else _v + self['y'] = y if y is not None else _v _v = arg.pop('yanchor', None) - self.yanchor = yanchor if yanchor is not None else _v + self['yanchor'] = yanchor if yanchor is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/layout/xaxis/_rangeslider.py b/plotly/graph_objs/layout/xaxis/_rangeslider.py index d53e4523392..59a86df1431 100644 --- a/plotly/graph_objs/layout/xaxis/_rangeslider.py +++ b/plotly/graph_objs/layout/xaxis/_rangeslider.py @@ -410,21 +410,21 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('autorange', None) - self.autorange = autorange if autorange is not None else _v + self['autorange'] = autorange if autorange is not None else _v _v = arg.pop('bgcolor', None) - self.bgcolor = bgcolor if bgcolor is not None else _v + self['bgcolor'] = bgcolor if bgcolor is not None else _v _v = arg.pop('bordercolor', None) - self.bordercolor = bordercolor if bordercolor is not None else _v + self['bordercolor'] = bordercolor if bordercolor is not None else _v _v = arg.pop('borderwidth', None) - self.borderwidth = borderwidth if borderwidth is not None else _v + self['borderwidth'] = borderwidth if borderwidth is not None else _v _v = arg.pop('range', None) - self.range = range if range is not None else _v + self['range'] = range if range is not None else _v _v = arg.pop('thickness', None) - self.thickness = thickness if thickness is not None else _v + self['thickness'] = thickness if thickness is not None else _v _v = arg.pop('visible', None) - self.visible = visible if visible is not None else _v + self['visible'] = visible if visible is not None else _v _v = arg.pop('yaxis', None) - self.yaxis = yaxis if yaxis is not None else _v + self['yaxis'] = yaxis if yaxis is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/layout/xaxis/_tickfont.py b/plotly/graph_objs/layout/xaxis/_tickfont.py index 685414efa52..f45aa1578db 100644 --- a/plotly/graph_objs/layout/xaxis/_tickfont.py +++ b/plotly/graph_objs/layout/xaxis/_tickfont.py @@ -206,11 +206,11 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('family', None) - self.family = family if family is not None else _v + self['family'] = family if family is not None else _v _v = arg.pop('size', None) - self.size = size if size is not None else _v + self['size'] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/layout/xaxis/_tickformatstop.py b/plotly/graph_objs/layout/xaxis/_tickformatstop.py index c7f25a389bb..fef201234d1 100644 --- a/plotly/graph_objs/layout/xaxis/_tickformatstop.py +++ b/plotly/graph_objs/layout/xaxis/_tickformatstop.py @@ -260,15 +260,16 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('dtickrange', None) - self.dtickrange = dtickrange if dtickrange is not None else _v + self['dtickrange'] = dtickrange if dtickrange is not None else _v _v = arg.pop('enabled', None) - self.enabled = enabled if enabled is not None else _v + self['enabled'] = enabled if enabled is not None else _v _v = arg.pop('name', None) - self.name = name if name is not None else _v + self['name'] = name if name is not None else _v _v = arg.pop('templateitemname', None) - self.templateitemname = templateitemname if templateitemname is not None else _v + self['templateitemname' + ] = templateitemname if templateitemname is not None else _v _v = arg.pop('value', None) - self.value = value if value is not None else _v + self['value'] = value if value is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/layout/xaxis/_titlefont.py b/plotly/graph_objs/layout/xaxis/_titlefont.py index 19696ca7a3f..6cf6c0bffa2 100644 --- a/plotly/graph_objs/layout/xaxis/_titlefont.py +++ b/plotly/graph_objs/layout/xaxis/_titlefont.py @@ -206,11 +206,11 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('family', None) - self.family = family if family is not None else _v + self['family'] = family if family is not None else _v _v = arg.pop('size', None) - self.size = size if size is not None else _v + self['size'] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/layout/xaxis/rangeselector/_button.py b/plotly/graph_objs/layout/xaxis/rangeselector/_button.py index d3212f9e689..8d312a7ed8e 100644 --- a/plotly/graph_objs/layout/xaxis/rangeselector/_button.py +++ b/plotly/graph_objs/layout/xaxis/rangeselector/_button.py @@ -333,19 +333,20 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('count', None) - self.count = count if count is not None else _v + self['count'] = count if count is not None else _v _v = arg.pop('label', None) - self.label = label if label is not None else _v + self['label'] = label if label is not None else _v _v = arg.pop('name', None) - self.name = name if name is not None else _v + self['name'] = name if name is not None else _v _v = arg.pop('step', None) - self.step = step if step is not None else _v + self['step'] = step if step is not None else _v _v = arg.pop('stepmode', None) - self.stepmode = stepmode if stepmode is not None else _v + self['stepmode'] = stepmode if stepmode is not None else _v _v = arg.pop('templateitemname', None) - self.templateitemname = templateitemname if templateitemname is not None else _v + self['templateitemname' + ] = templateitemname if templateitemname is not None else _v _v = arg.pop('visible', None) - self.visible = visible if visible is not None else _v + self['visible'] = visible if visible is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/layout/xaxis/rangeselector/_font.py b/plotly/graph_objs/layout/xaxis/rangeselector/_font.py index 1a790eac056..a33c44d3e83 100644 --- a/plotly/graph_objs/layout/xaxis/rangeselector/_font.py +++ b/plotly/graph_objs/layout/xaxis/rangeselector/_font.py @@ -209,11 +209,11 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('family', None) - self.family = family if family is not None else _v + self['family'] = family if family is not None else _v _v = arg.pop('size', None) - self.size = size if size is not None else _v + self['size'] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/layout/xaxis/rangeslider/_yaxis.py b/plotly/graph_objs/layout/xaxis/rangeslider/_yaxis.py index 476064f25df..4aa9134fabd 100644 --- a/plotly/graph_objs/layout/xaxis/rangeslider/_yaxis.py +++ b/plotly/graph_objs/layout/xaxis/rangeslider/_yaxis.py @@ -130,9 +130,9 @@ def __init__(self, arg=None, range=None, rangemode=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('range', None) - self.range = range if range is not None else _v + self['range'] = range if range is not None else _v _v = arg.pop('rangemode', None) - self.rangemode = rangemode if rangemode is not None else _v + self['rangemode'] = rangemode if rangemode is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/layout/yaxis/_tickfont.py b/plotly/graph_objs/layout/yaxis/_tickfont.py index 544f0d0109c..1309e7864ad 100644 --- a/plotly/graph_objs/layout/yaxis/_tickfont.py +++ b/plotly/graph_objs/layout/yaxis/_tickfont.py @@ -206,11 +206,11 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('family', None) - self.family = family if family is not None else _v + self['family'] = family if family is not None else _v _v = arg.pop('size', None) - self.size = size if size is not None else _v + self['size'] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/layout/yaxis/_tickformatstop.py b/plotly/graph_objs/layout/yaxis/_tickformatstop.py index cfdc4db1636..35881b13db5 100644 --- a/plotly/graph_objs/layout/yaxis/_tickformatstop.py +++ b/plotly/graph_objs/layout/yaxis/_tickformatstop.py @@ -260,15 +260,16 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('dtickrange', None) - self.dtickrange = dtickrange if dtickrange is not None else _v + self['dtickrange'] = dtickrange if dtickrange is not None else _v _v = arg.pop('enabled', None) - self.enabled = enabled if enabled is not None else _v + self['enabled'] = enabled if enabled is not None else _v _v = arg.pop('name', None) - self.name = name if name is not None else _v + self['name'] = name if name is not None else _v _v = arg.pop('templateitemname', None) - self.templateitemname = templateitemname if templateitemname is not None else _v + self['templateitemname' + ] = templateitemname if templateitemname is not None else _v _v = arg.pop('value', None) - self.value = value if value is not None else _v + self['value'] = value if value is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/layout/yaxis/_titlefont.py b/plotly/graph_objs/layout/yaxis/_titlefont.py index 3918dbee4f4..c5f6ad35586 100644 --- a/plotly/graph_objs/layout/yaxis/_titlefont.py +++ b/plotly/graph_objs/layout/yaxis/_titlefont.py @@ -206,11 +206,11 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('family', None) - self.family = family if family is not None else _v + self['family'] = family if family is not None else _v _v = arg.pop('size', None) - self.size = size if size is not None else _v + self['size'] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/mesh3d/_colorbar.py b/plotly/graph_objs/mesh3d/_colorbar.py index a1fad59bd2e..53cc93b897a 100644 --- a/plotly/graph_objs/mesh3d/_colorbar.py +++ b/plotly/graph_objs/mesh3d/_colorbar.py @@ -1671,89 +1671,96 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('bgcolor', None) - self.bgcolor = bgcolor if bgcolor is not None else _v + self['bgcolor'] = bgcolor if bgcolor is not None else _v _v = arg.pop('bordercolor', None) - self.bordercolor = bordercolor if bordercolor is not None else _v + self['bordercolor'] = bordercolor if bordercolor is not None else _v _v = arg.pop('borderwidth', None) - self.borderwidth = borderwidth if borderwidth is not None else _v + self['borderwidth'] = borderwidth if borderwidth is not None else _v _v = arg.pop('dtick', None) - self.dtick = dtick if dtick is not None else _v + self['dtick'] = dtick if dtick is not None else _v _v = arg.pop('exponentformat', None) - self.exponentformat = exponentformat if exponentformat is not None else _v + self['exponentformat' + ] = exponentformat if exponentformat is not None else _v _v = arg.pop('len', None) - self.len = len if len is not None else _v + self['len'] = len if len is not None else _v _v = arg.pop('lenmode', None) - self.lenmode = lenmode if lenmode is not None else _v + self['lenmode'] = lenmode if lenmode is not None else _v _v = arg.pop('nticks', None) - self.nticks = nticks if nticks is not None else _v + self['nticks'] = nticks if nticks is not None else _v _v = arg.pop('outlinecolor', None) - self.outlinecolor = outlinecolor if outlinecolor is not None else _v + self['outlinecolor'] = outlinecolor if outlinecolor is not None else _v _v = arg.pop('outlinewidth', None) - self.outlinewidth = outlinewidth if outlinewidth is not None else _v + self['outlinewidth'] = outlinewidth if outlinewidth is not None else _v _v = arg.pop('separatethousands', None) - self.separatethousands = separatethousands if separatethousands is not None else _v + self['separatethousands' + ] = separatethousands if separatethousands is not None else _v _v = arg.pop('showexponent', None) - self.showexponent = showexponent if showexponent is not None else _v + self['showexponent'] = showexponent if showexponent is not None else _v _v = arg.pop('showticklabels', None) - self.showticklabels = showticklabels if showticklabels is not None else _v + self['showticklabels' + ] = showticklabels if showticklabels is not None else _v _v = arg.pop('showtickprefix', None) - self.showtickprefix = showtickprefix if showtickprefix is not None else _v + self['showtickprefix' + ] = showtickprefix if showtickprefix is not None else _v _v = arg.pop('showticksuffix', None) - self.showticksuffix = showticksuffix if showticksuffix is not None else _v + self['showticksuffix' + ] = showticksuffix if showticksuffix is not None else _v _v = arg.pop('thickness', None) - self.thickness = thickness if thickness is not None else _v + self['thickness'] = thickness if thickness is not None else _v _v = arg.pop('thicknessmode', None) - self.thicknessmode = thicknessmode if thicknessmode is not None else _v + self['thicknessmode' + ] = thicknessmode if thicknessmode is not None else _v _v = arg.pop('tick0', None) - self.tick0 = tick0 if tick0 is not None else _v + self['tick0'] = tick0 if tick0 is not None else _v _v = arg.pop('tickangle', None) - self.tickangle = tickangle if tickangle is not None else _v + self['tickangle'] = tickangle if tickangle is not None else _v _v = arg.pop('tickcolor', None) - self.tickcolor = tickcolor if tickcolor is not None else _v + self['tickcolor'] = tickcolor if tickcolor is not None else _v _v = arg.pop('tickfont', None) - self.tickfont = tickfont if tickfont is not None else _v + self['tickfont'] = tickfont if tickfont is not None else _v _v = arg.pop('tickformat', None) - self.tickformat = tickformat if tickformat is not None else _v + self['tickformat'] = tickformat if tickformat is not None else _v _v = arg.pop('tickformatstops', None) - self.tickformatstops = tickformatstops if tickformatstops is not None else _v + self['tickformatstops' + ] = tickformatstops if tickformatstops is not None else _v _v = arg.pop('ticklen', None) - self.ticklen = ticklen if ticklen is not None else _v + self['ticklen'] = ticklen if ticklen is not None else _v _v = arg.pop('tickmode', None) - self.tickmode = tickmode if tickmode is not None else _v + self['tickmode'] = tickmode if tickmode is not None else _v _v = arg.pop('tickprefix', None) - self.tickprefix = tickprefix if tickprefix is not None else _v + self['tickprefix'] = tickprefix if tickprefix is not None else _v _v = arg.pop('ticks', None) - self.ticks = ticks if ticks is not None else _v + self['ticks'] = ticks if ticks is not None else _v _v = arg.pop('ticksuffix', None) - self.ticksuffix = ticksuffix if ticksuffix is not None else _v + self['ticksuffix'] = ticksuffix if ticksuffix is not None else _v _v = arg.pop('ticktext', None) - self.ticktext = ticktext if ticktext is not None else _v + self['ticktext'] = ticktext if ticktext is not None else _v _v = arg.pop('ticktextsrc', None) - self.ticktextsrc = ticktextsrc if ticktextsrc is not None else _v + self['ticktextsrc'] = ticktextsrc if ticktextsrc is not None else _v _v = arg.pop('tickvals', None) - self.tickvals = tickvals if tickvals is not None else _v + self['tickvals'] = tickvals if tickvals is not None else _v _v = arg.pop('tickvalssrc', None) - self.tickvalssrc = tickvalssrc if tickvalssrc is not None else _v + self['tickvalssrc'] = tickvalssrc if tickvalssrc is not None else _v _v = arg.pop('tickwidth', None) - self.tickwidth = tickwidth if tickwidth is not None else _v + self['tickwidth'] = tickwidth if tickwidth is not None else _v _v = arg.pop('title', None) - self.title = title if title is not None else _v + self['title'] = title if title is not None else _v _v = arg.pop('titlefont', None) - self.titlefont = titlefont if titlefont is not None else _v + self['titlefont'] = titlefont if titlefont is not None else _v _v = arg.pop('titleside', None) - self.titleside = titleside if titleside is not None else _v + self['titleside'] = titleside if titleside is not None else _v _v = arg.pop('x', None) - self.x = x if x is not None else _v + self['x'] = x if x is not None else _v _v = arg.pop('xanchor', None) - self.xanchor = xanchor if xanchor is not None else _v + self['xanchor'] = xanchor if xanchor is not None else _v _v = arg.pop('xpad', None) - self.xpad = xpad if xpad is not None else _v + self['xpad'] = xpad if xpad is not None else _v _v = arg.pop('y', None) - self.y = y if y is not None else _v + self['y'] = y if y is not None else _v _v = arg.pop('yanchor', None) - self.yanchor = yanchor if yanchor is not None else _v + self['yanchor'] = yanchor if yanchor is not None else _v _v = arg.pop('ypad', None) - self.ypad = ypad if ypad is not None else _v + self['ypad'] = ypad if ypad is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/mesh3d/_contour.py b/plotly/graph_objs/mesh3d/_contour.py index 35324025951..bc1c366b43a 100644 --- a/plotly/graph_objs/mesh3d/_contour.py +++ b/plotly/graph_objs/mesh3d/_contour.py @@ -173,11 +173,11 @@ def __init__(self, arg=None, color=None, show=None, width=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('show', None) - self.show = show if show is not None else _v + self['show'] = show if show is not None else _v _v = arg.pop('width', None) - self.width = width if width is not None else _v + self['width'] = width if width is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/mesh3d/_hoverlabel.py b/plotly/graph_objs/mesh3d/_hoverlabel.py index 7913805feae..21ef74ef604 100644 --- a/plotly/graph_objs/mesh3d/_hoverlabel.py +++ b/plotly/graph_objs/mesh3d/_hoverlabel.py @@ -385,19 +385,21 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('bgcolor', None) - self.bgcolor = bgcolor if bgcolor is not None else _v + self['bgcolor'] = bgcolor if bgcolor is not None else _v _v = arg.pop('bgcolorsrc', None) - self.bgcolorsrc = bgcolorsrc if bgcolorsrc is not None else _v + self['bgcolorsrc'] = bgcolorsrc if bgcolorsrc is not None else _v _v = arg.pop('bordercolor', None) - self.bordercolor = bordercolor if bordercolor is not None else _v + self['bordercolor'] = bordercolor if bordercolor is not None else _v _v = arg.pop('bordercolorsrc', None) - self.bordercolorsrc = bordercolorsrc if bordercolorsrc is not None else _v + self['bordercolorsrc' + ] = bordercolorsrc if bordercolorsrc is not None else _v _v = arg.pop('font', None) - self.font = font if font is not None else _v + self['font'] = font if font is not None else _v _v = arg.pop('namelength', None) - self.namelength = namelength if namelength is not None else _v + self['namelength'] = namelength if namelength is not None else _v _v = arg.pop('namelengthsrc', None) - self.namelengthsrc = namelengthsrc if namelengthsrc is not None else _v + self['namelengthsrc' + ] = namelengthsrc if namelengthsrc is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/mesh3d/_lighting.py b/plotly/graph_objs/mesh3d/_lighting.py index 41e5ef20907..c43cde2f7f7 100644 --- a/plotly/graph_objs/mesh3d/_lighting.py +++ b/plotly/graph_objs/mesh3d/_lighting.py @@ -273,19 +273,22 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('ambient', None) - self.ambient = ambient if ambient is not None else _v + self['ambient'] = ambient if ambient is not None else _v _v = arg.pop('diffuse', None) - self.diffuse = diffuse if diffuse is not None else _v + self['diffuse'] = diffuse if diffuse is not None else _v _v = arg.pop('facenormalsepsilon', None) - self.facenormalsepsilon = facenormalsepsilon if facenormalsepsilon is not None else _v + self['facenormalsepsilon' + ] = facenormalsepsilon if facenormalsepsilon is not None else _v _v = arg.pop('fresnel', None) - self.fresnel = fresnel if fresnel is not None else _v + self['fresnel'] = fresnel if fresnel is not None else _v _v = arg.pop('roughness', None) - self.roughness = roughness if roughness is not None else _v + self['roughness'] = roughness if roughness is not None else _v _v = arg.pop('specular', None) - self.specular = specular if specular is not None else _v + self['specular'] = specular if specular is not None else _v _v = arg.pop('vertexnormalsepsilon', None) - self.vertexnormalsepsilon = vertexnormalsepsilon if vertexnormalsepsilon is not None else _v + self[ + 'vertexnormalsepsilon' + ] = vertexnormalsepsilon if vertexnormalsepsilon is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/mesh3d/_lightposition.py b/plotly/graph_objs/mesh3d/_lightposition.py index 43c220552b1..841c24ed439 100644 --- a/plotly/graph_objs/mesh3d/_lightposition.py +++ b/plotly/graph_objs/mesh3d/_lightposition.py @@ -140,11 +140,11 @@ def __init__(self, arg=None, x=None, y=None, z=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('x', None) - self.x = x if x is not None else _v + self['x'] = x if x is not None else _v _v = arg.pop('y', None) - self.y = y if y is not None else _v + self['y'] = y if y is not None else _v _v = arg.pop('z', None) - self.z = z if z is not None else _v + self['z'] = z if z is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/mesh3d/_stream.py b/plotly/graph_objs/mesh3d/_stream.py index 3af1e21ad7d..1037b17ab1b 100644 --- a/plotly/graph_objs/mesh3d/_stream.py +++ b/plotly/graph_objs/mesh3d/_stream.py @@ -122,9 +122,9 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('maxpoints', None) - self.maxpoints = maxpoints if maxpoints is not None else _v + self['maxpoints'] = maxpoints if maxpoints is not None else _v _v = arg.pop('token', None) - self.token = token if token is not None else _v + self['token'] = token if token is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/mesh3d/colorbar/_tickfont.py b/plotly/graph_objs/mesh3d/colorbar/_tickfont.py index 932023cf81a..83d53d95b5d 100644 --- a/plotly/graph_objs/mesh3d/colorbar/_tickfont.py +++ b/plotly/graph_objs/mesh3d/colorbar/_tickfont.py @@ -207,11 +207,11 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('family', None) - self.family = family if family is not None else _v + self['family'] = family if family is not None else _v _v = arg.pop('size', None) - self.size = size if size is not None else _v + self['size'] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/mesh3d/colorbar/_tickformatstop.py b/plotly/graph_objs/mesh3d/colorbar/_tickformatstop.py index 1becec967cf..9f1a4ce5ba7 100644 --- a/plotly/graph_objs/mesh3d/colorbar/_tickformatstop.py +++ b/plotly/graph_objs/mesh3d/colorbar/_tickformatstop.py @@ -260,15 +260,16 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('dtickrange', None) - self.dtickrange = dtickrange if dtickrange is not None else _v + self['dtickrange'] = dtickrange if dtickrange is not None else _v _v = arg.pop('enabled', None) - self.enabled = enabled if enabled is not None else _v + self['enabled'] = enabled if enabled is not None else _v _v = arg.pop('name', None) - self.name = name if name is not None else _v + self['name'] = name if name is not None else _v _v = arg.pop('templateitemname', None) - self.templateitemname = templateitemname if templateitemname is not None else _v + self['templateitemname' + ] = templateitemname if templateitemname is not None else _v _v = arg.pop('value', None) - self.value = value if value is not None else _v + self['value'] = value if value is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/mesh3d/colorbar/_titlefont.py b/plotly/graph_objs/mesh3d/colorbar/_titlefont.py index d3536d40023..8508a4ffcc4 100644 --- a/plotly/graph_objs/mesh3d/colorbar/_titlefont.py +++ b/plotly/graph_objs/mesh3d/colorbar/_titlefont.py @@ -209,11 +209,11 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('family', None) - self.family = family if family is not None else _v + self['family'] = family if family is not None else _v _v = arg.pop('size', None) - self.size = size if size is not None else _v + self['size'] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/mesh3d/hoverlabel/_font.py b/plotly/graph_objs/mesh3d/hoverlabel/_font.py index e96f9a9c9a4..5da8ea0b483 100644 --- a/plotly/graph_objs/mesh3d/hoverlabel/_font.py +++ b/plotly/graph_objs/mesh3d/hoverlabel/_font.py @@ -294,17 +294,17 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('colorsrc', None) - self.colorsrc = colorsrc if colorsrc is not None else _v + self['colorsrc'] = colorsrc if colorsrc is not None else _v _v = arg.pop('family', None) - self.family = family if family is not None else _v + self['family'] = family if family is not None else _v _v = arg.pop('familysrc', None) - self.familysrc = familysrc if familysrc is not None else _v + self['familysrc'] = familysrc if familysrc is not None else _v _v = arg.pop('size', None) - self.size = size if size is not None else _v + self['size'] = size if size is not None else _v _v = arg.pop('sizesrc', None) - self.sizesrc = sizesrc if sizesrc is not None else _v + self['sizesrc'] = sizesrc if sizesrc is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/ohlc/_decreasing.py b/plotly/graph_objs/ohlc/_decreasing.py index 13ea78cd322..0dc3e25d78c 100644 --- a/plotly/graph_objs/ohlc/_decreasing.py +++ b/plotly/graph_objs/ohlc/_decreasing.py @@ -99,7 +99,7 @@ def __init__(self, arg=None, line=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('line', None) - self.line = line if line is not None else _v + self['line'] = line if line is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/ohlc/_hoverlabel.py b/plotly/graph_objs/ohlc/_hoverlabel.py index 34582548be7..e4aa73b4227 100644 --- a/plotly/graph_objs/ohlc/_hoverlabel.py +++ b/plotly/graph_objs/ohlc/_hoverlabel.py @@ -385,19 +385,21 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('bgcolor', None) - self.bgcolor = bgcolor if bgcolor is not None else _v + self['bgcolor'] = bgcolor if bgcolor is not None else _v _v = arg.pop('bgcolorsrc', None) - self.bgcolorsrc = bgcolorsrc if bgcolorsrc is not None else _v + self['bgcolorsrc'] = bgcolorsrc if bgcolorsrc is not None else _v _v = arg.pop('bordercolor', None) - self.bordercolor = bordercolor if bordercolor is not None else _v + self['bordercolor'] = bordercolor if bordercolor is not None else _v _v = arg.pop('bordercolorsrc', None) - self.bordercolorsrc = bordercolorsrc if bordercolorsrc is not None else _v + self['bordercolorsrc' + ] = bordercolorsrc if bordercolorsrc is not None else _v _v = arg.pop('font', None) - self.font = font if font is not None else _v + self['font'] = font if font is not None else _v _v = arg.pop('namelength', None) - self.namelength = namelength if namelength is not None else _v + self['namelength'] = namelength if namelength is not None else _v _v = arg.pop('namelengthsrc', None) - self.namelengthsrc = namelengthsrc if namelengthsrc is not None else _v + self['namelengthsrc' + ] = namelengthsrc if namelengthsrc is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/ohlc/_increasing.py b/plotly/graph_objs/ohlc/_increasing.py index 28ade15d121..336d87232ad 100644 --- a/plotly/graph_objs/ohlc/_increasing.py +++ b/plotly/graph_objs/ohlc/_increasing.py @@ -99,7 +99,7 @@ def __init__(self, arg=None, line=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('line', None) - self.line = line if line is not None else _v + self['line'] = line if line is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/ohlc/_line.py b/plotly/graph_objs/ohlc/_line.py index f87d8013200..7d756a30464 100644 --- a/plotly/graph_objs/ohlc/_line.py +++ b/plotly/graph_objs/ohlc/_line.py @@ -133,9 +133,9 @@ def __init__(self, arg=None, dash=None, width=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('dash', None) - self.dash = dash if dash is not None else _v + self['dash'] = dash if dash is not None else _v _v = arg.pop('width', None) - self.width = width if width is not None else _v + self['width'] = width if width is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/ohlc/_stream.py b/plotly/graph_objs/ohlc/_stream.py index 222df736958..5824d282df8 100644 --- a/plotly/graph_objs/ohlc/_stream.py +++ b/plotly/graph_objs/ohlc/_stream.py @@ -122,9 +122,9 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('maxpoints', None) - self.maxpoints = maxpoints if maxpoints is not None else _v + self['maxpoints'] = maxpoints if maxpoints is not None else _v _v = arg.pop('token', None) - self.token = token if token is not None else _v + self['token'] = token if token is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/ohlc/decreasing/_line.py b/plotly/graph_objs/ohlc/decreasing/_line.py index 09f9cc78594..d347b34de35 100644 --- a/plotly/graph_objs/ohlc/decreasing/_line.py +++ b/plotly/graph_objs/ohlc/decreasing/_line.py @@ -185,11 +185,11 @@ def __init__(self, arg=None, color=None, dash=None, width=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('dash', None) - self.dash = dash if dash is not None else _v + self['dash'] = dash if dash is not None else _v _v = arg.pop('width', None) - self.width = width if width is not None else _v + self['width'] = width if width is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/ohlc/hoverlabel/_font.py b/plotly/graph_objs/ohlc/hoverlabel/_font.py index d389f422e2e..3e895b66ac1 100644 --- a/plotly/graph_objs/ohlc/hoverlabel/_font.py +++ b/plotly/graph_objs/ohlc/hoverlabel/_font.py @@ -294,17 +294,17 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('colorsrc', None) - self.colorsrc = colorsrc if colorsrc is not None else _v + self['colorsrc'] = colorsrc if colorsrc is not None else _v _v = arg.pop('family', None) - self.family = family if family is not None else _v + self['family'] = family if family is not None else _v _v = arg.pop('familysrc', None) - self.familysrc = familysrc if familysrc is not None else _v + self['familysrc'] = familysrc if familysrc is not None else _v _v = arg.pop('size', None) - self.size = size if size is not None else _v + self['size'] = size if size is not None else _v _v = arg.pop('sizesrc', None) - self.sizesrc = sizesrc if sizesrc is not None else _v + self['sizesrc'] = sizesrc if sizesrc is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/ohlc/increasing/_line.py b/plotly/graph_objs/ohlc/increasing/_line.py index 6f035a7e321..63726aa5df0 100644 --- a/plotly/graph_objs/ohlc/increasing/_line.py +++ b/plotly/graph_objs/ohlc/increasing/_line.py @@ -185,11 +185,11 @@ def __init__(self, arg=None, color=None, dash=None, width=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('dash', None) - self.dash = dash if dash is not None else _v + self['dash'] = dash if dash is not None else _v _v = arg.pop('width', None) - self.width = width if width is not None else _v + self['width'] = width if width is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/parcoords/_dimension.py b/plotly/graph_objs/parcoords/_dimension.py index 9130b15d2ac..d026e1f9579 100644 --- a/plotly/graph_objs/parcoords/_dimension.py +++ b/plotly/graph_objs/parcoords/_dimension.py @@ -546,33 +546,35 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('constraintrange', None) - self.constraintrange = constraintrange if constraintrange is not None else _v + self['constraintrange' + ] = constraintrange if constraintrange is not None else _v _v = arg.pop('label', None) - self.label = label if label is not None else _v + self['label'] = label if label is not None else _v _v = arg.pop('multiselect', None) - self.multiselect = multiselect if multiselect is not None else _v + self['multiselect'] = multiselect if multiselect is not None else _v _v = arg.pop('name', None) - self.name = name if name is not None else _v + self['name'] = name if name is not None else _v _v = arg.pop('range', None) - self.range = range if range is not None else _v + self['range'] = range if range is not None else _v _v = arg.pop('templateitemname', None) - self.templateitemname = templateitemname if templateitemname is not None else _v + self['templateitemname' + ] = templateitemname if templateitemname is not None else _v _v = arg.pop('tickformat', None) - self.tickformat = tickformat if tickformat is not None else _v + self['tickformat'] = tickformat if tickformat is not None else _v _v = arg.pop('ticktext', None) - self.ticktext = ticktext if ticktext is not None else _v + self['ticktext'] = ticktext if ticktext is not None else _v _v = arg.pop('ticktextsrc', None) - self.ticktextsrc = ticktextsrc if ticktextsrc is not None else _v + self['ticktextsrc'] = ticktextsrc if ticktextsrc is not None else _v _v = arg.pop('tickvals', None) - self.tickvals = tickvals if tickvals is not None else _v + self['tickvals'] = tickvals if tickvals is not None else _v _v = arg.pop('tickvalssrc', None) - self.tickvalssrc = tickvalssrc if tickvalssrc is not None else _v + self['tickvalssrc'] = tickvalssrc if tickvalssrc is not None else _v _v = arg.pop('values', None) - self.values = values if values is not None else _v + self['values'] = values if values is not None else _v _v = arg.pop('valuessrc', None) - self.valuessrc = valuessrc if valuessrc is not None else _v + self['valuessrc'] = valuessrc if valuessrc is not None else _v _v = arg.pop('visible', None) - self.visible = visible if visible is not None else _v + self['visible'] = visible if visible is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/parcoords/_domain.py b/plotly/graph_objs/parcoords/_domain.py index 8590cef66b6..32c1010eb8b 100644 --- a/plotly/graph_objs/parcoords/_domain.py +++ b/plotly/graph_objs/parcoords/_domain.py @@ -185,13 +185,13 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('column', None) - self.column = column if column is not None else _v + self['column'] = column if column is not None else _v _v = arg.pop('row', None) - self.row = row if row is not None else _v + self['row'] = row if row is not None else _v _v = arg.pop('x', None) - self.x = x if x is not None else _v + self['x'] = x if x is not None else _v _v = arg.pop('y', None) - self.y = y if y is not None else _v + self['y'] = y if y is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/parcoords/_hoverlabel.py b/plotly/graph_objs/parcoords/_hoverlabel.py index dcea094a4d3..9e298309fb8 100644 --- a/plotly/graph_objs/parcoords/_hoverlabel.py +++ b/plotly/graph_objs/parcoords/_hoverlabel.py @@ -385,19 +385,21 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('bgcolor', None) - self.bgcolor = bgcolor if bgcolor is not None else _v + self['bgcolor'] = bgcolor if bgcolor is not None else _v _v = arg.pop('bgcolorsrc', None) - self.bgcolorsrc = bgcolorsrc if bgcolorsrc is not None else _v + self['bgcolorsrc'] = bgcolorsrc if bgcolorsrc is not None else _v _v = arg.pop('bordercolor', None) - self.bordercolor = bordercolor if bordercolor is not None else _v + self['bordercolor'] = bordercolor if bordercolor is not None else _v _v = arg.pop('bordercolorsrc', None) - self.bordercolorsrc = bordercolorsrc if bordercolorsrc is not None else _v + self['bordercolorsrc' + ] = bordercolorsrc if bordercolorsrc is not None else _v _v = arg.pop('font', None) - self.font = font if font is not None else _v + self['font'] = font if font is not None else _v _v = arg.pop('namelength', None) - self.namelength = namelength if namelength is not None else _v + self['namelength'] = namelength if namelength is not None else _v _v = arg.pop('namelengthsrc', None) - self.namelengthsrc = namelengthsrc if namelengthsrc is not None else _v + self['namelengthsrc' + ] = namelengthsrc if namelengthsrc is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/parcoords/_labelfont.py b/plotly/graph_objs/parcoords/_labelfont.py index 0b2076400ec..e347e8df6ee 100644 --- a/plotly/graph_objs/parcoords/_labelfont.py +++ b/plotly/graph_objs/parcoords/_labelfont.py @@ -206,11 +206,11 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('family', None) - self.family = family if family is not None else _v + self['family'] = family if family is not None else _v _v = arg.pop('size', None) - self.size = size if size is not None else _v + self['size'] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/parcoords/_line.py b/plotly/graph_objs/parcoords/_line.py index 44094d5f7d8..22f3611ac32 100644 --- a/plotly/graph_objs/parcoords/_line.py +++ b/plotly/graph_objs/parcoords/_line.py @@ -688,25 +688,26 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('autocolorscale', None) - self.autocolorscale = autocolorscale if autocolorscale is not None else _v + self['autocolorscale' + ] = autocolorscale if autocolorscale is not None else _v _v = arg.pop('cauto', None) - self.cauto = cauto if cauto is not None else _v + self['cauto'] = cauto if cauto is not None else _v _v = arg.pop('cmax', None) - self.cmax = cmax if cmax is not None else _v + self['cmax'] = cmax if cmax is not None else _v _v = arg.pop('cmin', None) - self.cmin = cmin if cmin is not None else _v + self['cmin'] = cmin if cmin is not None else _v _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('colorbar', None) - self.colorbar = colorbar if colorbar is not None else _v + self['colorbar'] = colorbar if colorbar is not None else _v _v = arg.pop('colorscale', None) - self.colorscale = colorscale if colorscale is not None else _v + self['colorscale'] = colorscale if colorscale is not None else _v _v = arg.pop('colorsrc', None) - self.colorsrc = colorsrc if colorsrc is not None else _v + self['colorsrc'] = colorsrc if colorsrc is not None else _v _v = arg.pop('reversescale', None) - self.reversescale = reversescale if reversescale is not None else _v + self['reversescale'] = reversescale if reversescale is not None else _v _v = arg.pop('showscale', None) - self.showscale = showscale if showscale is not None else _v + self['showscale'] = showscale if showscale is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/parcoords/_rangefont.py b/plotly/graph_objs/parcoords/_rangefont.py index c6499b27ab4..459d0af235d 100644 --- a/plotly/graph_objs/parcoords/_rangefont.py +++ b/plotly/graph_objs/parcoords/_rangefont.py @@ -206,11 +206,11 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('family', None) - self.family = family if family is not None else _v + self['family'] = family if family is not None else _v _v = arg.pop('size', None) - self.size = size if size is not None else _v + self['size'] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/parcoords/_stream.py b/plotly/graph_objs/parcoords/_stream.py index 3e9cee74145..b4dd2cf8275 100644 --- a/plotly/graph_objs/parcoords/_stream.py +++ b/plotly/graph_objs/parcoords/_stream.py @@ -122,9 +122,9 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('maxpoints', None) - self.maxpoints = maxpoints if maxpoints is not None else _v + self['maxpoints'] = maxpoints if maxpoints is not None else _v _v = arg.pop('token', None) - self.token = token if token is not None else _v + self['token'] = token if token is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/parcoords/_tickfont.py b/plotly/graph_objs/parcoords/_tickfont.py index fe8dfc6f094..e80f592bbc6 100644 --- a/plotly/graph_objs/parcoords/_tickfont.py +++ b/plotly/graph_objs/parcoords/_tickfont.py @@ -206,11 +206,11 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('family', None) - self.family = family if family is not None else _v + self['family'] = family if family is not None else _v _v = arg.pop('size', None) - self.size = size if size is not None else _v + self['size'] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/parcoords/hoverlabel/_font.py b/plotly/graph_objs/parcoords/hoverlabel/_font.py index 265c6b126e9..d7b55c612d8 100644 --- a/plotly/graph_objs/parcoords/hoverlabel/_font.py +++ b/plotly/graph_objs/parcoords/hoverlabel/_font.py @@ -295,17 +295,17 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('colorsrc', None) - self.colorsrc = colorsrc if colorsrc is not None else _v + self['colorsrc'] = colorsrc if colorsrc is not None else _v _v = arg.pop('family', None) - self.family = family if family is not None else _v + self['family'] = family if family is not None else _v _v = arg.pop('familysrc', None) - self.familysrc = familysrc if familysrc is not None else _v + self['familysrc'] = familysrc if familysrc is not None else _v _v = arg.pop('size', None) - self.size = size if size is not None else _v + self['size'] = size if size is not None else _v _v = arg.pop('sizesrc', None) - self.sizesrc = sizesrc if sizesrc is not None else _v + self['sizesrc'] = sizesrc if sizesrc is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/parcoords/line/_colorbar.py b/plotly/graph_objs/parcoords/line/_colorbar.py index f51c3e3fecf..5e3d8545109 100644 --- a/plotly/graph_objs/parcoords/line/_colorbar.py +++ b/plotly/graph_objs/parcoords/line/_colorbar.py @@ -1672,89 +1672,96 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('bgcolor', None) - self.bgcolor = bgcolor if bgcolor is not None else _v + self['bgcolor'] = bgcolor if bgcolor is not None else _v _v = arg.pop('bordercolor', None) - self.bordercolor = bordercolor if bordercolor is not None else _v + self['bordercolor'] = bordercolor if bordercolor is not None else _v _v = arg.pop('borderwidth', None) - self.borderwidth = borderwidth if borderwidth is not None else _v + self['borderwidth'] = borderwidth if borderwidth is not None else _v _v = arg.pop('dtick', None) - self.dtick = dtick if dtick is not None else _v + self['dtick'] = dtick if dtick is not None else _v _v = arg.pop('exponentformat', None) - self.exponentformat = exponentformat if exponentformat is not None else _v + self['exponentformat' + ] = exponentformat if exponentformat is not None else _v _v = arg.pop('len', None) - self.len = len if len is not None else _v + self['len'] = len if len is not None else _v _v = arg.pop('lenmode', None) - self.lenmode = lenmode if lenmode is not None else _v + self['lenmode'] = lenmode if lenmode is not None else _v _v = arg.pop('nticks', None) - self.nticks = nticks if nticks is not None else _v + self['nticks'] = nticks if nticks is not None else _v _v = arg.pop('outlinecolor', None) - self.outlinecolor = outlinecolor if outlinecolor is not None else _v + self['outlinecolor'] = outlinecolor if outlinecolor is not None else _v _v = arg.pop('outlinewidth', None) - self.outlinewidth = outlinewidth if outlinewidth is not None else _v + self['outlinewidth'] = outlinewidth if outlinewidth is not None else _v _v = arg.pop('separatethousands', None) - self.separatethousands = separatethousands if separatethousands is not None else _v + self['separatethousands' + ] = separatethousands if separatethousands is not None else _v _v = arg.pop('showexponent', None) - self.showexponent = showexponent if showexponent is not None else _v + self['showexponent'] = showexponent if showexponent is not None else _v _v = arg.pop('showticklabels', None) - self.showticklabels = showticklabels if showticklabels is not None else _v + self['showticklabels' + ] = showticklabels if showticklabels is not None else _v _v = arg.pop('showtickprefix', None) - self.showtickprefix = showtickprefix if showtickprefix is not None else _v + self['showtickprefix' + ] = showtickprefix if showtickprefix is not None else _v _v = arg.pop('showticksuffix', None) - self.showticksuffix = showticksuffix if showticksuffix is not None else _v + self['showticksuffix' + ] = showticksuffix if showticksuffix is not None else _v _v = arg.pop('thickness', None) - self.thickness = thickness if thickness is not None else _v + self['thickness'] = thickness if thickness is not None else _v _v = arg.pop('thicknessmode', None) - self.thicknessmode = thicknessmode if thicknessmode is not None else _v + self['thicknessmode' + ] = thicknessmode if thicknessmode is not None else _v _v = arg.pop('tick0', None) - self.tick0 = tick0 if tick0 is not None else _v + self['tick0'] = tick0 if tick0 is not None else _v _v = arg.pop('tickangle', None) - self.tickangle = tickangle if tickangle is not None else _v + self['tickangle'] = tickangle if tickangle is not None else _v _v = arg.pop('tickcolor', None) - self.tickcolor = tickcolor if tickcolor is not None else _v + self['tickcolor'] = tickcolor if tickcolor is not None else _v _v = arg.pop('tickfont', None) - self.tickfont = tickfont if tickfont is not None else _v + self['tickfont'] = tickfont if tickfont is not None else _v _v = arg.pop('tickformat', None) - self.tickformat = tickformat if tickformat is not None else _v + self['tickformat'] = tickformat if tickformat is not None else _v _v = arg.pop('tickformatstops', None) - self.tickformatstops = tickformatstops if tickformatstops is not None else _v + self['tickformatstops' + ] = tickformatstops if tickformatstops is not None else _v _v = arg.pop('ticklen', None) - self.ticklen = ticklen if ticklen is not None else _v + self['ticklen'] = ticklen if ticklen is not None else _v _v = arg.pop('tickmode', None) - self.tickmode = tickmode if tickmode is not None else _v + self['tickmode'] = tickmode if tickmode is not None else _v _v = arg.pop('tickprefix', None) - self.tickprefix = tickprefix if tickprefix is not None else _v + self['tickprefix'] = tickprefix if tickprefix is not None else _v _v = arg.pop('ticks', None) - self.ticks = ticks if ticks is not None else _v + self['ticks'] = ticks if ticks is not None else _v _v = arg.pop('ticksuffix', None) - self.ticksuffix = ticksuffix if ticksuffix is not None else _v + self['ticksuffix'] = ticksuffix if ticksuffix is not None else _v _v = arg.pop('ticktext', None) - self.ticktext = ticktext if ticktext is not None else _v + self['ticktext'] = ticktext if ticktext is not None else _v _v = arg.pop('ticktextsrc', None) - self.ticktextsrc = ticktextsrc if ticktextsrc is not None else _v + self['ticktextsrc'] = ticktextsrc if ticktextsrc is not None else _v _v = arg.pop('tickvals', None) - self.tickvals = tickvals if tickvals is not None else _v + self['tickvals'] = tickvals if tickvals is not None else _v _v = arg.pop('tickvalssrc', None) - self.tickvalssrc = tickvalssrc if tickvalssrc is not None else _v + self['tickvalssrc'] = tickvalssrc if tickvalssrc is not None else _v _v = arg.pop('tickwidth', None) - self.tickwidth = tickwidth if tickwidth is not None else _v + self['tickwidth'] = tickwidth if tickwidth is not None else _v _v = arg.pop('title', None) - self.title = title if title is not None else _v + self['title'] = title if title is not None else _v _v = arg.pop('titlefont', None) - self.titlefont = titlefont if titlefont is not None else _v + self['titlefont'] = titlefont if titlefont is not None else _v _v = arg.pop('titleside', None) - self.titleside = titleside if titleside is not None else _v + self['titleside'] = titleside if titleside is not None else _v _v = arg.pop('x', None) - self.x = x if x is not None else _v + self['x'] = x if x is not None else _v _v = arg.pop('xanchor', None) - self.xanchor = xanchor if xanchor is not None else _v + self['xanchor'] = xanchor if xanchor is not None else _v _v = arg.pop('xpad', None) - self.xpad = xpad if xpad is not None else _v + self['xpad'] = xpad if xpad is not None else _v _v = arg.pop('y', None) - self.y = y if y is not None else _v + self['y'] = y if y is not None else _v _v = arg.pop('yanchor', None) - self.yanchor = yanchor if yanchor is not None else _v + self['yanchor'] = yanchor if yanchor is not None else _v _v = arg.pop('ypad', None) - self.ypad = ypad if ypad is not None else _v + self['ypad'] = ypad if ypad is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/parcoords/line/colorbar/_tickfont.py b/plotly/graph_objs/parcoords/line/colorbar/_tickfont.py index a9a3e8ace04..715a9f67c51 100644 --- a/plotly/graph_objs/parcoords/line/colorbar/_tickfont.py +++ b/plotly/graph_objs/parcoords/line/colorbar/_tickfont.py @@ -209,11 +209,11 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('family', None) - self.family = family if family is not None else _v + self['family'] = family if family is not None else _v _v = arg.pop('size', None) - self.size = size if size is not None else _v + self['size'] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/parcoords/line/colorbar/_tickformatstop.py b/plotly/graph_objs/parcoords/line/colorbar/_tickformatstop.py index afb8a788438..086abd073a0 100644 --- a/plotly/graph_objs/parcoords/line/colorbar/_tickformatstop.py +++ b/plotly/graph_objs/parcoords/line/colorbar/_tickformatstop.py @@ -260,15 +260,16 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('dtickrange', None) - self.dtickrange = dtickrange if dtickrange is not None else _v + self['dtickrange'] = dtickrange if dtickrange is not None else _v _v = arg.pop('enabled', None) - self.enabled = enabled if enabled is not None else _v + self['enabled'] = enabled if enabled is not None else _v _v = arg.pop('name', None) - self.name = name if name is not None else _v + self['name'] = name if name is not None else _v _v = arg.pop('templateitemname', None) - self.templateitemname = templateitemname if templateitemname is not None else _v + self['templateitemname' + ] = templateitemname if templateitemname is not None else _v _v = arg.pop('value', None) - self.value = value if value is not None else _v + self['value'] = value if value is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/parcoords/line/colorbar/_titlefont.py b/plotly/graph_objs/parcoords/line/colorbar/_titlefont.py index fdc07288cf6..bfc38dbabd0 100644 --- a/plotly/graph_objs/parcoords/line/colorbar/_titlefont.py +++ b/plotly/graph_objs/parcoords/line/colorbar/_titlefont.py @@ -209,11 +209,11 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('family', None) - self.family = family if family is not None else _v + self['family'] = family if family is not None else _v _v = arg.pop('size', None) - self.size = size if size is not None else _v + self['size'] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/pie/_domain.py b/plotly/graph_objs/pie/_domain.py index 31ac14487d6..dc491f908d7 100644 --- a/plotly/graph_objs/pie/_domain.py +++ b/plotly/graph_objs/pie/_domain.py @@ -184,13 +184,13 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('column', None) - self.column = column if column is not None else _v + self['column'] = column if column is not None else _v _v = arg.pop('row', None) - self.row = row if row is not None else _v + self['row'] = row if row is not None else _v _v = arg.pop('x', None) - self.x = x if x is not None else _v + self['x'] = x if x is not None else _v _v = arg.pop('y', None) - self.y = y if y is not None else _v + self['y'] = y if y is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/pie/_hoverlabel.py b/plotly/graph_objs/pie/_hoverlabel.py index 160ffb7c3d1..5b26c3ace2b 100644 --- a/plotly/graph_objs/pie/_hoverlabel.py +++ b/plotly/graph_objs/pie/_hoverlabel.py @@ -385,19 +385,21 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('bgcolor', None) - self.bgcolor = bgcolor if bgcolor is not None else _v + self['bgcolor'] = bgcolor if bgcolor is not None else _v _v = arg.pop('bgcolorsrc', None) - self.bgcolorsrc = bgcolorsrc if bgcolorsrc is not None else _v + self['bgcolorsrc'] = bgcolorsrc if bgcolorsrc is not None else _v _v = arg.pop('bordercolor', None) - self.bordercolor = bordercolor if bordercolor is not None else _v + self['bordercolor'] = bordercolor if bordercolor is not None else _v _v = arg.pop('bordercolorsrc', None) - self.bordercolorsrc = bordercolorsrc if bordercolorsrc is not None else _v + self['bordercolorsrc' + ] = bordercolorsrc if bordercolorsrc is not None else _v _v = arg.pop('font', None) - self.font = font if font is not None else _v + self['font'] = font if font is not None else _v _v = arg.pop('namelength', None) - self.namelength = namelength if namelength is not None else _v + self['namelength'] = namelength if namelength is not None else _v _v = arg.pop('namelengthsrc', None) - self.namelengthsrc = namelengthsrc if namelengthsrc is not None else _v + self['namelengthsrc' + ] = namelengthsrc if namelengthsrc is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/pie/_insidetextfont.py b/plotly/graph_objs/pie/_insidetextfont.py index ccc8ce37a36..d5b696e86ba 100644 --- a/plotly/graph_objs/pie/_insidetextfont.py +++ b/plotly/graph_objs/pie/_insidetextfont.py @@ -206,11 +206,11 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('family', None) - self.family = family if family is not None else _v + self['family'] = family if family is not None else _v _v = arg.pop('size', None) - self.size = size if size is not None else _v + self['size'] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/pie/_marker.py b/plotly/graph_objs/pie/_marker.py index 554602f7071..97b6415d947 100644 --- a/plotly/graph_objs/pie/_marker.py +++ b/plotly/graph_objs/pie/_marker.py @@ -160,11 +160,11 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('colors', None) - self.colors = colors if colors is not None else _v + self['colors'] = colors if colors is not None else _v _v = arg.pop('colorssrc', None) - self.colorssrc = colorssrc if colorssrc is not None else _v + self['colorssrc'] = colorssrc if colorssrc is not None else _v _v = arg.pop('line', None) - self.line = line if line is not None else _v + self['line'] = line if line is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/pie/_outsidetextfont.py b/plotly/graph_objs/pie/_outsidetextfont.py index b96e8794ea2..4fc0f440944 100644 --- a/plotly/graph_objs/pie/_outsidetextfont.py +++ b/plotly/graph_objs/pie/_outsidetextfont.py @@ -208,11 +208,11 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('family', None) - self.family = family if family is not None else _v + self['family'] = family if family is not None else _v _v = arg.pop('size', None) - self.size = size if size is not None else _v + self['size'] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/pie/_stream.py b/plotly/graph_objs/pie/_stream.py index 2b36679b880..9320c3baa69 100644 --- a/plotly/graph_objs/pie/_stream.py +++ b/plotly/graph_objs/pie/_stream.py @@ -122,9 +122,9 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('maxpoints', None) - self.maxpoints = maxpoints if maxpoints is not None else _v + self['maxpoints'] = maxpoints if maxpoints is not None else _v _v = arg.pop('token', None) - self.token = token if token is not None else _v + self['token'] = token if token is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/pie/_textfont.py b/plotly/graph_objs/pie/_textfont.py index 6c20696ef21..9947b8044c4 100644 --- a/plotly/graph_objs/pie/_textfont.py +++ b/plotly/graph_objs/pie/_textfont.py @@ -206,11 +206,11 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('family', None) - self.family = family if family is not None else _v + self['family'] = family if family is not None else _v _v = arg.pop('size', None) - self.size = size if size is not None else _v + self['size'] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/pie/hoverlabel/_font.py b/plotly/graph_objs/pie/hoverlabel/_font.py index d336de2ef69..c25b7a585f6 100644 --- a/plotly/graph_objs/pie/hoverlabel/_font.py +++ b/plotly/graph_objs/pie/hoverlabel/_font.py @@ -294,17 +294,17 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('colorsrc', None) - self.colorsrc = colorsrc if colorsrc is not None else _v + self['colorsrc'] = colorsrc if colorsrc is not None else _v _v = arg.pop('family', None) - self.family = family if family is not None else _v + self['family'] = family if family is not None else _v _v = arg.pop('familysrc', None) - self.familysrc = familysrc if familysrc is not None else _v + self['familysrc'] = familysrc if familysrc is not None else _v _v = arg.pop('size', None) - self.size = size if size is not None else _v + self['size'] = size if size is not None else _v _v = arg.pop('sizesrc', None) - self.sizesrc = sizesrc if sizesrc is not None else _v + self['sizesrc'] = sizesrc if sizesrc is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/pie/marker/_line.py b/plotly/graph_objs/pie/marker/_line.py index d11ae777ae1..b1e54cce32e 100644 --- a/plotly/graph_objs/pie/marker/_line.py +++ b/plotly/graph_objs/pie/marker/_line.py @@ -210,13 +210,13 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('colorsrc', None) - self.colorsrc = colorsrc if colorsrc is not None else _v + self['colorsrc'] = colorsrc if colorsrc is not None else _v _v = arg.pop('width', None) - self.width = width if width is not None else _v + self['width'] = width if width is not None else _v _v = arg.pop('widthsrc', None) - self.widthsrc = widthsrc if widthsrc is not None else _v + self['widthsrc'] = widthsrc if widthsrc is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/pointcloud/_hoverlabel.py b/plotly/graph_objs/pointcloud/_hoverlabel.py index eecb0510eb9..2e6f42abf99 100644 --- a/plotly/graph_objs/pointcloud/_hoverlabel.py +++ b/plotly/graph_objs/pointcloud/_hoverlabel.py @@ -385,19 +385,21 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('bgcolor', None) - self.bgcolor = bgcolor if bgcolor is not None else _v + self['bgcolor'] = bgcolor if bgcolor is not None else _v _v = arg.pop('bgcolorsrc', None) - self.bgcolorsrc = bgcolorsrc if bgcolorsrc is not None else _v + self['bgcolorsrc'] = bgcolorsrc if bgcolorsrc is not None else _v _v = arg.pop('bordercolor', None) - self.bordercolor = bordercolor if bordercolor is not None else _v + self['bordercolor'] = bordercolor if bordercolor is not None else _v _v = arg.pop('bordercolorsrc', None) - self.bordercolorsrc = bordercolorsrc if bordercolorsrc is not None else _v + self['bordercolorsrc' + ] = bordercolorsrc if bordercolorsrc is not None else _v _v = arg.pop('font', None) - self.font = font if font is not None else _v + self['font'] = font if font is not None else _v _v = arg.pop('namelength', None) - self.namelength = namelength if namelength is not None else _v + self['namelength'] = namelength if namelength is not None else _v _v = arg.pop('namelengthsrc', None) - self.namelengthsrc = namelengthsrc if namelengthsrc is not None else _v + self['namelengthsrc' + ] = namelengthsrc if namelengthsrc is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/pointcloud/_marker.py b/plotly/graph_objs/pointcloud/_marker.py index 755fef696b7..eff6a8033c6 100644 --- a/plotly/graph_objs/pointcloud/_marker.py +++ b/plotly/graph_objs/pointcloud/_marker.py @@ -313,17 +313,17 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('blend', None) - self.blend = blend if blend is not None else _v + self['blend'] = blend if blend is not None else _v _v = arg.pop('border', None) - self.border = border if border is not None else _v + self['border'] = border if border is not None else _v _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('opacity', None) - self.opacity = opacity if opacity is not None else _v + self['opacity'] = opacity if opacity is not None else _v _v = arg.pop('sizemax', None) - self.sizemax = sizemax if sizemax is not None else _v + self['sizemax'] = sizemax if sizemax is not None else _v _v = arg.pop('sizemin', None) - self.sizemin = sizemin if sizemin is not None else _v + self['sizemin'] = sizemin if sizemin is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/pointcloud/_stream.py b/plotly/graph_objs/pointcloud/_stream.py index ee441bfb48e..c1b9568c441 100644 --- a/plotly/graph_objs/pointcloud/_stream.py +++ b/plotly/graph_objs/pointcloud/_stream.py @@ -122,9 +122,9 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('maxpoints', None) - self.maxpoints = maxpoints if maxpoints is not None else _v + self['maxpoints'] = maxpoints if maxpoints is not None else _v _v = arg.pop('token', None) - self.token = token if token is not None else _v + self['token'] = token if token is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/pointcloud/hoverlabel/_font.py b/plotly/graph_objs/pointcloud/hoverlabel/_font.py index d2b15805982..d05a56b276f 100644 --- a/plotly/graph_objs/pointcloud/hoverlabel/_font.py +++ b/plotly/graph_objs/pointcloud/hoverlabel/_font.py @@ -295,17 +295,17 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('colorsrc', None) - self.colorsrc = colorsrc if colorsrc is not None else _v + self['colorsrc'] = colorsrc if colorsrc is not None else _v _v = arg.pop('family', None) - self.family = family if family is not None else _v + self['family'] = family if family is not None else _v _v = arg.pop('familysrc', None) - self.familysrc = familysrc if familysrc is not None else _v + self['familysrc'] = familysrc if familysrc is not None else _v _v = arg.pop('size', None) - self.size = size if size is not None else _v + self['size'] = size if size is not None else _v _v = arg.pop('sizesrc', None) - self.sizesrc = sizesrc if sizesrc is not None else _v + self['sizesrc'] = sizesrc if sizesrc is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/pointcloud/marker/_border.py b/plotly/graph_objs/pointcloud/marker/_border.py index 16e57abd6f2..7ec97a075b6 100644 --- a/plotly/graph_objs/pointcloud/marker/_border.py +++ b/plotly/graph_objs/pointcloud/marker/_border.py @@ -160,9 +160,9 @@ def __init__(self, arg=None, arearatio=None, color=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('arearatio', None) - self.arearatio = arearatio if arearatio is not None else _v + self['arearatio'] = arearatio if arearatio is not None else _v _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/sankey/_domain.py b/plotly/graph_objs/sankey/_domain.py index 3a99f1fc691..ce7827f063b 100644 --- a/plotly/graph_objs/sankey/_domain.py +++ b/plotly/graph_objs/sankey/_domain.py @@ -185,13 +185,13 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('column', None) - self.column = column if column is not None else _v + self['column'] = column if column is not None else _v _v = arg.pop('row', None) - self.row = row if row is not None else _v + self['row'] = row if row is not None else _v _v = arg.pop('x', None) - self.x = x if x is not None else _v + self['x'] = x if x is not None else _v _v = arg.pop('y', None) - self.y = y if y is not None else _v + self['y'] = y if y is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/sankey/_hoverlabel.py b/plotly/graph_objs/sankey/_hoverlabel.py index ab9c04a76f1..325e7d09bd1 100644 --- a/plotly/graph_objs/sankey/_hoverlabel.py +++ b/plotly/graph_objs/sankey/_hoverlabel.py @@ -385,19 +385,21 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('bgcolor', None) - self.bgcolor = bgcolor if bgcolor is not None else _v + self['bgcolor'] = bgcolor if bgcolor is not None else _v _v = arg.pop('bgcolorsrc', None) - self.bgcolorsrc = bgcolorsrc if bgcolorsrc is not None else _v + self['bgcolorsrc'] = bgcolorsrc if bgcolorsrc is not None else _v _v = arg.pop('bordercolor', None) - self.bordercolor = bordercolor if bordercolor is not None else _v + self['bordercolor'] = bordercolor if bordercolor is not None else _v _v = arg.pop('bordercolorsrc', None) - self.bordercolorsrc = bordercolorsrc if bordercolorsrc is not None else _v + self['bordercolorsrc' + ] = bordercolorsrc if bordercolorsrc is not None else _v _v = arg.pop('font', None) - self.font = font if font is not None else _v + self['font'] = font if font is not None else _v _v = arg.pop('namelength', None) - self.namelength = namelength if namelength is not None else _v + self['namelength'] = namelength if namelength is not None else _v _v = arg.pop('namelengthsrc', None) - self.namelengthsrc = namelengthsrc if namelengthsrc is not None else _v + self['namelengthsrc' + ] = namelengthsrc if namelengthsrc is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/sankey/_link.py b/plotly/graph_objs/sankey/_link.py index 836e81a5ff9..82439a9e4e5 100644 --- a/plotly/graph_objs/sankey/_link.py +++ b/plotly/graph_objs/sankey/_link.py @@ -423,27 +423,27 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('colorsrc', None) - self.colorsrc = colorsrc if colorsrc is not None else _v + self['colorsrc'] = colorsrc if colorsrc is not None else _v _v = arg.pop('label', None) - self.label = label if label is not None else _v + self['label'] = label if label is not None else _v _v = arg.pop('labelsrc', None) - self.labelsrc = labelsrc if labelsrc is not None else _v + self['labelsrc'] = labelsrc if labelsrc is not None else _v _v = arg.pop('line', None) - self.line = line if line is not None else _v + self['line'] = line if line is not None else _v _v = arg.pop('source', None) - self.source = source if source is not None else _v + self['source'] = source if source is not None else _v _v = arg.pop('sourcesrc', None) - self.sourcesrc = sourcesrc if sourcesrc is not None else _v + self['sourcesrc'] = sourcesrc if sourcesrc is not None else _v _v = arg.pop('target', None) - self.target = target if target is not None else _v + self['target'] = target if target is not None else _v _v = arg.pop('targetsrc', None) - self.targetsrc = targetsrc if targetsrc is not None else _v + self['targetsrc'] = targetsrc if targetsrc is not None else _v _v = arg.pop('value', None) - self.value = value if value is not None else _v + self['value'] = value if value is not None else _v _v = arg.pop('valuesrc', None) - self.valuesrc = valuesrc if valuesrc is not None else _v + self['valuesrc'] = valuesrc if valuesrc is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/sankey/_node.py b/plotly/graph_objs/sankey/_node.py index 7ee3b0c0372..d319a54430c 100644 --- a/plotly/graph_objs/sankey/_node.py +++ b/plotly/graph_objs/sankey/_node.py @@ -320,19 +320,19 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('colorsrc', None) - self.colorsrc = colorsrc if colorsrc is not None else _v + self['colorsrc'] = colorsrc if colorsrc is not None else _v _v = arg.pop('label', None) - self.label = label if label is not None else _v + self['label'] = label if label is not None else _v _v = arg.pop('labelsrc', None) - self.labelsrc = labelsrc if labelsrc is not None else _v + self['labelsrc'] = labelsrc if labelsrc is not None else _v _v = arg.pop('line', None) - self.line = line if line is not None else _v + self['line'] = line if line is not None else _v _v = arg.pop('pad', None) - self.pad = pad if pad is not None else _v + self['pad'] = pad if pad is not None else _v _v = arg.pop('thickness', None) - self.thickness = thickness if thickness is not None else _v + self['thickness'] = thickness if thickness is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/sankey/_stream.py b/plotly/graph_objs/sankey/_stream.py index fbf28505128..3e3f35f0970 100644 --- a/plotly/graph_objs/sankey/_stream.py +++ b/plotly/graph_objs/sankey/_stream.py @@ -122,9 +122,9 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('maxpoints', None) - self.maxpoints = maxpoints if maxpoints is not None else _v + self['maxpoints'] = maxpoints if maxpoints is not None else _v _v = arg.pop('token', None) - self.token = token if token is not None else _v + self['token'] = token if token is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/sankey/_textfont.py b/plotly/graph_objs/sankey/_textfont.py index f301f34bba7..b884c102d91 100644 --- a/plotly/graph_objs/sankey/_textfont.py +++ b/plotly/graph_objs/sankey/_textfont.py @@ -206,11 +206,11 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('family', None) - self.family = family if family is not None else _v + self['family'] = family if family is not None else _v _v = arg.pop('size', None) - self.size = size if size is not None else _v + self['size'] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/sankey/hoverlabel/_font.py b/plotly/graph_objs/sankey/hoverlabel/_font.py index 257d0d43976..76bb8b4066a 100644 --- a/plotly/graph_objs/sankey/hoverlabel/_font.py +++ b/plotly/graph_objs/sankey/hoverlabel/_font.py @@ -294,17 +294,17 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('colorsrc', None) - self.colorsrc = colorsrc if colorsrc is not None else _v + self['colorsrc'] = colorsrc if colorsrc is not None else _v _v = arg.pop('family', None) - self.family = family if family is not None else _v + self['family'] = family if family is not None else _v _v = arg.pop('familysrc', None) - self.familysrc = familysrc if familysrc is not None else _v + self['familysrc'] = familysrc if familysrc is not None else _v _v = arg.pop('size', None) - self.size = size if size is not None else _v + self['size'] = size if size is not None else _v _v = arg.pop('sizesrc', None) - self.sizesrc = sizesrc if sizesrc is not None else _v + self['sizesrc'] = sizesrc if sizesrc is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/sankey/link/_line.py b/plotly/graph_objs/sankey/link/_line.py index 62678032c96..c9c3349e1c5 100644 --- a/plotly/graph_objs/sankey/link/_line.py +++ b/plotly/graph_objs/sankey/link/_line.py @@ -210,13 +210,13 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('colorsrc', None) - self.colorsrc = colorsrc if colorsrc is not None else _v + self['colorsrc'] = colorsrc if colorsrc is not None else _v _v = arg.pop('width', None) - self.width = width if width is not None else _v + self['width'] = width if width is not None else _v _v = arg.pop('widthsrc', None) - self.widthsrc = widthsrc if widthsrc is not None else _v + self['widthsrc'] = widthsrc if widthsrc is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/sankey/node/_line.py b/plotly/graph_objs/sankey/node/_line.py index c8a58cd9b61..0f6114345f8 100644 --- a/plotly/graph_objs/sankey/node/_line.py +++ b/plotly/graph_objs/sankey/node/_line.py @@ -210,13 +210,13 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('colorsrc', None) - self.colorsrc = colorsrc if colorsrc is not None else _v + self['colorsrc'] = colorsrc if colorsrc is not None else _v _v = arg.pop('width', None) - self.width = width if width is not None else _v + self['width'] = width if width is not None else _v _v = arg.pop('widthsrc', None) - self.widthsrc = widthsrc if widthsrc is not None else _v + self['widthsrc'] = widthsrc if widthsrc is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/scatter/_error_x.py b/plotly/graph_objs/scatter/_error_x.py index 5b8a695d429..8b5fee1fe74 100644 --- a/plotly/graph_objs/scatter/_error_x.py +++ b/plotly/graph_objs/scatter/_error_x.py @@ -552,35 +552,37 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('array', None) - self.array = array if array is not None else _v + self['array'] = array if array is not None else _v _v = arg.pop('arrayminus', None) - self.arrayminus = arrayminus if arrayminus is not None else _v + self['arrayminus'] = arrayminus if arrayminus is not None else _v _v = arg.pop('arrayminussrc', None) - self.arrayminussrc = arrayminussrc if arrayminussrc is not None else _v + self['arrayminussrc' + ] = arrayminussrc if arrayminussrc is not None else _v _v = arg.pop('arraysrc', None) - self.arraysrc = arraysrc if arraysrc is not None else _v + self['arraysrc'] = arraysrc if arraysrc is not None else _v _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('copy_ystyle', None) - self.copy_ystyle = copy_ystyle if copy_ystyle is not None else _v + self['copy_ystyle'] = copy_ystyle if copy_ystyle is not None else _v _v = arg.pop('symmetric', None) - self.symmetric = symmetric if symmetric is not None else _v + self['symmetric'] = symmetric if symmetric is not None else _v _v = arg.pop('thickness', None) - self.thickness = thickness if thickness is not None else _v + self['thickness'] = thickness if thickness is not None else _v _v = arg.pop('traceref', None) - self.traceref = traceref if traceref is not None else _v + self['traceref'] = traceref if traceref is not None else _v _v = arg.pop('tracerefminus', None) - self.tracerefminus = tracerefminus if tracerefminus is not None else _v + self['tracerefminus' + ] = tracerefminus if tracerefminus is not None else _v _v = arg.pop('type', None) - self.type = type if type is not None else _v + self['type'] = type if type is not None else _v _v = arg.pop('value', None) - self.value = value if value is not None else _v + self['value'] = value if value is not None else _v _v = arg.pop('valueminus', None) - self.valueminus = valueminus if valueminus is not None else _v + self['valueminus'] = valueminus if valueminus is not None else _v _v = arg.pop('visible', None) - self.visible = visible if visible is not None else _v + self['visible'] = visible if visible is not None else _v _v = arg.pop('width', None) - self.width = width if width is not None else _v + self['width'] = width if width is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/scatter/_error_y.py b/plotly/graph_objs/scatter/_error_y.py index 522043720a2..81620d2137e 100644 --- a/plotly/graph_objs/scatter/_error_y.py +++ b/plotly/graph_objs/scatter/_error_y.py @@ -528,33 +528,35 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('array', None) - self.array = array if array is not None else _v + self['array'] = array if array is not None else _v _v = arg.pop('arrayminus', None) - self.arrayminus = arrayminus if arrayminus is not None else _v + self['arrayminus'] = arrayminus if arrayminus is not None else _v _v = arg.pop('arrayminussrc', None) - self.arrayminussrc = arrayminussrc if arrayminussrc is not None else _v + self['arrayminussrc' + ] = arrayminussrc if arrayminussrc is not None else _v _v = arg.pop('arraysrc', None) - self.arraysrc = arraysrc if arraysrc is not None else _v + self['arraysrc'] = arraysrc if arraysrc is not None else _v _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('symmetric', None) - self.symmetric = symmetric if symmetric is not None else _v + self['symmetric'] = symmetric if symmetric is not None else _v _v = arg.pop('thickness', None) - self.thickness = thickness if thickness is not None else _v + self['thickness'] = thickness if thickness is not None else _v _v = arg.pop('traceref', None) - self.traceref = traceref if traceref is not None else _v + self['traceref'] = traceref if traceref is not None else _v _v = arg.pop('tracerefminus', None) - self.tracerefminus = tracerefminus if tracerefminus is not None else _v + self['tracerefminus' + ] = tracerefminus if tracerefminus is not None else _v _v = arg.pop('type', None) - self.type = type if type is not None else _v + self['type'] = type if type is not None else _v _v = arg.pop('value', None) - self.value = value if value is not None else _v + self['value'] = value if value is not None else _v _v = arg.pop('valueminus', None) - self.valueminus = valueminus if valueminus is not None else _v + self['valueminus'] = valueminus if valueminus is not None else _v _v = arg.pop('visible', None) - self.visible = visible if visible is not None else _v + self['visible'] = visible if visible is not None else _v _v = arg.pop('width', None) - self.width = width if width is not None else _v + self['width'] = width if width is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/scatter/_hoverlabel.py b/plotly/graph_objs/scatter/_hoverlabel.py index a613a4471dc..3ac55c7aaad 100644 --- a/plotly/graph_objs/scatter/_hoverlabel.py +++ b/plotly/graph_objs/scatter/_hoverlabel.py @@ -385,19 +385,21 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('bgcolor', None) - self.bgcolor = bgcolor if bgcolor is not None else _v + self['bgcolor'] = bgcolor if bgcolor is not None else _v _v = arg.pop('bgcolorsrc', None) - self.bgcolorsrc = bgcolorsrc if bgcolorsrc is not None else _v + self['bgcolorsrc'] = bgcolorsrc if bgcolorsrc is not None else _v _v = arg.pop('bordercolor', None) - self.bordercolor = bordercolor if bordercolor is not None else _v + self['bordercolor'] = bordercolor if bordercolor is not None else _v _v = arg.pop('bordercolorsrc', None) - self.bordercolorsrc = bordercolorsrc if bordercolorsrc is not None else _v + self['bordercolorsrc' + ] = bordercolorsrc if bordercolorsrc is not None else _v _v = arg.pop('font', None) - self.font = font if font is not None else _v + self['font'] = font if font is not None else _v _v = arg.pop('namelength', None) - self.namelength = namelength if namelength is not None else _v + self['namelength'] = namelength if namelength is not None else _v _v = arg.pop('namelengthsrc', None) - self.namelengthsrc = namelengthsrc if namelengthsrc is not None else _v + self['namelengthsrc' + ] = namelengthsrc if namelengthsrc is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/scatter/_line.py b/plotly/graph_objs/scatter/_line.py index c6749b4d5ff..25bb9a73e1b 100644 --- a/plotly/graph_objs/scatter/_line.py +++ b/plotly/graph_objs/scatter/_line.py @@ -292,17 +292,17 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('dash', None) - self.dash = dash if dash is not None else _v + self['dash'] = dash if dash is not None else _v _v = arg.pop('shape', None) - self.shape = shape if shape is not None else _v + self['shape'] = shape if shape is not None else _v _v = arg.pop('simplify', None) - self.simplify = simplify if simplify is not None else _v + self['simplify'] = simplify if simplify is not None else _v _v = arg.pop('smoothing', None) - self.smoothing = smoothing if smoothing is not None else _v + self['smoothing'] = smoothing if smoothing is not None else _v _v = arg.pop('width', None) - self.width = width if width is not None else _v + self['width'] = width if width is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/scatter/_marker.py b/plotly/graph_objs/scatter/_marker.py index 86a54e7b58b..c638d0622e2 100644 --- a/plotly/graph_objs/scatter/_marker.py +++ b/plotly/graph_objs/scatter/_marker.py @@ -1195,49 +1195,50 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('autocolorscale', None) - self.autocolorscale = autocolorscale if autocolorscale is not None else _v + self['autocolorscale' + ] = autocolorscale if autocolorscale is not None else _v _v = arg.pop('cauto', None) - self.cauto = cauto if cauto is not None else _v + self['cauto'] = cauto if cauto is not None else _v _v = arg.pop('cmax', None) - self.cmax = cmax if cmax is not None else _v + self['cmax'] = cmax if cmax is not None else _v _v = arg.pop('cmin', None) - self.cmin = cmin if cmin is not None else _v + self['cmin'] = cmin if cmin is not None else _v _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('colorbar', None) - self.colorbar = colorbar if colorbar is not None else _v + self['colorbar'] = colorbar if colorbar is not None else _v _v = arg.pop('colorscale', None) - self.colorscale = colorscale if colorscale is not None else _v + self['colorscale'] = colorscale if colorscale is not None else _v _v = arg.pop('colorsrc', None) - self.colorsrc = colorsrc if colorsrc is not None else _v + self['colorsrc'] = colorsrc if colorsrc is not None else _v _v = arg.pop('gradient', None) - self.gradient = gradient if gradient is not None else _v + self['gradient'] = gradient if gradient is not None else _v _v = arg.pop('line', None) - self.line = line if line is not None else _v + self['line'] = line if line is not None else _v _v = arg.pop('maxdisplayed', None) - self.maxdisplayed = maxdisplayed if maxdisplayed is not None else _v + self['maxdisplayed'] = maxdisplayed if maxdisplayed is not None else _v _v = arg.pop('opacity', None) - self.opacity = opacity if opacity is not None else _v + self['opacity'] = opacity if opacity is not None else _v _v = arg.pop('opacitysrc', None) - self.opacitysrc = opacitysrc if opacitysrc is not None else _v + self['opacitysrc'] = opacitysrc if opacitysrc is not None else _v _v = arg.pop('reversescale', None) - self.reversescale = reversescale if reversescale is not None else _v + self['reversescale'] = reversescale if reversescale is not None else _v _v = arg.pop('showscale', None) - self.showscale = showscale if showscale is not None else _v + self['showscale'] = showscale if showscale is not None else _v _v = arg.pop('size', None) - self.size = size if size is not None else _v + self['size'] = size if size is not None else _v _v = arg.pop('sizemin', None) - self.sizemin = sizemin if sizemin is not None else _v + self['sizemin'] = sizemin if sizemin is not None else _v _v = arg.pop('sizemode', None) - self.sizemode = sizemode if sizemode is not None else _v + self['sizemode'] = sizemode if sizemode is not None else _v _v = arg.pop('sizeref', None) - self.sizeref = sizeref if sizeref is not None else _v + self['sizeref'] = sizeref if sizeref is not None else _v _v = arg.pop('sizesrc', None) - self.sizesrc = sizesrc if sizesrc is not None else _v + self['sizesrc'] = sizesrc if sizesrc is not None else _v _v = arg.pop('symbol', None) - self.symbol = symbol if symbol is not None else _v + self['symbol'] = symbol if symbol is not None else _v _v = arg.pop('symbolsrc', None) - self.symbolsrc = symbolsrc if symbolsrc is not None else _v + self['symbolsrc'] = symbolsrc if symbolsrc is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/scatter/_selected.py b/plotly/graph_objs/scatter/_selected.py index b55d4fd751b..827c42f667f 100644 --- a/plotly/graph_objs/scatter/_selected.py +++ b/plotly/graph_objs/scatter/_selected.py @@ -129,9 +129,9 @@ def __init__(self, arg=None, marker=None, textfont=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('marker', None) - self.marker = marker if marker is not None else _v + self['marker'] = marker if marker is not None else _v _v = arg.pop('textfont', None) - self.textfont = textfont if textfont is not None else _v + self['textfont'] = textfont if textfont is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/scatter/_stream.py b/plotly/graph_objs/scatter/_stream.py index 1a7b90131b1..8d6a3c40231 100644 --- a/plotly/graph_objs/scatter/_stream.py +++ b/plotly/graph_objs/scatter/_stream.py @@ -122,9 +122,9 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('maxpoints', None) - self.maxpoints = maxpoints if maxpoints is not None else _v + self['maxpoints'] = maxpoints if maxpoints is not None else _v _v = arg.pop('token', None) - self.token = token if token is not None else _v + self['token'] = token if token is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/scatter/_textfont.py b/plotly/graph_objs/scatter/_textfont.py index 0c127e0a229..bad911dc138 100644 --- a/plotly/graph_objs/scatter/_textfont.py +++ b/plotly/graph_objs/scatter/_textfont.py @@ -294,17 +294,17 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('colorsrc', None) - self.colorsrc = colorsrc if colorsrc is not None else _v + self['colorsrc'] = colorsrc if colorsrc is not None else _v _v = arg.pop('family', None) - self.family = family if family is not None else _v + self['family'] = family if family is not None else _v _v = arg.pop('familysrc', None) - self.familysrc = familysrc if familysrc is not None else _v + self['familysrc'] = familysrc if familysrc is not None else _v _v = arg.pop('size', None) - self.size = size if size is not None else _v + self['size'] = size if size is not None else _v _v = arg.pop('sizesrc', None) - self.sizesrc = sizesrc if sizesrc is not None else _v + self['sizesrc'] = sizesrc if sizesrc is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/scatter/_unselected.py b/plotly/graph_objs/scatter/_unselected.py index 29539d3a322..247426394ab 100644 --- a/plotly/graph_objs/scatter/_unselected.py +++ b/plotly/graph_objs/scatter/_unselected.py @@ -133,9 +133,9 @@ def __init__(self, arg=None, marker=None, textfont=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('marker', None) - self.marker = marker if marker is not None else _v + self['marker'] = marker if marker is not None else _v _v = arg.pop('textfont', None) - self.textfont = textfont if textfont is not None else _v + self['textfont'] = textfont if textfont is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/scatter/hoverlabel/_font.py b/plotly/graph_objs/scatter/hoverlabel/_font.py index 59b4c6a4352..62494128c33 100644 --- a/plotly/graph_objs/scatter/hoverlabel/_font.py +++ b/plotly/graph_objs/scatter/hoverlabel/_font.py @@ -295,17 +295,17 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('colorsrc', None) - self.colorsrc = colorsrc if colorsrc is not None else _v + self['colorsrc'] = colorsrc if colorsrc is not None else _v _v = arg.pop('family', None) - self.family = family if family is not None else _v + self['family'] = family if family is not None else _v _v = arg.pop('familysrc', None) - self.familysrc = familysrc if familysrc is not None else _v + self['familysrc'] = familysrc if familysrc is not None else _v _v = arg.pop('size', None) - self.size = size if size is not None else _v + self['size'] = size if size is not None else _v _v = arg.pop('sizesrc', None) - self.sizesrc = sizesrc if sizesrc is not None else _v + self['sizesrc'] = sizesrc if sizesrc is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/scatter/marker/_colorbar.py b/plotly/graph_objs/scatter/marker/_colorbar.py index 8b92e8e9707..e3e7462db0a 100644 --- a/plotly/graph_objs/scatter/marker/_colorbar.py +++ b/plotly/graph_objs/scatter/marker/_colorbar.py @@ -1672,89 +1672,96 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('bgcolor', None) - self.bgcolor = bgcolor if bgcolor is not None else _v + self['bgcolor'] = bgcolor if bgcolor is not None else _v _v = arg.pop('bordercolor', None) - self.bordercolor = bordercolor if bordercolor is not None else _v + self['bordercolor'] = bordercolor if bordercolor is not None else _v _v = arg.pop('borderwidth', None) - self.borderwidth = borderwidth if borderwidth is not None else _v + self['borderwidth'] = borderwidth if borderwidth is not None else _v _v = arg.pop('dtick', None) - self.dtick = dtick if dtick is not None else _v + self['dtick'] = dtick if dtick is not None else _v _v = arg.pop('exponentformat', None) - self.exponentformat = exponentformat if exponentformat is not None else _v + self['exponentformat' + ] = exponentformat if exponentformat is not None else _v _v = arg.pop('len', None) - self.len = len if len is not None else _v + self['len'] = len if len is not None else _v _v = arg.pop('lenmode', None) - self.lenmode = lenmode if lenmode is not None else _v + self['lenmode'] = lenmode if lenmode is not None else _v _v = arg.pop('nticks', None) - self.nticks = nticks if nticks is not None else _v + self['nticks'] = nticks if nticks is not None else _v _v = arg.pop('outlinecolor', None) - self.outlinecolor = outlinecolor if outlinecolor is not None else _v + self['outlinecolor'] = outlinecolor if outlinecolor is not None else _v _v = arg.pop('outlinewidth', None) - self.outlinewidth = outlinewidth if outlinewidth is not None else _v + self['outlinewidth'] = outlinewidth if outlinewidth is not None else _v _v = arg.pop('separatethousands', None) - self.separatethousands = separatethousands if separatethousands is not None else _v + self['separatethousands' + ] = separatethousands if separatethousands is not None else _v _v = arg.pop('showexponent', None) - self.showexponent = showexponent if showexponent is not None else _v + self['showexponent'] = showexponent if showexponent is not None else _v _v = arg.pop('showticklabels', None) - self.showticklabels = showticklabels if showticklabels is not None else _v + self['showticklabels' + ] = showticklabels if showticklabels is not None else _v _v = arg.pop('showtickprefix', None) - self.showtickprefix = showtickprefix if showtickprefix is not None else _v + self['showtickprefix' + ] = showtickprefix if showtickprefix is not None else _v _v = arg.pop('showticksuffix', None) - self.showticksuffix = showticksuffix if showticksuffix is not None else _v + self['showticksuffix' + ] = showticksuffix if showticksuffix is not None else _v _v = arg.pop('thickness', None) - self.thickness = thickness if thickness is not None else _v + self['thickness'] = thickness if thickness is not None else _v _v = arg.pop('thicknessmode', None) - self.thicknessmode = thicknessmode if thicknessmode is not None else _v + self['thicknessmode' + ] = thicknessmode if thicknessmode is not None else _v _v = arg.pop('tick0', None) - self.tick0 = tick0 if tick0 is not None else _v + self['tick0'] = tick0 if tick0 is not None else _v _v = arg.pop('tickangle', None) - self.tickangle = tickangle if tickangle is not None else _v + self['tickangle'] = tickangle if tickangle is not None else _v _v = arg.pop('tickcolor', None) - self.tickcolor = tickcolor if tickcolor is not None else _v + self['tickcolor'] = tickcolor if tickcolor is not None else _v _v = arg.pop('tickfont', None) - self.tickfont = tickfont if tickfont is not None else _v + self['tickfont'] = tickfont if tickfont is not None else _v _v = arg.pop('tickformat', None) - self.tickformat = tickformat if tickformat is not None else _v + self['tickformat'] = tickformat if tickformat is not None else _v _v = arg.pop('tickformatstops', None) - self.tickformatstops = tickformatstops if tickformatstops is not None else _v + self['tickformatstops' + ] = tickformatstops if tickformatstops is not None else _v _v = arg.pop('ticklen', None) - self.ticklen = ticklen if ticklen is not None else _v + self['ticklen'] = ticklen if ticklen is not None else _v _v = arg.pop('tickmode', None) - self.tickmode = tickmode if tickmode is not None else _v + self['tickmode'] = tickmode if tickmode is not None else _v _v = arg.pop('tickprefix', None) - self.tickprefix = tickprefix if tickprefix is not None else _v + self['tickprefix'] = tickprefix if tickprefix is not None else _v _v = arg.pop('ticks', None) - self.ticks = ticks if ticks is not None else _v + self['ticks'] = ticks if ticks is not None else _v _v = arg.pop('ticksuffix', None) - self.ticksuffix = ticksuffix if ticksuffix is not None else _v + self['ticksuffix'] = ticksuffix if ticksuffix is not None else _v _v = arg.pop('ticktext', None) - self.ticktext = ticktext if ticktext is not None else _v + self['ticktext'] = ticktext if ticktext is not None else _v _v = arg.pop('ticktextsrc', None) - self.ticktextsrc = ticktextsrc if ticktextsrc is not None else _v + self['ticktextsrc'] = ticktextsrc if ticktextsrc is not None else _v _v = arg.pop('tickvals', None) - self.tickvals = tickvals if tickvals is not None else _v + self['tickvals'] = tickvals if tickvals is not None else _v _v = arg.pop('tickvalssrc', None) - self.tickvalssrc = tickvalssrc if tickvalssrc is not None else _v + self['tickvalssrc'] = tickvalssrc if tickvalssrc is not None else _v _v = arg.pop('tickwidth', None) - self.tickwidth = tickwidth if tickwidth is not None else _v + self['tickwidth'] = tickwidth if tickwidth is not None else _v _v = arg.pop('title', None) - self.title = title if title is not None else _v + self['title'] = title if title is not None else _v _v = arg.pop('titlefont', None) - self.titlefont = titlefont if titlefont is not None else _v + self['titlefont'] = titlefont if titlefont is not None else _v _v = arg.pop('titleside', None) - self.titleside = titleside if titleside is not None else _v + self['titleside'] = titleside if titleside is not None else _v _v = arg.pop('x', None) - self.x = x if x is not None else _v + self['x'] = x if x is not None else _v _v = arg.pop('xanchor', None) - self.xanchor = xanchor if xanchor is not None else _v + self['xanchor'] = xanchor if xanchor is not None else _v _v = arg.pop('xpad', None) - self.xpad = xpad if xpad is not None else _v + self['xpad'] = xpad if xpad is not None else _v _v = arg.pop('y', None) - self.y = y if y is not None else _v + self['y'] = y if y is not None else _v _v = arg.pop('yanchor', None) - self.yanchor = yanchor if yanchor is not None else _v + self['yanchor'] = yanchor if yanchor is not None else _v _v = arg.pop('ypad', None) - self.ypad = ypad if ypad is not None else _v + self['ypad'] = ypad if ypad is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/scatter/marker/_gradient.py b/plotly/graph_objs/scatter/marker/_gradient.py index f21eb162842..2f20a441a23 100644 --- a/plotly/graph_objs/scatter/marker/_gradient.py +++ b/plotly/graph_objs/scatter/marker/_gradient.py @@ -215,13 +215,13 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('colorsrc', None) - self.colorsrc = colorsrc if colorsrc is not None else _v + self['colorsrc'] = colorsrc if colorsrc is not None else _v _v = arg.pop('type', None) - self.type = type if type is not None else _v + self['type'] = type if type is not None else _v _v = arg.pop('typesrc', None) - self.typesrc = typesrc if typesrc is not None else _v + self['typesrc'] = typesrc if typesrc is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/scatter/marker/_line.py b/plotly/graph_objs/scatter/marker/_line.py index d7a0c8808a0..8d5a8932f48 100644 --- a/plotly/graph_objs/scatter/marker/_line.py +++ b/plotly/graph_objs/scatter/marker/_line.py @@ -495,25 +495,26 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('autocolorscale', None) - self.autocolorscale = autocolorscale if autocolorscale is not None else _v + self['autocolorscale' + ] = autocolorscale if autocolorscale is not None else _v _v = arg.pop('cauto', None) - self.cauto = cauto if cauto is not None else _v + self['cauto'] = cauto if cauto is not None else _v _v = arg.pop('cmax', None) - self.cmax = cmax if cmax is not None else _v + self['cmax'] = cmax if cmax is not None else _v _v = arg.pop('cmin', None) - self.cmin = cmin if cmin is not None else _v + self['cmin'] = cmin if cmin is not None else _v _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('colorscale', None) - self.colorscale = colorscale if colorscale is not None else _v + self['colorscale'] = colorscale if colorscale is not None else _v _v = arg.pop('colorsrc', None) - self.colorsrc = colorsrc if colorsrc is not None else _v + self['colorsrc'] = colorsrc if colorsrc is not None else _v _v = arg.pop('reversescale', None) - self.reversescale = reversescale if reversescale is not None else _v + self['reversescale'] = reversescale if reversescale is not None else _v _v = arg.pop('width', None) - self.width = width if width is not None else _v + self['width'] = width if width is not None else _v _v = arg.pop('widthsrc', None) - self.widthsrc = widthsrc if widthsrc is not None else _v + self['widthsrc'] = widthsrc if widthsrc is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/scatter/marker/colorbar/_tickfont.py b/plotly/graph_objs/scatter/marker/colorbar/_tickfont.py index 0339140043f..e3f17e9de63 100644 --- a/plotly/graph_objs/scatter/marker/colorbar/_tickfont.py +++ b/plotly/graph_objs/scatter/marker/colorbar/_tickfont.py @@ -209,11 +209,11 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('family', None) - self.family = family if family is not None else _v + self['family'] = family if family is not None else _v _v = arg.pop('size', None) - self.size = size if size is not None else _v + self['size'] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/scatter/marker/colorbar/_tickformatstop.py b/plotly/graph_objs/scatter/marker/colorbar/_tickformatstop.py index 9f41001df85..0712abdd1fe 100644 --- a/plotly/graph_objs/scatter/marker/colorbar/_tickformatstop.py +++ b/plotly/graph_objs/scatter/marker/colorbar/_tickformatstop.py @@ -260,15 +260,16 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('dtickrange', None) - self.dtickrange = dtickrange if dtickrange is not None else _v + self['dtickrange'] = dtickrange if dtickrange is not None else _v _v = arg.pop('enabled', None) - self.enabled = enabled if enabled is not None else _v + self['enabled'] = enabled if enabled is not None else _v _v = arg.pop('name', None) - self.name = name if name is not None else _v + self['name'] = name if name is not None else _v _v = arg.pop('templateitemname', None) - self.templateitemname = templateitemname if templateitemname is not None else _v + self['templateitemname' + ] = templateitemname if templateitemname is not None else _v _v = arg.pop('value', None) - self.value = value if value is not None else _v + self['value'] = value if value is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/scatter/marker/colorbar/_titlefont.py b/plotly/graph_objs/scatter/marker/colorbar/_titlefont.py index bebc64a1a75..bd8e93cafa6 100644 --- a/plotly/graph_objs/scatter/marker/colorbar/_titlefont.py +++ b/plotly/graph_objs/scatter/marker/colorbar/_titlefont.py @@ -209,11 +209,11 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('family', None) - self.family = family if family is not None else _v + self['family'] = family if family is not None else _v _v = arg.pop('size', None) - self.size = size if size is not None else _v + self['size'] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/scatter/selected/_marker.py b/plotly/graph_objs/scatter/selected/_marker.py index e57288199f0..dd19f144697 100644 --- a/plotly/graph_objs/scatter/selected/_marker.py +++ b/plotly/graph_objs/scatter/selected/_marker.py @@ -176,11 +176,11 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('opacity', None) - self.opacity = opacity if opacity is not None else _v + self['opacity'] = opacity if opacity is not None else _v _v = arg.pop('size', None) - self.size = size if size is not None else _v + self['size'] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/scatter/selected/_textfont.py b/plotly/graph_objs/scatter/selected/_textfont.py index e7d3d6b20b9..720e71b8975 100644 --- a/plotly/graph_objs/scatter/selected/_textfont.py +++ b/plotly/graph_objs/scatter/selected/_textfont.py @@ -124,7 +124,7 @@ def __init__(self, arg=None, color=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/scatter/unselected/_marker.py b/plotly/graph_objs/scatter/unselected/_marker.py index 87732517f30..7b10f8b9b28 100644 --- a/plotly/graph_objs/scatter/unselected/_marker.py +++ b/plotly/graph_objs/scatter/unselected/_marker.py @@ -185,11 +185,11 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('opacity', None) - self.opacity = opacity if opacity is not None else _v + self['opacity'] = opacity if opacity is not None else _v _v = arg.pop('size', None) - self.size = size if size is not None else _v + self['size'] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/scatter/unselected/_textfont.py b/plotly/graph_objs/scatter/unselected/_textfont.py index e450c4960c7..c9a8cdf41ab 100644 --- a/plotly/graph_objs/scatter/unselected/_textfont.py +++ b/plotly/graph_objs/scatter/unselected/_textfont.py @@ -129,7 +129,7 @@ def __init__(self, arg=None, color=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/scatter3d/_error_x.py b/plotly/graph_objs/scatter3d/_error_x.py index eebabcdbb60..2d50a23caa5 100644 --- a/plotly/graph_objs/scatter3d/_error_x.py +++ b/plotly/graph_objs/scatter3d/_error_x.py @@ -552,35 +552,37 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('array', None) - self.array = array if array is not None else _v + self['array'] = array if array is not None else _v _v = arg.pop('arrayminus', None) - self.arrayminus = arrayminus if arrayminus is not None else _v + self['arrayminus'] = arrayminus if arrayminus is not None else _v _v = arg.pop('arrayminussrc', None) - self.arrayminussrc = arrayminussrc if arrayminussrc is not None else _v + self['arrayminussrc' + ] = arrayminussrc if arrayminussrc is not None else _v _v = arg.pop('arraysrc', None) - self.arraysrc = arraysrc if arraysrc is not None else _v + self['arraysrc'] = arraysrc if arraysrc is not None else _v _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('copy_zstyle', None) - self.copy_zstyle = copy_zstyle if copy_zstyle is not None else _v + self['copy_zstyle'] = copy_zstyle if copy_zstyle is not None else _v _v = arg.pop('symmetric', None) - self.symmetric = symmetric if symmetric is not None else _v + self['symmetric'] = symmetric if symmetric is not None else _v _v = arg.pop('thickness', None) - self.thickness = thickness if thickness is not None else _v + self['thickness'] = thickness if thickness is not None else _v _v = arg.pop('traceref', None) - self.traceref = traceref if traceref is not None else _v + self['traceref'] = traceref if traceref is not None else _v _v = arg.pop('tracerefminus', None) - self.tracerefminus = tracerefminus if tracerefminus is not None else _v + self['tracerefminus' + ] = tracerefminus if tracerefminus is not None else _v _v = arg.pop('type', None) - self.type = type if type is not None else _v + self['type'] = type if type is not None else _v _v = arg.pop('value', None) - self.value = value if value is not None else _v + self['value'] = value if value is not None else _v _v = arg.pop('valueminus', None) - self.valueminus = valueminus if valueminus is not None else _v + self['valueminus'] = valueminus if valueminus is not None else _v _v = arg.pop('visible', None) - self.visible = visible if visible is not None else _v + self['visible'] = visible if visible is not None else _v _v = arg.pop('width', None) - self.width = width if width is not None else _v + self['width'] = width if width is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/scatter3d/_error_y.py b/plotly/graph_objs/scatter3d/_error_y.py index 9512b22a437..2e918e9914e 100644 --- a/plotly/graph_objs/scatter3d/_error_y.py +++ b/plotly/graph_objs/scatter3d/_error_y.py @@ -552,35 +552,37 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('array', None) - self.array = array if array is not None else _v + self['array'] = array if array is not None else _v _v = arg.pop('arrayminus', None) - self.arrayminus = arrayminus if arrayminus is not None else _v + self['arrayminus'] = arrayminus if arrayminus is not None else _v _v = arg.pop('arrayminussrc', None) - self.arrayminussrc = arrayminussrc if arrayminussrc is not None else _v + self['arrayminussrc' + ] = arrayminussrc if arrayminussrc is not None else _v _v = arg.pop('arraysrc', None) - self.arraysrc = arraysrc if arraysrc is not None else _v + self['arraysrc'] = arraysrc if arraysrc is not None else _v _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('copy_zstyle', None) - self.copy_zstyle = copy_zstyle if copy_zstyle is not None else _v + self['copy_zstyle'] = copy_zstyle if copy_zstyle is not None else _v _v = arg.pop('symmetric', None) - self.symmetric = symmetric if symmetric is not None else _v + self['symmetric'] = symmetric if symmetric is not None else _v _v = arg.pop('thickness', None) - self.thickness = thickness if thickness is not None else _v + self['thickness'] = thickness if thickness is not None else _v _v = arg.pop('traceref', None) - self.traceref = traceref if traceref is not None else _v + self['traceref'] = traceref if traceref is not None else _v _v = arg.pop('tracerefminus', None) - self.tracerefminus = tracerefminus if tracerefminus is not None else _v + self['tracerefminus' + ] = tracerefminus if tracerefminus is not None else _v _v = arg.pop('type', None) - self.type = type if type is not None else _v + self['type'] = type if type is not None else _v _v = arg.pop('value', None) - self.value = value if value is not None else _v + self['value'] = value if value is not None else _v _v = arg.pop('valueminus', None) - self.valueminus = valueminus if valueminus is not None else _v + self['valueminus'] = valueminus if valueminus is not None else _v _v = arg.pop('visible', None) - self.visible = visible if visible is not None else _v + self['visible'] = visible if visible is not None else _v _v = arg.pop('width', None) - self.width = width if width is not None else _v + self['width'] = width if width is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/scatter3d/_error_z.py b/plotly/graph_objs/scatter3d/_error_z.py index 2aee5852590..ccbfab309b2 100644 --- a/plotly/graph_objs/scatter3d/_error_z.py +++ b/plotly/graph_objs/scatter3d/_error_z.py @@ -528,33 +528,35 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('array', None) - self.array = array if array is not None else _v + self['array'] = array if array is not None else _v _v = arg.pop('arrayminus', None) - self.arrayminus = arrayminus if arrayminus is not None else _v + self['arrayminus'] = arrayminus if arrayminus is not None else _v _v = arg.pop('arrayminussrc', None) - self.arrayminussrc = arrayminussrc if arrayminussrc is not None else _v + self['arrayminussrc' + ] = arrayminussrc if arrayminussrc is not None else _v _v = arg.pop('arraysrc', None) - self.arraysrc = arraysrc if arraysrc is not None else _v + self['arraysrc'] = arraysrc if arraysrc is not None else _v _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('symmetric', None) - self.symmetric = symmetric if symmetric is not None else _v + self['symmetric'] = symmetric if symmetric is not None else _v _v = arg.pop('thickness', None) - self.thickness = thickness if thickness is not None else _v + self['thickness'] = thickness if thickness is not None else _v _v = arg.pop('traceref', None) - self.traceref = traceref if traceref is not None else _v + self['traceref'] = traceref if traceref is not None else _v _v = arg.pop('tracerefminus', None) - self.tracerefminus = tracerefminus if tracerefminus is not None else _v + self['tracerefminus' + ] = tracerefminus if tracerefminus is not None else _v _v = arg.pop('type', None) - self.type = type if type is not None else _v + self['type'] = type if type is not None else _v _v = arg.pop('value', None) - self.value = value if value is not None else _v + self['value'] = value if value is not None else _v _v = arg.pop('valueminus', None) - self.valueminus = valueminus if valueminus is not None else _v + self['valueminus'] = valueminus if valueminus is not None else _v _v = arg.pop('visible', None) - self.visible = visible if visible is not None else _v + self['visible'] = visible if visible is not None else _v _v = arg.pop('width', None) - self.width = width if width is not None else _v + self['width'] = width if width is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/scatter3d/_hoverlabel.py b/plotly/graph_objs/scatter3d/_hoverlabel.py index 9de99bfbaee..0084fb3a92f 100644 --- a/plotly/graph_objs/scatter3d/_hoverlabel.py +++ b/plotly/graph_objs/scatter3d/_hoverlabel.py @@ -385,19 +385,21 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('bgcolor', None) - self.bgcolor = bgcolor if bgcolor is not None else _v + self['bgcolor'] = bgcolor if bgcolor is not None else _v _v = arg.pop('bgcolorsrc', None) - self.bgcolorsrc = bgcolorsrc if bgcolorsrc is not None else _v + self['bgcolorsrc'] = bgcolorsrc if bgcolorsrc is not None else _v _v = arg.pop('bordercolor', None) - self.bordercolor = bordercolor if bordercolor is not None else _v + self['bordercolor'] = bordercolor if bordercolor is not None else _v _v = arg.pop('bordercolorsrc', None) - self.bordercolorsrc = bordercolorsrc if bordercolorsrc is not None else _v + self['bordercolorsrc' + ] = bordercolorsrc if bordercolorsrc is not None else _v _v = arg.pop('font', None) - self.font = font if font is not None else _v + self['font'] = font if font is not None else _v _v = arg.pop('namelength', None) - self.namelength = namelength if namelength is not None else _v + self['namelength'] = namelength if namelength is not None else _v _v = arg.pop('namelengthsrc', None) - self.namelengthsrc = namelengthsrc if namelengthsrc is not None else _v + self['namelengthsrc' + ] = namelengthsrc if namelengthsrc is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/scatter3d/_line.py b/plotly/graph_objs/scatter3d/_line.py index 020180cbf7b..47c79c2777b 100644 --- a/plotly/graph_objs/scatter3d/_line.py +++ b/plotly/graph_objs/scatter3d/_line.py @@ -483,25 +483,26 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('autocolorscale', None) - self.autocolorscale = autocolorscale if autocolorscale is not None else _v + self['autocolorscale' + ] = autocolorscale if autocolorscale is not None else _v _v = arg.pop('cauto', None) - self.cauto = cauto if cauto is not None else _v + self['cauto'] = cauto if cauto is not None else _v _v = arg.pop('cmax', None) - self.cmax = cmax if cmax is not None else _v + self['cmax'] = cmax if cmax is not None else _v _v = arg.pop('cmin', None) - self.cmin = cmin if cmin is not None else _v + self['cmin'] = cmin if cmin is not None else _v _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('colorscale', None) - self.colorscale = colorscale if colorscale is not None else _v + self['colorscale'] = colorscale if colorscale is not None else _v _v = arg.pop('colorsrc', None) - self.colorsrc = colorsrc if colorsrc is not None else _v + self['colorsrc'] = colorsrc if colorsrc is not None else _v _v = arg.pop('dash', None) - self.dash = dash if dash is not None else _v + self['dash'] = dash if dash is not None else _v _v = arg.pop('reversescale', None) - self.reversescale = reversescale if reversescale is not None else _v + self['reversescale'] = reversescale if reversescale is not None else _v _v = arg.pop('width', None) - self.width = width if width is not None else _v + self['width'] = width if width is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/scatter3d/_marker.py b/plotly/graph_objs/scatter3d/_marker.py index 7292839a23f..ed378b9188c 100644 --- a/plotly/graph_objs/scatter3d/_marker.py +++ b/plotly/graph_objs/scatter3d/_marker.py @@ -1033,43 +1033,44 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('autocolorscale', None) - self.autocolorscale = autocolorscale if autocolorscale is not None else _v + self['autocolorscale' + ] = autocolorscale if autocolorscale is not None else _v _v = arg.pop('cauto', None) - self.cauto = cauto if cauto is not None else _v + self['cauto'] = cauto if cauto is not None else _v _v = arg.pop('cmax', None) - self.cmax = cmax if cmax is not None else _v + self['cmax'] = cmax if cmax is not None else _v _v = arg.pop('cmin', None) - self.cmin = cmin if cmin is not None else _v + self['cmin'] = cmin if cmin is not None else _v _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('colorbar', None) - self.colorbar = colorbar if colorbar is not None else _v + self['colorbar'] = colorbar if colorbar is not None else _v _v = arg.pop('colorscale', None) - self.colorscale = colorscale if colorscale is not None else _v + self['colorscale'] = colorscale if colorscale is not None else _v _v = arg.pop('colorsrc', None) - self.colorsrc = colorsrc if colorsrc is not None else _v + self['colorsrc'] = colorsrc if colorsrc is not None else _v _v = arg.pop('line', None) - self.line = line if line is not None else _v + self['line'] = line if line is not None else _v _v = arg.pop('opacity', None) - self.opacity = opacity if opacity is not None else _v + self['opacity'] = opacity if opacity is not None else _v _v = arg.pop('reversescale', None) - self.reversescale = reversescale if reversescale is not None else _v + self['reversescale'] = reversescale if reversescale is not None else _v _v = arg.pop('showscale', None) - self.showscale = showscale if showscale is not None else _v + self['showscale'] = showscale if showscale is not None else _v _v = arg.pop('size', None) - self.size = size if size is not None else _v + self['size'] = size if size is not None else _v _v = arg.pop('sizemin', None) - self.sizemin = sizemin if sizemin is not None else _v + self['sizemin'] = sizemin if sizemin is not None else _v _v = arg.pop('sizemode', None) - self.sizemode = sizemode if sizemode is not None else _v + self['sizemode'] = sizemode if sizemode is not None else _v _v = arg.pop('sizeref', None) - self.sizeref = sizeref if sizeref is not None else _v + self['sizeref'] = sizeref if sizeref is not None else _v _v = arg.pop('sizesrc', None) - self.sizesrc = sizesrc if sizesrc is not None else _v + self['sizesrc'] = sizesrc if sizesrc is not None else _v _v = arg.pop('symbol', None) - self.symbol = symbol if symbol is not None else _v + self['symbol'] = symbol if symbol is not None else _v _v = arg.pop('symbolsrc', None) - self.symbolsrc = symbolsrc if symbolsrc is not None else _v + self['symbolsrc'] = symbolsrc if symbolsrc is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/scatter3d/_projection.py b/plotly/graph_objs/scatter3d/_projection.py index f65fda38160..d61682d0113 100644 --- a/plotly/graph_objs/scatter3d/_projection.py +++ b/plotly/graph_objs/scatter3d/_projection.py @@ -176,11 +176,11 @@ def __init__(self, arg=None, x=None, y=None, z=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('x', None) - self.x = x if x is not None else _v + self['x'] = x if x is not None else _v _v = arg.pop('y', None) - self.y = y if y is not None else _v + self['y'] = y if y is not None else _v _v = arg.pop('z', None) - self.z = z if z is not None else _v + self['z'] = z if z is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/scatter3d/_stream.py b/plotly/graph_objs/scatter3d/_stream.py index bc6b2335735..a3af5251e86 100644 --- a/plotly/graph_objs/scatter3d/_stream.py +++ b/plotly/graph_objs/scatter3d/_stream.py @@ -122,9 +122,9 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('maxpoints', None) - self.maxpoints = maxpoints if maxpoints is not None else _v + self['maxpoints'] = maxpoints if maxpoints is not None else _v _v = arg.pop('token', None) - self.token = token if token is not None else _v + self['token'] = token if token is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/scatter3d/_textfont.py b/plotly/graph_objs/scatter3d/_textfont.py index 4f2a8e8a242..706e89f5877 100644 --- a/plotly/graph_objs/scatter3d/_textfont.py +++ b/plotly/graph_objs/scatter3d/_textfont.py @@ -265,15 +265,15 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('colorsrc', None) - self.colorsrc = colorsrc if colorsrc is not None else _v + self['colorsrc'] = colorsrc if colorsrc is not None else _v _v = arg.pop('family', None) - self.family = family if family is not None else _v + self['family'] = family if family is not None else _v _v = arg.pop('size', None) - self.size = size if size is not None else _v + self['size'] = size if size is not None else _v _v = arg.pop('sizesrc', None) - self.sizesrc = sizesrc if sizesrc is not None else _v + self['sizesrc'] = sizesrc if sizesrc is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/scatter3d/hoverlabel/_font.py b/plotly/graph_objs/scatter3d/hoverlabel/_font.py index 42fd29f7130..4dc64a4dca7 100644 --- a/plotly/graph_objs/scatter3d/hoverlabel/_font.py +++ b/plotly/graph_objs/scatter3d/hoverlabel/_font.py @@ -295,17 +295,17 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('colorsrc', None) - self.colorsrc = colorsrc if colorsrc is not None else _v + self['colorsrc'] = colorsrc if colorsrc is not None else _v _v = arg.pop('family', None) - self.family = family if family is not None else _v + self['family'] = family if family is not None else _v _v = arg.pop('familysrc', None) - self.familysrc = familysrc if familysrc is not None else _v + self['familysrc'] = familysrc if familysrc is not None else _v _v = arg.pop('size', None) - self.size = size if size is not None else _v + self['size'] = size if size is not None else _v _v = arg.pop('sizesrc', None) - self.sizesrc = sizesrc if sizesrc is not None else _v + self['sizesrc'] = sizesrc if sizesrc is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/scatter3d/marker/_colorbar.py b/plotly/graph_objs/scatter3d/marker/_colorbar.py index 5c568945f5b..1762b3dcece 100644 --- a/plotly/graph_objs/scatter3d/marker/_colorbar.py +++ b/plotly/graph_objs/scatter3d/marker/_colorbar.py @@ -1672,89 +1672,96 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('bgcolor', None) - self.bgcolor = bgcolor if bgcolor is not None else _v + self['bgcolor'] = bgcolor if bgcolor is not None else _v _v = arg.pop('bordercolor', None) - self.bordercolor = bordercolor if bordercolor is not None else _v + self['bordercolor'] = bordercolor if bordercolor is not None else _v _v = arg.pop('borderwidth', None) - self.borderwidth = borderwidth if borderwidth is not None else _v + self['borderwidth'] = borderwidth if borderwidth is not None else _v _v = arg.pop('dtick', None) - self.dtick = dtick if dtick is not None else _v + self['dtick'] = dtick if dtick is not None else _v _v = arg.pop('exponentformat', None) - self.exponentformat = exponentformat if exponentformat is not None else _v + self['exponentformat' + ] = exponentformat if exponentformat is not None else _v _v = arg.pop('len', None) - self.len = len if len is not None else _v + self['len'] = len if len is not None else _v _v = arg.pop('lenmode', None) - self.lenmode = lenmode if lenmode is not None else _v + self['lenmode'] = lenmode if lenmode is not None else _v _v = arg.pop('nticks', None) - self.nticks = nticks if nticks is not None else _v + self['nticks'] = nticks if nticks is not None else _v _v = arg.pop('outlinecolor', None) - self.outlinecolor = outlinecolor if outlinecolor is not None else _v + self['outlinecolor'] = outlinecolor if outlinecolor is not None else _v _v = arg.pop('outlinewidth', None) - self.outlinewidth = outlinewidth if outlinewidth is not None else _v + self['outlinewidth'] = outlinewidth if outlinewidth is not None else _v _v = arg.pop('separatethousands', None) - self.separatethousands = separatethousands if separatethousands is not None else _v + self['separatethousands' + ] = separatethousands if separatethousands is not None else _v _v = arg.pop('showexponent', None) - self.showexponent = showexponent if showexponent is not None else _v + self['showexponent'] = showexponent if showexponent is not None else _v _v = arg.pop('showticklabels', None) - self.showticklabels = showticklabels if showticklabels is not None else _v + self['showticklabels' + ] = showticklabels if showticklabels is not None else _v _v = arg.pop('showtickprefix', None) - self.showtickprefix = showtickprefix if showtickprefix is not None else _v + self['showtickprefix' + ] = showtickprefix if showtickprefix is not None else _v _v = arg.pop('showticksuffix', None) - self.showticksuffix = showticksuffix if showticksuffix is not None else _v + self['showticksuffix' + ] = showticksuffix if showticksuffix is not None else _v _v = arg.pop('thickness', None) - self.thickness = thickness if thickness is not None else _v + self['thickness'] = thickness if thickness is not None else _v _v = arg.pop('thicknessmode', None) - self.thicknessmode = thicknessmode if thicknessmode is not None else _v + self['thicknessmode' + ] = thicknessmode if thicknessmode is not None else _v _v = arg.pop('tick0', None) - self.tick0 = tick0 if tick0 is not None else _v + self['tick0'] = tick0 if tick0 is not None else _v _v = arg.pop('tickangle', None) - self.tickangle = tickangle if tickangle is not None else _v + self['tickangle'] = tickangle if tickangle is not None else _v _v = arg.pop('tickcolor', None) - self.tickcolor = tickcolor if tickcolor is not None else _v + self['tickcolor'] = tickcolor if tickcolor is not None else _v _v = arg.pop('tickfont', None) - self.tickfont = tickfont if tickfont is not None else _v + self['tickfont'] = tickfont if tickfont is not None else _v _v = arg.pop('tickformat', None) - self.tickformat = tickformat if tickformat is not None else _v + self['tickformat'] = tickformat if tickformat is not None else _v _v = arg.pop('tickformatstops', None) - self.tickformatstops = tickformatstops if tickformatstops is not None else _v + self['tickformatstops' + ] = tickformatstops if tickformatstops is not None else _v _v = arg.pop('ticklen', None) - self.ticklen = ticklen if ticklen is not None else _v + self['ticklen'] = ticklen if ticklen is not None else _v _v = arg.pop('tickmode', None) - self.tickmode = tickmode if tickmode is not None else _v + self['tickmode'] = tickmode if tickmode is not None else _v _v = arg.pop('tickprefix', None) - self.tickprefix = tickprefix if tickprefix is not None else _v + self['tickprefix'] = tickprefix if tickprefix is not None else _v _v = arg.pop('ticks', None) - self.ticks = ticks if ticks is not None else _v + self['ticks'] = ticks if ticks is not None else _v _v = arg.pop('ticksuffix', None) - self.ticksuffix = ticksuffix if ticksuffix is not None else _v + self['ticksuffix'] = ticksuffix if ticksuffix is not None else _v _v = arg.pop('ticktext', None) - self.ticktext = ticktext if ticktext is not None else _v + self['ticktext'] = ticktext if ticktext is not None else _v _v = arg.pop('ticktextsrc', None) - self.ticktextsrc = ticktextsrc if ticktextsrc is not None else _v + self['ticktextsrc'] = ticktextsrc if ticktextsrc is not None else _v _v = arg.pop('tickvals', None) - self.tickvals = tickvals if tickvals is not None else _v + self['tickvals'] = tickvals if tickvals is not None else _v _v = arg.pop('tickvalssrc', None) - self.tickvalssrc = tickvalssrc if tickvalssrc is not None else _v + self['tickvalssrc'] = tickvalssrc if tickvalssrc is not None else _v _v = arg.pop('tickwidth', None) - self.tickwidth = tickwidth if tickwidth is not None else _v + self['tickwidth'] = tickwidth if tickwidth is not None else _v _v = arg.pop('title', None) - self.title = title if title is not None else _v + self['title'] = title if title is not None else _v _v = arg.pop('titlefont', None) - self.titlefont = titlefont if titlefont is not None else _v + self['titlefont'] = titlefont if titlefont is not None else _v _v = arg.pop('titleside', None) - self.titleside = titleside if titleside is not None else _v + self['titleside'] = titleside if titleside is not None else _v _v = arg.pop('x', None) - self.x = x if x is not None else _v + self['x'] = x if x is not None else _v _v = arg.pop('xanchor', None) - self.xanchor = xanchor if xanchor is not None else _v + self['xanchor'] = xanchor if xanchor is not None else _v _v = arg.pop('xpad', None) - self.xpad = xpad if xpad is not None else _v + self['xpad'] = xpad if xpad is not None else _v _v = arg.pop('y', None) - self.y = y if y is not None else _v + self['y'] = y if y is not None else _v _v = arg.pop('yanchor', None) - self.yanchor = yanchor if yanchor is not None else _v + self['yanchor'] = yanchor if yanchor is not None else _v _v = arg.pop('ypad', None) - self.ypad = ypad if ypad is not None else _v + self['ypad'] = ypad if ypad is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/scatter3d/marker/_line.py b/plotly/graph_objs/scatter3d/marker/_line.py index 3257ece4223..b1627431531 100644 --- a/plotly/graph_objs/scatter3d/marker/_line.py +++ b/plotly/graph_objs/scatter3d/marker/_line.py @@ -468,23 +468,24 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('autocolorscale', None) - self.autocolorscale = autocolorscale if autocolorscale is not None else _v + self['autocolorscale' + ] = autocolorscale if autocolorscale is not None else _v _v = arg.pop('cauto', None) - self.cauto = cauto if cauto is not None else _v + self['cauto'] = cauto if cauto is not None else _v _v = arg.pop('cmax', None) - self.cmax = cmax if cmax is not None else _v + self['cmax'] = cmax if cmax is not None else _v _v = arg.pop('cmin', None) - self.cmin = cmin if cmin is not None else _v + self['cmin'] = cmin if cmin is not None else _v _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('colorscale', None) - self.colorscale = colorscale if colorscale is not None else _v + self['colorscale'] = colorscale if colorscale is not None else _v _v = arg.pop('colorsrc', None) - self.colorsrc = colorsrc if colorsrc is not None else _v + self['colorsrc'] = colorsrc if colorsrc is not None else _v _v = arg.pop('reversescale', None) - self.reversescale = reversescale if reversescale is not None else _v + self['reversescale'] = reversescale if reversescale is not None else _v _v = arg.pop('width', None) - self.width = width if width is not None else _v + self['width'] = width if width is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/scatter3d/marker/colorbar/_tickfont.py b/plotly/graph_objs/scatter3d/marker/colorbar/_tickfont.py index 99cf74da395..602dc58fefc 100644 --- a/plotly/graph_objs/scatter3d/marker/colorbar/_tickfont.py +++ b/plotly/graph_objs/scatter3d/marker/colorbar/_tickfont.py @@ -209,11 +209,11 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('family', None) - self.family = family if family is not None else _v + self['family'] = family if family is not None else _v _v = arg.pop('size', None) - self.size = size if size is not None else _v + self['size'] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/scatter3d/marker/colorbar/_tickformatstop.py b/plotly/graph_objs/scatter3d/marker/colorbar/_tickformatstop.py index 9fe23689190..39e30fefaf8 100644 --- a/plotly/graph_objs/scatter3d/marker/colorbar/_tickformatstop.py +++ b/plotly/graph_objs/scatter3d/marker/colorbar/_tickformatstop.py @@ -260,15 +260,16 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('dtickrange', None) - self.dtickrange = dtickrange if dtickrange is not None else _v + self['dtickrange'] = dtickrange if dtickrange is not None else _v _v = arg.pop('enabled', None) - self.enabled = enabled if enabled is not None else _v + self['enabled'] = enabled if enabled is not None else _v _v = arg.pop('name', None) - self.name = name if name is not None else _v + self['name'] = name if name is not None else _v _v = arg.pop('templateitemname', None) - self.templateitemname = templateitemname if templateitemname is not None else _v + self['templateitemname' + ] = templateitemname if templateitemname is not None else _v _v = arg.pop('value', None) - self.value = value if value is not None else _v + self['value'] = value if value is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/scatter3d/marker/colorbar/_titlefont.py b/plotly/graph_objs/scatter3d/marker/colorbar/_titlefont.py index 34d74bf19e8..9f3c4d1be09 100644 --- a/plotly/graph_objs/scatter3d/marker/colorbar/_titlefont.py +++ b/plotly/graph_objs/scatter3d/marker/colorbar/_titlefont.py @@ -209,11 +209,11 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('family', None) - self.family = family if family is not None else _v + self['family'] = family if family is not None else _v _v = arg.pop('size', None) - self.size = size if size is not None else _v + self['size'] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/scatter3d/projection/_x.py b/plotly/graph_objs/scatter3d/projection/_x.py index 095155d91a6..30fd60dbbe9 100644 --- a/plotly/graph_objs/scatter3d/projection/_x.py +++ b/plotly/graph_objs/scatter3d/projection/_x.py @@ -141,11 +141,11 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('opacity', None) - self.opacity = opacity if opacity is not None else _v + self['opacity'] = opacity if opacity is not None else _v _v = arg.pop('scale', None) - self.scale = scale if scale is not None else _v + self['scale'] = scale if scale is not None else _v _v = arg.pop('show', None) - self.show = show if show is not None else _v + self['show'] = show if show is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/scatter3d/projection/_y.py b/plotly/graph_objs/scatter3d/projection/_y.py index d79b6102547..e0336bf34c1 100644 --- a/plotly/graph_objs/scatter3d/projection/_y.py +++ b/plotly/graph_objs/scatter3d/projection/_y.py @@ -141,11 +141,11 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('opacity', None) - self.opacity = opacity if opacity is not None else _v + self['opacity'] = opacity if opacity is not None else _v _v = arg.pop('scale', None) - self.scale = scale if scale is not None else _v + self['scale'] = scale if scale is not None else _v _v = arg.pop('show', None) - self.show = show if show is not None else _v + self['show'] = show if show is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/scatter3d/projection/_z.py b/plotly/graph_objs/scatter3d/projection/_z.py index b4c92fbc885..da0e6371dd6 100644 --- a/plotly/graph_objs/scatter3d/projection/_z.py +++ b/plotly/graph_objs/scatter3d/projection/_z.py @@ -141,11 +141,11 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('opacity', None) - self.opacity = opacity if opacity is not None else _v + self['opacity'] = opacity if opacity is not None else _v _v = arg.pop('scale', None) - self.scale = scale if scale is not None else _v + self['scale'] = scale if scale is not None else _v _v = arg.pop('show', None) - self.show = show if show is not None else _v + self['show'] = show if show is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/scattercarpet/_hoverlabel.py b/plotly/graph_objs/scattercarpet/_hoverlabel.py index 302b1c3288b..5decdacf099 100644 --- a/plotly/graph_objs/scattercarpet/_hoverlabel.py +++ b/plotly/graph_objs/scattercarpet/_hoverlabel.py @@ -388,19 +388,21 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('bgcolor', None) - self.bgcolor = bgcolor if bgcolor is not None else _v + self['bgcolor'] = bgcolor if bgcolor is not None else _v _v = arg.pop('bgcolorsrc', None) - self.bgcolorsrc = bgcolorsrc if bgcolorsrc is not None else _v + self['bgcolorsrc'] = bgcolorsrc if bgcolorsrc is not None else _v _v = arg.pop('bordercolor', None) - self.bordercolor = bordercolor if bordercolor is not None else _v + self['bordercolor'] = bordercolor if bordercolor is not None else _v _v = arg.pop('bordercolorsrc', None) - self.bordercolorsrc = bordercolorsrc if bordercolorsrc is not None else _v + self['bordercolorsrc' + ] = bordercolorsrc if bordercolorsrc is not None else _v _v = arg.pop('font', None) - self.font = font if font is not None else _v + self['font'] = font if font is not None else _v _v = arg.pop('namelength', None) - self.namelength = namelength if namelength is not None else _v + self['namelength'] = namelength if namelength is not None else _v _v = arg.pop('namelengthsrc', None) - self.namelengthsrc = namelengthsrc if namelengthsrc is not None else _v + self['namelengthsrc' + ] = namelengthsrc if namelengthsrc is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/scattercarpet/_line.py b/plotly/graph_objs/scattercarpet/_line.py index e80f907ee6c..3aa30716b95 100644 --- a/plotly/graph_objs/scattercarpet/_line.py +++ b/plotly/graph_objs/scattercarpet/_line.py @@ -257,15 +257,15 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('dash', None) - self.dash = dash if dash is not None else _v + self['dash'] = dash if dash is not None else _v _v = arg.pop('shape', None) - self.shape = shape if shape is not None else _v + self['shape'] = shape if shape is not None else _v _v = arg.pop('smoothing', None) - self.smoothing = smoothing if smoothing is not None else _v + self['smoothing'] = smoothing if smoothing is not None else _v _v = arg.pop('width', None) - self.width = width if width is not None else _v + self['width'] = width if width is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/scattercarpet/_marker.py b/plotly/graph_objs/scattercarpet/_marker.py index a1c5b277276..d7ebdcf5c3e 100644 --- a/plotly/graph_objs/scattercarpet/_marker.py +++ b/plotly/graph_objs/scattercarpet/_marker.py @@ -1195,49 +1195,50 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('autocolorscale', None) - self.autocolorscale = autocolorscale if autocolorscale is not None else _v + self['autocolorscale' + ] = autocolorscale if autocolorscale is not None else _v _v = arg.pop('cauto', None) - self.cauto = cauto if cauto is not None else _v + self['cauto'] = cauto if cauto is not None else _v _v = arg.pop('cmax', None) - self.cmax = cmax if cmax is not None else _v + self['cmax'] = cmax if cmax is not None else _v _v = arg.pop('cmin', None) - self.cmin = cmin if cmin is not None else _v + self['cmin'] = cmin if cmin is not None else _v _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('colorbar', None) - self.colorbar = colorbar if colorbar is not None else _v + self['colorbar'] = colorbar if colorbar is not None else _v _v = arg.pop('colorscale', None) - self.colorscale = colorscale if colorscale is not None else _v + self['colorscale'] = colorscale if colorscale is not None else _v _v = arg.pop('colorsrc', None) - self.colorsrc = colorsrc if colorsrc is not None else _v + self['colorsrc'] = colorsrc if colorsrc is not None else _v _v = arg.pop('gradient', None) - self.gradient = gradient if gradient is not None else _v + self['gradient'] = gradient if gradient is not None else _v _v = arg.pop('line', None) - self.line = line if line is not None else _v + self['line'] = line if line is not None else _v _v = arg.pop('maxdisplayed', None) - self.maxdisplayed = maxdisplayed if maxdisplayed is not None else _v + self['maxdisplayed'] = maxdisplayed if maxdisplayed is not None else _v _v = arg.pop('opacity', None) - self.opacity = opacity if opacity is not None else _v + self['opacity'] = opacity if opacity is not None else _v _v = arg.pop('opacitysrc', None) - self.opacitysrc = opacitysrc if opacitysrc is not None else _v + self['opacitysrc'] = opacitysrc if opacitysrc is not None else _v _v = arg.pop('reversescale', None) - self.reversescale = reversescale if reversescale is not None else _v + self['reversescale'] = reversescale if reversescale is not None else _v _v = arg.pop('showscale', None) - self.showscale = showscale if showscale is not None else _v + self['showscale'] = showscale if showscale is not None else _v _v = arg.pop('size', None) - self.size = size if size is not None else _v + self['size'] = size if size is not None else _v _v = arg.pop('sizemin', None) - self.sizemin = sizemin if sizemin is not None else _v + self['sizemin'] = sizemin if sizemin is not None else _v _v = arg.pop('sizemode', None) - self.sizemode = sizemode if sizemode is not None else _v + self['sizemode'] = sizemode if sizemode is not None else _v _v = arg.pop('sizeref', None) - self.sizeref = sizeref if sizeref is not None else _v + self['sizeref'] = sizeref if sizeref is not None else _v _v = arg.pop('sizesrc', None) - self.sizesrc = sizesrc if sizesrc is not None else _v + self['sizesrc'] = sizesrc if sizesrc is not None else _v _v = arg.pop('symbol', None) - self.symbol = symbol if symbol is not None else _v + self['symbol'] = symbol if symbol is not None else _v _v = arg.pop('symbolsrc', None) - self.symbolsrc = symbolsrc if symbolsrc is not None else _v + self['symbolsrc'] = symbolsrc if symbolsrc is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/scattercarpet/_selected.py b/plotly/graph_objs/scattercarpet/_selected.py index d1936c5eaf2..55a5b083447 100644 --- a/plotly/graph_objs/scattercarpet/_selected.py +++ b/plotly/graph_objs/scattercarpet/_selected.py @@ -129,9 +129,9 @@ def __init__(self, arg=None, marker=None, textfont=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('marker', None) - self.marker = marker if marker is not None else _v + self['marker'] = marker if marker is not None else _v _v = arg.pop('textfont', None) - self.textfont = textfont if textfont is not None else _v + self['textfont'] = textfont if textfont is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/scattercarpet/_stream.py b/plotly/graph_objs/scattercarpet/_stream.py index 213e1e5fb67..df88abf04eb 100644 --- a/plotly/graph_objs/scattercarpet/_stream.py +++ b/plotly/graph_objs/scattercarpet/_stream.py @@ -122,9 +122,9 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('maxpoints', None) - self.maxpoints = maxpoints if maxpoints is not None else _v + self['maxpoints'] = maxpoints if maxpoints is not None else _v _v = arg.pop('token', None) - self.token = token if token is not None else _v + self['token'] = token if token is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/scattercarpet/_textfont.py b/plotly/graph_objs/scattercarpet/_textfont.py index 6b9ab3a5841..9028c349854 100644 --- a/plotly/graph_objs/scattercarpet/_textfont.py +++ b/plotly/graph_objs/scattercarpet/_textfont.py @@ -294,17 +294,17 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('colorsrc', None) - self.colorsrc = colorsrc if colorsrc is not None else _v + self['colorsrc'] = colorsrc if colorsrc is not None else _v _v = arg.pop('family', None) - self.family = family if family is not None else _v + self['family'] = family if family is not None else _v _v = arg.pop('familysrc', None) - self.familysrc = familysrc if familysrc is not None else _v + self['familysrc'] = familysrc if familysrc is not None else _v _v = arg.pop('size', None) - self.size = size if size is not None else _v + self['size'] = size if size is not None else _v _v = arg.pop('sizesrc', None) - self.sizesrc = sizesrc if sizesrc is not None else _v + self['sizesrc'] = sizesrc if sizesrc is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/scattercarpet/_unselected.py b/plotly/graph_objs/scattercarpet/_unselected.py index ca88bed0ccc..1ae1edac757 100644 --- a/plotly/graph_objs/scattercarpet/_unselected.py +++ b/plotly/graph_objs/scattercarpet/_unselected.py @@ -136,9 +136,9 @@ def __init__(self, arg=None, marker=None, textfont=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('marker', None) - self.marker = marker if marker is not None else _v + self['marker'] = marker if marker is not None else _v _v = arg.pop('textfont', None) - self.textfont = textfont if textfont is not None else _v + self['textfont'] = textfont if textfont is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/scattercarpet/hoverlabel/_font.py b/plotly/graph_objs/scattercarpet/hoverlabel/_font.py index a85a08b8009..f6a838cabc2 100644 --- a/plotly/graph_objs/scattercarpet/hoverlabel/_font.py +++ b/plotly/graph_objs/scattercarpet/hoverlabel/_font.py @@ -295,17 +295,17 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('colorsrc', None) - self.colorsrc = colorsrc if colorsrc is not None else _v + self['colorsrc'] = colorsrc if colorsrc is not None else _v _v = arg.pop('family', None) - self.family = family if family is not None else _v + self['family'] = family if family is not None else _v _v = arg.pop('familysrc', None) - self.familysrc = familysrc if familysrc is not None else _v + self['familysrc'] = familysrc if familysrc is not None else _v _v = arg.pop('size', None) - self.size = size if size is not None else _v + self['size'] = size if size is not None else _v _v = arg.pop('sizesrc', None) - self.sizesrc = sizesrc if sizesrc is not None else _v + self['sizesrc'] = sizesrc if sizesrc is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/scattercarpet/marker/_colorbar.py b/plotly/graph_objs/scattercarpet/marker/_colorbar.py index 954c3d6c4f8..9c37e3fca56 100644 --- a/plotly/graph_objs/scattercarpet/marker/_colorbar.py +++ b/plotly/graph_objs/scattercarpet/marker/_colorbar.py @@ -1674,89 +1674,96 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('bgcolor', None) - self.bgcolor = bgcolor if bgcolor is not None else _v + self['bgcolor'] = bgcolor if bgcolor is not None else _v _v = arg.pop('bordercolor', None) - self.bordercolor = bordercolor if bordercolor is not None else _v + self['bordercolor'] = bordercolor if bordercolor is not None else _v _v = arg.pop('borderwidth', None) - self.borderwidth = borderwidth if borderwidth is not None else _v + self['borderwidth'] = borderwidth if borderwidth is not None else _v _v = arg.pop('dtick', None) - self.dtick = dtick if dtick is not None else _v + self['dtick'] = dtick if dtick is not None else _v _v = arg.pop('exponentformat', None) - self.exponentformat = exponentformat if exponentformat is not None else _v + self['exponentformat' + ] = exponentformat if exponentformat is not None else _v _v = arg.pop('len', None) - self.len = len if len is not None else _v + self['len'] = len if len is not None else _v _v = arg.pop('lenmode', None) - self.lenmode = lenmode if lenmode is not None else _v + self['lenmode'] = lenmode if lenmode is not None else _v _v = arg.pop('nticks', None) - self.nticks = nticks if nticks is not None else _v + self['nticks'] = nticks if nticks is not None else _v _v = arg.pop('outlinecolor', None) - self.outlinecolor = outlinecolor if outlinecolor is not None else _v + self['outlinecolor'] = outlinecolor if outlinecolor is not None else _v _v = arg.pop('outlinewidth', None) - self.outlinewidth = outlinewidth if outlinewidth is not None else _v + self['outlinewidth'] = outlinewidth if outlinewidth is not None else _v _v = arg.pop('separatethousands', None) - self.separatethousands = separatethousands if separatethousands is not None else _v + self['separatethousands' + ] = separatethousands if separatethousands is not None else _v _v = arg.pop('showexponent', None) - self.showexponent = showexponent if showexponent is not None else _v + self['showexponent'] = showexponent if showexponent is not None else _v _v = arg.pop('showticklabels', None) - self.showticklabels = showticklabels if showticklabels is not None else _v + self['showticklabels' + ] = showticklabels if showticklabels is not None else _v _v = arg.pop('showtickprefix', None) - self.showtickprefix = showtickprefix if showtickprefix is not None else _v + self['showtickprefix' + ] = showtickprefix if showtickprefix is not None else _v _v = arg.pop('showticksuffix', None) - self.showticksuffix = showticksuffix if showticksuffix is not None else _v + self['showticksuffix' + ] = showticksuffix if showticksuffix is not None else _v _v = arg.pop('thickness', None) - self.thickness = thickness if thickness is not None else _v + self['thickness'] = thickness if thickness is not None else _v _v = arg.pop('thicknessmode', None) - self.thicknessmode = thicknessmode if thicknessmode is not None else _v + self['thicknessmode' + ] = thicknessmode if thicknessmode is not None else _v _v = arg.pop('tick0', None) - self.tick0 = tick0 if tick0 is not None else _v + self['tick0'] = tick0 if tick0 is not None else _v _v = arg.pop('tickangle', None) - self.tickangle = tickangle if tickangle is not None else _v + self['tickangle'] = tickangle if tickangle is not None else _v _v = arg.pop('tickcolor', None) - self.tickcolor = tickcolor if tickcolor is not None else _v + self['tickcolor'] = tickcolor if tickcolor is not None else _v _v = arg.pop('tickfont', None) - self.tickfont = tickfont if tickfont is not None else _v + self['tickfont'] = tickfont if tickfont is not None else _v _v = arg.pop('tickformat', None) - self.tickformat = tickformat if tickformat is not None else _v + self['tickformat'] = tickformat if tickformat is not None else _v _v = arg.pop('tickformatstops', None) - self.tickformatstops = tickformatstops if tickformatstops is not None else _v + self['tickformatstops' + ] = tickformatstops if tickformatstops is not None else _v _v = arg.pop('ticklen', None) - self.ticklen = ticklen if ticklen is not None else _v + self['ticklen'] = ticklen if ticklen is not None else _v _v = arg.pop('tickmode', None) - self.tickmode = tickmode if tickmode is not None else _v + self['tickmode'] = tickmode if tickmode is not None else _v _v = arg.pop('tickprefix', None) - self.tickprefix = tickprefix if tickprefix is not None else _v + self['tickprefix'] = tickprefix if tickprefix is not None else _v _v = arg.pop('ticks', None) - self.ticks = ticks if ticks is not None else _v + self['ticks'] = ticks if ticks is not None else _v _v = arg.pop('ticksuffix', None) - self.ticksuffix = ticksuffix if ticksuffix is not None else _v + self['ticksuffix'] = ticksuffix if ticksuffix is not None else _v _v = arg.pop('ticktext', None) - self.ticktext = ticktext if ticktext is not None else _v + self['ticktext'] = ticktext if ticktext is not None else _v _v = arg.pop('ticktextsrc', None) - self.ticktextsrc = ticktextsrc if ticktextsrc is not None else _v + self['ticktextsrc'] = ticktextsrc if ticktextsrc is not None else _v _v = arg.pop('tickvals', None) - self.tickvals = tickvals if tickvals is not None else _v + self['tickvals'] = tickvals if tickvals is not None else _v _v = arg.pop('tickvalssrc', None) - self.tickvalssrc = tickvalssrc if tickvalssrc is not None else _v + self['tickvalssrc'] = tickvalssrc if tickvalssrc is not None else _v _v = arg.pop('tickwidth', None) - self.tickwidth = tickwidth if tickwidth is not None else _v + self['tickwidth'] = tickwidth if tickwidth is not None else _v _v = arg.pop('title', None) - self.title = title if title is not None else _v + self['title'] = title if title is not None else _v _v = arg.pop('titlefont', None) - self.titlefont = titlefont if titlefont is not None else _v + self['titlefont'] = titlefont if titlefont is not None else _v _v = arg.pop('titleside', None) - self.titleside = titleside if titleside is not None else _v + self['titleside'] = titleside if titleside is not None else _v _v = arg.pop('x', None) - self.x = x if x is not None else _v + self['x'] = x if x is not None else _v _v = arg.pop('xanchor', None) - self.xanchor = xanchor if xanchor is not None else _v + self['xanchor'] = xanchor if xanchor is not None else _v _v = arg.pop('xpad', None) - self.xpad = xpad if xpad is not None else _v + self['xpad'] = xpad if xpad is not None else _v _v = arg.pop('y', None) - self.y = y if y is not None else _v + self['y'] = y if y is not None else _v _v = arg.pop('yanchor', None) - self.yanchor = yanchor if yanchor is not None else _v + self['yanchor'] = yanchor if yanchor is not None else _v _v = arg.pop('ypad', None) - self.ypad = ypad if ypad is not None else _v + self['ypad'] = ypad if ypad is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/scattercarpet/marker/_gradient.py b/plotly/graph_objs/scattercarpet/marker/_gradient.py index 630016b4725..f74ac9f316b 100644 --- a/plotly/graph_objs/scattercarpet/marker/_gradient.py +++ b/plotly/graph_objs/scattercarpet/marker/_gradient.py @@ -217,13 +217,13 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('colorsrc', None) - self.colorsrc = colorsrc if colorsrc is not None else _v + self['colorsrc'] = colorsrc if colorsrc is not None else _v _v = arg.pop('type', None) - self.type = type if type is not None else _v + self['type'] = type if type is not None else _v _v = arg.pop('typesrc', None) - self.typesrc = typesrc if typesrc is not None else _v + self['typesrc'] = typesrc if typesrc is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/scattercarpet/marker/_line.py b/plotly/graph_objs/scattercarpet/marker/_line.py index 81ca511b864..32a257aa718 100644 --- a/plotly/graph_objs/scattercarpet/marker/_line.py +++ b/plotly/graph_objs/scattercarpet/marker/_line.py @@ -496,25 +496,26 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('autocolorscale', None) - self.autocolorscale = autocolorscale if autocolorscale is not None else _v + self['autocolorscale' + ] = autocolorscale if autocolorscale is not None else _v _v = arg.pop('cauto', None) - self.cauto = cauto if cauto is not None else _v + self['cauto'] = cauto if cauto is not None else _v _v = arg.pop('cmax', None) - self.cmax = cmax if cmax is not None else _v + self['cmax'] = cmax if cmax is not None else _v _v = arg.pop('cmin', None) - self.cmin = cmin if cmin is not None else _v + self['cmin'] = cmin if cmin is not None else _v _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('colorscale', None) - self.colorscale = colorscale if colorscale is not None else _v + self['colorscale'] = colorscale if colorscale is not None else _v _v = arg.pop('colorsrc', None) - self.colorsrc = colorsrc if colorsrc is not None else _v + self['colorsrc'] = colorsrc if colorsrc is not None else _v _v = arg.pop('reversescale', None) - self.reversescale = reversescale if reversescale is not None else _v + self['reversescale'] = reversescale if reversescale is not None else _v _v = arg.pop('width', None) - self.width = width if width is not None else _v + self['width'] = width if width is not None else _v _v = arg.pop('widthsrc', None) - self.widthsrc = widthsrc if widthsrc is not None else _v + self['widthsrc'] = widthsrc if widthsrc is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/scattercarpet/marker/colorbar/_tickfont.py b/plotly/graph_objs/scattercarpet/marker/colorbar/_tickfont.py index 5efaa6cabfe..02bf6e48ded 100644 --- a/plotly/graph_objs/scattercarpet/marker/colorbar/_tickfont.py +++ b/plotly/graph_objs/scattercarpet/marker/colorbar/_tickfont.py @@ -209,11 +209,11 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('family', None) - self.family = family if family is not None else _v + self['family'] = family if family is not None else _v _v = arg.pop('size', None) - self.size = size if size is not None else _v + self['size'] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/scattercarpet/marker/colorbar/_tickformatstop.py b/plotly/graph_objs/scattercarpet/marker/colorbar/_tickformatstop.py index 17dc2ea7a85..945d2414608 100644 --- a/plotly/graph_objs/scattercarpet/marker/colorbar/_tickformatstop.py +++ b/plotly/graph_objs/scattercarpet/marker/colorbar/_tickformatstop.py @@ -260,15 +260,16 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('dtickrange', None) - self.dtickrange = dtickrange if dtickrange is not None else _v + self['dtickrange'] = dtickrange if dtickrange is not None else _v _v = arg.pop('enabled', None) - self.enabled = enabled if enabled is not None else _v + self['enabled'] = enabled if enabled is not None else _v _v = arg.pop('name', None) - self.name = name if name is not None else _v + self['name'] = name if name is not None else _v _v = arg.pop('templateitemname', None) - self.templateitemname = templateitemname if templateitemname is not None else _v + self['templateitemname' + ] = templateitemname if templateitemname is not None else _v _v = arg.pop('value', None) - self.value = value if value is not None else _v + self['value'] = value if value is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/scattercarpet/marker/colorbar/_titlefont.py b/plotly/graph_objs/scattercarpet/marker/colorbar/_titlefont.py index f5b3eb4f75d..1303f4f59ee 100644 --- a/plotly/graph_objs/scattercarpet/marker/colorbar/_titlefont.py +++ b/plotly/graph_objs/scattercarpet/marker/colorbar/_titlefont.py @@ -209,11 +209,11 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('family', None) - self.family = family if family is not None else _v + self['family'] = family if family is not None else _v _v = arg.pop('size', None) - self.size = size if size is not None else _v + self['size'] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/scattercarpet/selected/_marker.py b/plotly/graph_objs/scattercarpet/selected/_marker.py index 803e6795f3f..965e057a6b1 100644 --- a/plotly/graph_objs/scattercarpet/selected/_marker.py +++ b/plotly/graph_objs/scattercarpet/selected/_marker.py @@ -178,11 +178,11 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('opacity', None) - self.opacity = opacity if opacity is not None else _v + self['opacity'] = opacity if opacity is not None else _v _v = arg.pop('size', None) - self.size = size if size is not None else _v + self['size'] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/scattercarpet/selected/_textfont.py b/plotly/graph_objs/scattercarpet/selected/_textfont.py index 170b30a089f..92ec5c74bdc 100644 --- a/plotly/graph_objs/scattercarpet/selected/_textfont.py +++ b/plotly/graph_objs/scattercarpet/selected/_textfont.py @@ -126,7 +126,7 @@ def __init__(self, arg=None, color=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/scattercarpet/unselected/_marker.py b/plotly/graph_objs/scattercarpet/unselected/_marker.py index 2a8a2ace626..0efc493a832 100644 --- a/plotly/graph_objs/scattercarpet/unselected/_marker.py +++ b/plotly/graph_objs/scattercarpet/unselected/_marker.py @@ -187,11 +187,11 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('opacity', None) - self.opacity = opacity if opacity is not None else _v + self['opacity'] = opacity if opacity is not None else _v _v = arg.pop('size', None) - self.size = size if size is not None else _v + self['size'] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/scattercarpet/unselected/_textfont.py b/plotly/graph_objs/scattercarpet/unselected/_textfont.py index 273fcd26b87..e87aa456569 100644 --- a/plotly/graph_objs/scattercarpet/unselected/_textfont.py +++ b/plotly/graph_objs/scattercarpet/unselected/_textfont.py @@ -129,7 +129,7 @@ def __init__(self, arg=None, color=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/scattergeo/_hoverlabel.py b/plotly/graph_objs/scattergeo/_hoverlabel.py index ff1ccfaa5ed..969387ee038 100644 --- a/plotly/graph_objs/scattergeo/_hoverlabel.py +++ b/plotly/graph_objs/scattergeo/_hoverlabel.py @@ -385,19 +385,21 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('bgcolor', None) - self.bgcolor = bgcolor if bgcolor is not None else _v + self['bgcolor'] = bgcolor if bgcolor is not None else _v _v = arg.pop('bgcolorsrc', None) - self.bgcolorsrc = bgcolorsrc if bgcolorsrc is not None else _v + self['bgcolorsrc'] = bgcolorsrc if bgcolorsrc is not None else _v _v = arg.pop('bordercolor', None) - self.bordercolor = bordercolor if bordercolor is not None else _v + self['bordercolor'] = bordercolor if bordercolor is not None else _v _v = arg.pop('bordercolorsrc', None) - self.bordercolorsrc = bordercolorsrc if bordercolorsrc is not None else _v + self['bordercolorsrc' + ] = bordercolorsrc if bordercolorsrc is not None else _v _v = arg.pop('font', None) - self.font = font if font is not None else _v + self['font'] = font if font is not None else _v _v = arg.pop('namelength', None) - self.namelength = namelength if namelength is not None else _v + self['namelength'] = namelength if namelength is not None else _v _v = arg.pop('namelengthsrc', None) - self.namelengthsrc = namelengthsrc if namelengthsrc is not None else _v + self['namelengthsrc' + ] = namelengthsrc if namelengthsrc is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/scattergeo/_line.py b/plotly/graph_objs/scattergeo/_line.py index 7dba84cbd61..e968b75afcc 100644 --- a/plotly/graph_objs/scattergeo/_line.py +++ b/plotly/graph_objs/scattergeo/_line.py @@ -185,11 +185,11 @@ def __init__(self, arg=None, color=None, dash=None, width=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('dash', None) - self.dash = dash if dash is not None else _v + self['dash'] = dash if dash is not None else _v _v = arg.pop('width', None) - self.width = width if width is not None else _v + self['width'] = width if width is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/scattergeo/_marker.py b/plotly/graph_objs/scattergeo/_marker.py index a63778e9bca..944622e0c76 100644 --- a/plotly/graph_objs/scattergeo/_marker.py +++ b/plotly/graph_objs/scattergeo/_marker.py @@ -1166,47 +1166,48 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('autocolorscale', None) - self.autocolorscale = autocolorscale if autocolorscale is not None else _v + self['autocolorscale' + ] = autocolorscale if autocolorscale is not None else _v _v = arg.pop('cauto', None) - self.cauto = cauto if cauto is not None else _v + self['cauto'] = cauto if cauto is not None else _v _v = arg.pop('cmax', None) - self.cmax = cmax if cmax is not None else _v + self['cmax'] = cmax if cmax is not None else _v _v = arg.pop('cmin', None) - self.cmin = cmin if cmin is not None else _v + self['cmin'] = cmin if cmin is not None else _v _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('colorbar', None) - self.colorbar = colorbar if colorbar is not None else _v + self['colorbar'] = colorbar if colorbar is not None else _v _v = arg.pop('colorscale', None) - self.colorscale = colorscale if colorscale is not None else _v + self['colorscale'] = colorscale if colorscale is not None else _v _v = arg.pop('colorsrc', None) - self.colorsrc = colorsrc if colorsrc is not None else _v + self['colorsrc'] = colorsrc if colorsrc is not None else _v _v = arg.pop('gradient', None) - self.gradient = gradient if gradient is not None else _v + self['gradient'] = gradient if gradient is not None else _v _v = arg.pop('line', None) - self.line = line if line is not None else _v + self['line'] = line if line is not None else _v _v = arg.pop('opacity', None) - self.opacity = opacity if opacity is not None else _v + self['opacity'] = opacity if opacity is not None else _v _v = arg.pop('opacitysrc', None) - self.opacitysrc = opacitysrc if opacitysrc is not None else _v + self['opacitysrc'] = opacitysrc if opacitysrc is not None else _v _v = arg.pop('reversescale', None) - self.reversescale = reversescale if reversescale is not None else _v + self['reversescale'] = reversescale if reversescale is not None else _v _v = arg.pop('showscale', None) - self.showscale = showscale if showscale is not None else _v + self['showscale'] = showscale if showscale is not None else _v _v = arg.pop('size', None) - self.size = size if size is not None else _v + self['size'] = size if size is not None else _v _v = arg.pop('sizemin', None) - self.sizemin = sizemin if sizemin is not None else _v + self['sizemin'] = sizemin if sizemin is not None else _v _v = arg.pop('sizemode', None) - self.sizemode = sizemode if sizemode is not None else _v + self['sizemode'] = sizemode if sizemode is not None else _v _v = arg.pop('sizeref', None) - self.sizeref = sizeref if sizeref is not None else _v + self['sizeref'] = sizeref if sizeref is not None else _v _v = arg.pop('sizesrc', None) - self.sizesrc = sizesrc if sizesrc is not None else _v + self['sizesrc'] = sizesrc if sizesrc is not None else _v _v = arg.pop('symbol', None) - self.symbol = symbol if symbol is not None else _v + self['symbol'] = symbol if symbol is not None else _v _v = arg.pop('symbolsrc', None) - self.symbolsrc = symbolsrc if symbolsrc is not None else _v + self['symbolsrc'] = symbolsrc if symbolsrc is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/scattergeo/_selected.py b/plotly/graph_objs/scattergeo/_selected.py index 10570775b33..acb2fb8f242 100644 --- a/plotly/graph_objs/scattergeo/_selected.py +++ b/plotly/graph_objs/scattergeo/_selected.py @@ -129,9 +129,9 @@ def __init__(self, arg=None, marker=None, textfont=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('marker', None) - self.marker = marker if marker is not None else _v + self['marker'] = marker if marker is not None else _v _v = arg.pop('textfont', None) - self.textfont = textfont if textfont is not None else _v + self['textfont'] = textfont if textfont is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/scattergeo/_stream.py b/plotly/graph_objs/scattergeo/_stream.py index b8a72e00a5f..7eca0f99d65 100644 --- a/plotly/graph_objs/scattergeo/_stream.py +++ b/plotly/graph_objs/scattergeo/_stream.py @@ -122,9 +122,9 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('maxpoints', None) - self.maxpoints = maxpoints if maxpoints is not None else _v + self['maxpoints'] = maxpoints if maxpoints is not None else _v _v = arg.pop('token', None) - self.token = token if token is not None else _v + self['token'] = token if token is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/scattergeo/_textfont.py b/plotly/graph_objs/scattergeo/_textfont.py index a3a02ef111a..10b969693e3 100644 --- a/plotly/graph_objs/scattergeo/_textfont.py +++ b/plotly/graph_objs/scattergeo/_textfont.py @@ -294,17 +294,17 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('colorsrc', None) - self.colorsrc = colorsrc if colorsrc is not None else _v + self['colorsrc'] = colorsrc if colorsrc is not None else _v _v = arg.pop('family', None) - self.family = family if family is not None else _v + self['family'] = family if family is not None else _v _v = arg.pop('familysrc', None) - self.familysrc = familysrc if familysrc is not None else _v + self['familysrc'] = familysrc if familysrc is not None else _v _v = arg.pop('size', None) - self.size = size if size is not None else _v + self['size'] = size if size is not None else _v _v = arg.pop('sizesrc', None) - self.sizesrc = sizesrc if sizesrc is not None else _v + self['sizesrc'] = sizesrc if sizesrc is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/scattergeo/_unselected.py b/plotly/graph_objs/scattergeo/_unselected.py index cae6c056d60..80d02ed0757 100644 --- a/plotly/graph_objs/scattergeo/_unselected.py +++ b/plotly/graph_objs/scattergeo/_unselected.py @@ -133,9 +133,9 @@ def __init__(self, arg=None, marker=None, textfont=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('marker', None) - self.marker = marker if marker is not None else _v + self['marker'] = marker if marker is not None else _v _v = arg.pop('textfont', None) - self.textfont = textfont if textfont is not None else _v + self['textfont'] = textfont if textfont is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/scattergeo/hoverlabel/_font.py b/plotly/graph_objs/scattergeo/hoverlabel/_font.py index 6fdf0d3bbf9..2d4c11eb91b 100644 --- a/plotly/graph_objs/scattergeo/hoverlabel/_font.py +++ b/plotly/graph_objs/scattergeo/hoverlabel/_font.py @@ -295,17 +295,17 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('colorsrc', None) - self.colorsrc = colorsrc if colorsrc is not None else _v + self['colorsrc'] = colorsrc if colorsrc is not None else _v _v = arg.pop('family', None) - self.family = family if family is not None else _v + self['family'] = family if family is not None else _v _v = arg.pop('familysrc', None) - self.familysrc = familysrc if familysrc is not None else _v + self['familysrc'] = familysrc if familysrc is not None else _v _v = arg.pop('size', None) - self.size = size if size is not None else _v + self['size'] = size if size is not None else _v _v = arg.pop('sizesrc', None) - self.sizesrc = sizesrc if sizesrc is not None else _v + self['sizesrc'] = sizesrc if sizesrc is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/scattergeo/marker/_colorbar.py b/plotly/graph_objs/scattergeo/marker/_colorbar.py index b87cc1a6a1f..cb3655e0cdd 100644 --- a/plotly/graph_objs/scattergeo/marker/_colorbar.py +++ b/plotly/graph_objs/scattergeo/marker/_colorbar.py @@ -1674,89 +1674,96 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('bgcolor', None) - self.bgcolor = bgcolor if bgcolor is not None else _v + self['bgcolor'] = bgcolor if bgcolor is not None else _v _v = arg.pop('bordercolor', None) - self.bordercolor = bordercolor if bordercolor is not None else _v + self['bordercolor'] = bordercolor if bordercolor is not None else _v _v = arg.pop('borderwidth', None) - self.borderwidth = borderwidth if borderwidth is not None else _v + self['borderwidth'] = borderwidth if borderwidth is not None else _v _v = arg.pop('dtick', None) - self.dtick = dtick if dtick is not None else _v + self['dtick'] = dtick if dtick is not None else _v _v = arg.pop('exponentformat', None) - self.exponentformat = exponentformat if exponentformat is not None else _v + self['exponentformat' + ] = exponentformat if exponentformat is not None else _v _v = arg.pop('len', None) - self.len = len if len is not None else _v + self['len'] = len if len is not None else _v _v = arg.pop('lenmode', None) - self.lenmode = lenmode if lenmode is not None else _v + self['lenmode'] = lenmode if lenmode is not None else _v _v = arg.pop('nticks', None) - self.nticks = nticks if nticks is not None else _v + self['nticks'] = nticks if nticks is not None else _v _v = arg.pop('outlinecolor', None) - self.outlinecolor = outlinecolor if outlinecolor is not None else _v + self['outlinecolor'] = outlinecolor if outlinecolor is not None else _v _v = arg.pop('outlinewidth', None) - self.outlinewidth = outlinewidth if outlinewidth is not None else _v + self['outlinewidth'] = outlinewidth if outlinewidth is not None else _v _v = arg.pop('separatethousands', None) - self.separatethousands = separatethousands if separatethousands is not None else _v + self['separatethousands' + ] = separatethousands if separatethousands is not None else _v _v = arg.pop('showexponent', None) - self.showexponent = showexponent if showexponent is not None else _v + self['showexponent'] = showexponent if showexponent is not None else _v _v = arg.pop('showticklabels', None) - self.showticklabels = showticklabels if showticklabels is not None else _v + self['showticklabels' + ] = showticklabels if showticklabels is not None else _v _v = arg.pop('showtickprefix', None) - self.showtickprefix = showtickprefix if showtickprefix is not None else _v + self['showtickprefix' + ] = showtickprefix if showtickprefix is not None else _v _v = arg.pop('showticksuffix', None) - self.showticksuffix = showticksuffix if showticksuffix is not None else _v + self['showticksuffix' + ] = showticksuffix if showticksuffix is not None else _v _v = arg.pop('thickness', None) - self.thickness = thickness if thickness is not None else _v + self['thickness'] = thickness if thickness is not None else _v _v = arg.pop('thicknessmode', None) - self.thicknessmode = thicknessmode if thicknessmode is not None else _v + self['thicknessmode' + ] = thicknessmode if thicknessmode is not None else _v _v = arg.pop('tick0', None) - self.tick0 = tick0 if tick0 is not None else _v + self['tick0'] = tick0 if tick0 is not None else _v _v = arg.pop('tickangle', None) - self.tickangle = tickangle if tickangle is not None else _v + self['tickangle'] = tickangle if tickangle is not None else _v _v = arg.pop('tickcolor', None) - self.tickcolor = tickcolor if tickcolor is not None else _v + self['tickcolor'] = tickcolor if tickcolor is not None else _v _v = arg.pop('tickfont', None) - self.tickfont = tickfont if tickfont is not None else _v + self['tickfont'] = tickfont if tickfont is not None else _v _v = arg.pop('tickformat', None) - self.tickformat = tickformat if tickformat is not None else _v + self['tickformat'] = tickformat if tickformat is not None else _v _v = arg.pop('tickformatstops', None) - self.tickformatstops = tickformatstops if tickformatstops is not None else _v + self['tickformatstops' + ] = tickformatstops if tickformatstops is not None else _v _v = arg.pop('ticklen', None) - self.ticklen = ticklen if ticklen is not None else _v + self['ticklen'] = ticklen if ticklen is not None else _v _v = arg.pop('tickmode', None) - self.tickmode = tickmode if tickmode is not None else _v + self['tickmode'] = tickmode if tickmode is not None else _v _v = arg.pop('tickprefix', None) - self.tickprefix = tickprefix if tickprefix is not None else _v + self['tickprefix'] = tickprefix if tickprefix is not None else _v _v = arg.pop('ticks', None) - self.ticks = ticks if ticks is not None else _v + self['ticks'] = ticks if ticks is not None else _v _v = arg.pop('ticksuffix', None) - self.ticksuffix = ticksuffix if ticksuffix is not None else _v + self['ticksuffix'] = ticksuffix if ticksuffix is not None else _v _v = arg.pop('ticktext', None) - self.ticktext = ticktext if ticktext is not None else _v + self['ticktext'] = ticktext if ticktext is not None else _v _v = arg.pop('ticktextsrc', None) - self.ticktextsrc = ticktextsrc if ticktextsrc is not None else _v + self['ticktextsrc'] = ticktextsrc if ticktextsrc is not None else _v _v = arg.pop('tickvals', None) - self.tickvals = tickvals if tickvals is not None else _v + self['tickvals'] = tickvals if tickvals is not None else _v _v = arg.pop('tickvalssrc', None) - self.tickvalssrc = tickvalssrc if tickvalssrc is not None else _v + self['tickvalssrc'] = tickvalssrc if tickvalssrc is not None else _v _v = arg.pop('tickwidth', None) - self.tickwidth = tickwidth if tickwidth is not None else _v + self['tickwidth'] = tickwidth if tickwidth is not None else _v _v = arg.pop('title', None) - self.title = title if title is not None else _v + self['title'] = title if title is not None else _v _v = arg.pop('titlefont', None) - self.titlefont = titlefont if titlefont is not None else _v + self['titlefont'] = titlefont if titlefont is not None else _v _v = arg.pop('titleside', None) - self.titleside = titleside if titleside is not None else _v + self['titleside'] = titleside if titleside is not None else _v _v = arg.pop('x', None) - self.x = x if x is not None else _v + self['x'] = x if x is not None else _v _v = arg.pop('xanchor', None) - self.xanchor = xanchor if xanchor is not None else _v + self['xanchor'] = xanchor if xanchor is not None else _v _v = arg.pop('xpad', None) - self.xpad = xpad if xpad is not None else _v + self['xpad'] = xpad if xpad is not None else _v _v = arg.pop('y', None) - self.y = y if y is not None else _v + self['y'] = y if y is not None else _v _v = arg.pop('yanchor', None) - self.yanchor = yanchor if yanchor is not None else _v + self['yanchor'] = yanchor if yanchor is not None else _v _v = arg.pop('ypad', None) - self.ypad = ypad if ypad is not None else _v + self['ypad'] = ypad if ypad is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/scattergeo/marker/_gradient.py b/plotly/graph_objs/scattergeo/marker/_gradient.py index 79b54117773..d94a6c09bfe 100644 --- a/plotly/graph_objs/scattergeo/marker/_gradient.py +++ b/plotly/graph_objs/scattergeo/marker/_gradient.py @@ -217,13 +217,13 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('colorsrc', None) - self.colorsrc = colorsrc if colorsrc is not None else _v + self['colorsrc'] = colorsrc if colorsrc is not None else _v _v = arg.pop('type', None) - self.type = type if type is not None else _v + self['type'] = type if type is not None else _v _v = arg.pop('typesrc', None) - self.typesrc = typesrc if typesrc is not None else _v + self['typesrc'] = typesrc if typesrc is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/scattergeo/marker/_line.py b/plotly/graph_objs/scattergeo/marker/_line.py index 0bf4df156b8..e21d19dcac3 100644 --- a/plotly/graph_objs/scattergeo/marker/_line.py +++ b/plotly/graph_objs/scattergeo/marker/_line.py @@ -495,25 +495,26 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('autocolorscale', None) - self.autocolorscale = autocolorscale if autocolorscale is not None else _v + self['autocolorscale' + ] = autocolorscale if autocolorscale is not None else _v _v = arg.pop('cauto', None) - self.cauto = cauto if cauto is not None else _v + self['cauto'] = cauto if cauto is not None else _v _v = arg.pop('cmax', None) - self.cmax = cmax if cmax is not None else _v + self['cmax'] = cmax if cmax is not None else _v _v = arg.pop('cmin', None) - self.cmin = cmin if cmin is not None else _v + self['cmin'] = cmin if cmin is not None else _v _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('colorscale', None) - self.colorscale = colorscale if colorscale is not None else _v + self['colorscale'] = colorscale if colorscale is not None else _v _v = arg.pop('colorsrc', None) - self.colorsrc = colorsrc if colorsrc is not None else _v + self['colorsrc'] = colorsrc if colorsrc is not None else _v _v = arg.pop('reversescale', None) - self.reversescale = reversescale if reversescale is not None else _v + self['reversescale'] = reversescale if reversescale is not None else _v _v = arg.pop('width', None) - self.width = width if width is not None else _v + self['width'] = width if width is not None else _v _v = arg.pop('widthsrc', None) - self.widthsrc = widthsrc if widthsrc is not None else _v + self['widthsrc'] = widthsrc if widthsrc is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/scattergeo/marker/colorbar/_tickfont.py b/plotly/graph_objs/scattergeo/marker/colorbar/_tickfont.py index 3d1bd321be3..c81bcef120d 100644 --- a/plotly/graph_objs/scattergeo/marker/colorbar/_tickfont.py +++ b/plotly/graph_objs/scattergeo/marker/colorbar/_tickfont.py @@ -209,11 +209,11 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('family', None) - self.family = family if family is not None else _v + self['family'] = family if family is not None else _v _v = arg.pop('size', None) - self.size = size if size is not None else _v + self['size'] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/scattergeo/marker/colorbar/_tickformatstop.py b/plotly/graph_objs/scattergeo/marker/colorbar/_tickformatstop.py index cf473bcf0c8..445b67b74aa 100644 --- a/plotly/graph_objs/scattergeo/marker/colorbar/_tickformatstop.py +++ b/plotly/graph_objs/scattergeo/marker/colorbar/_tickformatstop.py @@ -260,15 +260,16 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('dtickrange', None) - self.dtickrange = dtickrange if dtickrange is not None else _v + self['dtickrange'] = dtickrange if dtickrange is not None else _v _v = arg.pop('enabled', None) - self.enabled = enabled if enabled is not None else _v + self['enabled'] = enabled if enabled is not None else _v _v = arg.pop('name', None) - self.name = name if name is not None else _v + self['name'] = name if name is not None else _v _v = arg.pop('templateitemname', None) - self.templateitemname = templateitemname if templateitemname is not None else _v + self['templateitemname' + ] = templateitemname if templateitemname is not None else _v _v = arg.pop('value', None) - self.value = value if value is not None else _v + self['value'] = value if value is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/scattergeo/marker/colorbar/_titlefont.py b/plotly/graph_objs/scattergeo/marker/colorbar/_titlefont.py index 399643786ee..cf227ad68b7 100644 --- a/plotly/graph_objs/scattergeo/marker/colorbar/_titlefont.py +++ b/plotly/graph_objs/scattergeo/marker/colorbar/_titlefont.py @@ -209,11 +209,11 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('family', None) - self.family = family if family is not None else _v + self['family'] = family if family is not None else _v _v = arg.pop('size', None) - self.size = size if size is not None else _v + self['size'] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/scattergeo/selected/_marker.py b/plotly/graph_objs/scattergeo/selected/_marker.py index 18fb8355eb2..90a97891d3e 100644 --- a/plotly/graph_objs/scattergeo/selected/_marker.py +++ b/plotly/graph_objs/scattergeo/selected/_marker.py @@ -176,11 +176,11 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('opacity', None) - self.opacity = opacity if opacity is not None else _v + self['opacity'] = opacity if opacity is not None else _v _v = arg.pop('size', None) - self.size = size if size is not None else _v + self['size'] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/scattergeo/selected/_textfont.py b/plotly/graph_objs/scattergeo/selected/_textfont.py index 7e6ef7a43b4..a3a85724937 100644 --- a/plotly/graph_objs/scattergeo/selected/_textfont.py +++ b/plotly/graph_objs/scattergeo/selected/_textfont.py @@ -126,7 +126,7 @@ def __init__(self, arg=None, color=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/scattergeo/unselected/_marker.py b/plotly/graph_objs/scattergeo/unselected/_marker.py index aeb42941c31..932271451b7 100644 --- a/plotly/graph_objs/scattergeo/unselected/_marker.py +++ b/plotly/graph_objs/scattergeo/unselected/_marker.py @@ -187,11 +187,11 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('opacity', None) - self.opacity = opacity if opacity is not None else _v + self['opacity'] = opacity if opacity is not None else _v _v = arg.pop('size', None) - self.size = size if size is not None else _v + self['size'] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/scattergeo/unselected/_textfont.py b/plotly/graph_objs/scattergeo/unselected/_textfont.py index 4836dc71ba5..5088f39736e 100644 --- a/plotly/graph_objs/scattergeo/unselected/_textfont.py +++ b/plotly/graph_objs/scattergeo/unselected/_textfont.py @@ -129,7 +129,7 @@ def __init__(self, arg=None, color=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/scattergl/_error_x.py b/plotly/graph_objs/scattergl/_error_x.py index 12693bbfe5c..77749715844 100644 --- a/plotly/graph_objs/scattergl/_error_x.py +++ b/plotly/graph_objs/scattergl/_error_x.py @@ -552,35 +552,37 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('array', None) - self.array = array if array is not None else _v + self['array'] = array if array is not None else _v _v = arg.pop('arrayminus', None) - self.arrayminus = arrayminus if arrayminus is not None else _v + self['arrayminus'] = arrayminus if arrayminus is not None else _v _v = arg.pop('arrayminussrc', None) - self.arrayminussrc = arrayminussrc if arrayminussrc is not None else _v + self['arrayminussrc' + ] = arrayminussrc if arrayminussrc is not None else _v _v = arg.pop('arraysrc', None) - self.arraysrc = arraysrc if arraysrc is not None else _v + self['arraysrc'] = arraysrc if arraysrc is not None else _v _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('copy_ystyle', None) - self.copy_ystyle = copy_ystyle if copy_ystyle is not None else _v + self['copy_ystyle'] = copy_ystyle if copy_ystyle is not None else _v _v = arg.pop('symmetric', None) - self.symmetric = symmetric if symmetric is not None else _v + self['symmetric'] = symmetric if symmetric is not None else _v _v = arg.pop('thickness', None) - self.thickness = thickness if thickness is not None else _v + self['thickness'] = thickness if thickness is not None else _v _v = arg.pop('traceref', None) - self.traceref = traceref if traceref is not None else _v + self['traceref'] = traceref if traceref is not None else _v _v = arg.pop('tracerefminus', None) - self.tracerefminus = tracerefminus if tracerefminus is not None else _v + self['tracerefminus' + ] = tracerefminus if tracerefminus is not None else _v _v = arg.pop('type', None) - self.type = type if type is not None else _v + self['type'] = type if type is not None else _v _v = arg.pop('value', None) - self.value = value if value is not None else _v + self['value'] = value if value is not None else _v _v = arg.pop('valueminus', None) - self.valueminus = valueminus if valueminus is not None else _v + self['valueminus'] = valueminus if valueminus is not None else _v _v = arg.pop('visible', None) - self.visible = visible if visible is not None else _v + self['visible'] = visible if visible is not None else _v _v = arg.pop('width', None) - self.width = width if width is not None else _v + self['width'] = width if width is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/scattergl/_error_y.py b/plotly/graph_objs/scattergl/_error_y.py index df60b32fc7d..8f837d4dd26 100644 --- a/plotly/graph_objs/scattergl/_error_y.py +++ b/plotly/graph_objs/scattergl/_error_y.py @@ -528,33 +528,35 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('array', None) - self.array = array if array is not None else _v + self['array'] = array if array is not None else _v _v = arg.pop('arrayminus', None) - self.arrayminus = arrayminus if arrayminus is not None else _v + self['arrayminus'] = arrayminus if arrayminus is not None else _v _v = arg.pop('arrayminussrc', None) - self.arrayminussrc = arrayminussrc if arrayminussrc is not None else _v + self['arrayminussrc' + ] = arrayminussrc if arrayminussrc is not None else _v _v = arg.pop('arraysrc', None) - self.arraysrc = arraysrc if arraysrc is not None else _v + self['arraysrc'] = arraysrc if arraysrc is not None else _v _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('symmetric', None) - self.symmetric = symmetric if symmetric is not None else _v + self['symmetric'] = symmetric if symmetric is not None else _v _v = arg.pop('thickness', None) - self.thickness = thickness if thickness is not None else _v + self['thickness'] = thickness if thickness is not None else _v _v = arg.pop('traceref', None) - self.traceref = traceref if traceref is not None else _v + self['traceref'] = traceref if traceref is not None else _v _v = arg.pop('tracerefminus', None) - self.tracerefminus = tracerefminus if tracerefminus is not None else _v + self['tracerefminus' + ] = tracerefminus if tracerefminus is not None else _v _v = arg.pop('type', None) - self.type = type if type is not None else _v + self['type'] = type if type is not None else _v _v = arg.pop('value', None) - self.value = value if value is not None else _v + self['value'] = value if value is not None else _v _v = arg.pop('valueminus', None) - self.valueminus = valueminus if valueminus is not None else _v + self['valueminus'] = valueminus if valueminus is not None else _v _v = arg.pop('visible', None) - self.visible = visible if visible is not None else _v + self['visible'] = visible if visible is not None else _v _v = arg.pop('width', None) - self.width = width if width is not None else _v + self['width'] = width if width is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/scattergl/_hoverlabel.py b/plotly/graph_objs/scattergl/_hoverlabel.py index 6982130da59..8b9c5ddace9 100644 --- a/plotly/graph_objs/scattergl/_hoverlabel.py +++ b/plotly/graph_objs/scattergl/_hoverlabel.py @@ -385,19 +385,21 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('bgcolor', None) - self.bgcolor = bgcolor if bgcolor is not None else _v + self['bgcolor'] = bgcolor if bgcolor is not None else _v _v = arg.pop('bgcolorsrc', None) - self.bgcolorsrc = bgcolorsrc if bgcolorsrc is not None else _v + self['bgcolorsrc'] = bgcolorsrc if bgcolorsrc is not None else _v _v = arg.pop('bordercolor', None) - self.bordercolor = bordercolor if bordercolor is not None else _v + self['bordercolor'] = bordercolor if bordercolor is not None else _v _v = arg.pop('bordercolorsrc', None) - self.bordercolorsrc = bordercolorsrc if bordercolorsrc is not None else _v + self['bordercolorsrc' + ] = bordercolorsrc if bordercolorsrc is not None else _v _v = arg.pop('font', None) - self.font = font if font is not None else _v + self['font'] = font if font is not None else _v _v = arg.pop('namelength', None) - self.namelength = namelength if namelength is not None else _v + self['namelength'] = namelength if namelength is not None else _v _v = arg.pop('namelengthsrc', None) - self.namelengthsrc = namelengthsrc if namelengthsrc is not None else _v + self['namelengthsrc' + ] = namelengthsrc if namelengthsrc is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/scattergl/_line.py b/plotly/graph_objs/scattergl/_line.py index 074ce6df69a..f0ff8d08713 100644 --- a/plotly/graph_objs/scattergl/_line.py +++ b/plotly/graph_objs/scattergl/_line.py @@ -175,11 +175,11 @@ def __init__(self, arg=None, color=None, dash=None, width=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('dash', None) - self.dash = dash if dash is not None else _v + self['dash'] = dash if dash is not None else _v _v = arg.pop('width', None) - self.width = width if width is not None else _v + self['width'] = width if width is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/scattergl/_marker.py b/plotly/graph_objs/scattergl/_marker.py index 1dcf7f9c04a..3be388d006f 100644 --- a/plotly/graph_objs/scattergl/_marker.py +++ b/plotly/graph_objs/scattergl/_marker.py @@ -1121,45 +1121,46 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('autocolorscale', None) - self.autocolorscale = autocolorscale if autocolorscale is not None else _v + self['autocolorscale' + ] = autocolorscale if autocolorscale is not None else _v _v = arg.pop('cauto', None) - self.cauto = cauto if cauto is not None else _v + self['cauto'] = cauto if cauto is not None else _v _v = arg.pop('cmax', None) - self.cmax = cmax if cmax is not None else _v + self['cmax'] = cmax if cmax is not None else _v _v = arg.pop('cmin', None) - self.cmin = cmin if cmin is not None else _v + self['cmin'] = cmin if cmin is not None else _v _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('colorbar', None) - self.colorbar = colorbar if colorbar is not None else _v + self['colorbar'] = colorbar if colorbar is not None else _v _v = arg.pop('colorscale', None) - self.colorscale = colorscale if colorscale is not None else _v + self['colorscale'] = colorscale if colorscale is not None else _v _v = arg.pop('colorsrc', None) - self.colorsrc = colorsrc if colorsrc is not None else _v + self['colorsrc'] = colorsrc if colorsrc is not None else _v _v = arg.pop('line', None) - self.line = line if line is not None else _v + self['line'] = line if line is not None else _v _v = arg.pop('opacity', None) - self.opacity = opacity if opacity is not None else _v + self['opacity'] = opacity if opacity is not None else _v _v = arg.pop('opacitysrc', None) - self.opacitysrc = opacitysrc if opacitysrc is not None else _v + self['opacitysrc'] = opacitysrc if opacitysrc is not None else _v _v = arg.pop('reversescale', None) - self.reversescale = reversescale if reversescale is not None else _v + self['reversescale'] = reversescale if reversescale is not None else _v _v = arg.pop('showscale', None) - self.showscale = showscale if showscale is not None else _v + self['showscale'] = showscale if showscale is not None else _v _v = arg.pop('size', None) - self.size = size if size is not None else _v + self['size'] = size if size is not None else _v _v = arg.pop('sizemin', None) - self.sizemin = sizemin if sizemin is not None else _v + self['sizemin'] = sizemin if sizemin is not None else _v _v = arg.pop('sizemode', None) - self.sizemode = sizemode if sizemode is not None else _v + self['sizemode'] = sizemode if sizemode is not None else _v _v = arg.pop('sizeref', None) - self.sizeref = sizeref if sizeref is not None else _v + self['sizeref'] = sizeref if sizeref is not None else _v _v = arg.pop('sizesrc', None) - self.sizesrc = sizesrc if sizesrc is not None else _v + self['sizesrc'] = sizesrc if sizesrc is not None else _v _v = arg.pop('symbol', None) - self.symbol = symbol if symbol is not None else _v + self['symbol'] = symbol if symbol is not None else _v _v = arg.pop('symbolsrc', None) - self.symbolsrc = symbolsrc if symbolsrc is not None else _v + self['symbolsrc'] = symbolsrc if symbolsrc is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/scattergl/_selected.py b/plotly/graph_objs/scattergl/_selected.py index 2848cdf19c5..9c78d960253 100644 --- a/plotly/graph_objs/scattergl/_selected.py +++ b/plotly/graph_objs/scattergl/_selected.py @@ -129,9 +129,9 @@ def __init__(self, arg=None, marker=None, textfont=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('marker', None) - self.marker = marker if marker is not None else _v + self['marker'] = marker if marker is not None else _v _v = arg.pop('textfont', None) - self.textfont = textfont if textfont is not None else _v + self['textfont'] = textfont if textfont is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/scattergl/_stream.py b/plotly/graph_objs/scattergl/_stream.py index 8b4af68aa4f..46be1b1d8d2 100644 --- a/plotly/graph_objs/scattergl/_stream.py +++ b/plotly/graph_objs/scattergl/_stream.py @@ -122,9 +122,9 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('maxpoints', None) - self.maxpoints = maxpoints if maxpoints is not None else _v + self['maxpoints'] = maxpoints if maxpoints is not None else _v _v = arg.pop('token', None) - self.token = token if token is not None else _v + self['token'] = token if token is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/scattergl/_textfont.py b/plotly/graph_objs/scattergl/_textfont.py index 3287d9beebe..9d8b8cfaea8 100644 --- a/plotly/graph_objs/scattergl/_textfont.py +++ b/plotly/graph_objs/scattergl/_textfont.py @@ -294,17 +294,17 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('colorsrc', None) - self.colorsrc = colorsrc if colorsrc is not None else _v + self['colorsrc'] = colorsrc if colorsrc is not None else _v _v = arg.pop('family', None) - self.family = family if family is not None else _v + self['family'] = family if family is not None else _v _v = arg.pop('familysrc', None) - self.familysrc = familysrc if familysrc is not None else _v + self['familysrc'] = familysrc if familysrc is not None else _v _v = arg.pop('size', None) - self.size = size if size is not None else _v + self['size'] = size if size is not None else _v _v = arg.pop('sizesrc', None) - self.sizesrc = sizesrc if sizesrc is not None else _v + self['sizesrc'] = sizesrc if sizesrc is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/scattergl/_unselected.py b/plotly/graph_objs/scattergl/_unselected.py index ddeadaac2e5..afd2449907c 100644 --- a/plotly/graph_objs/scattergl/_unselected.py +++ b/plotly/graph_objs/scattergl/_unselected.py @@ -133,9 +133,9 @@ def __init__(self, arg=None, marker=None, textfont=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('marker', None) - self.marker = marker if marker is not None else _v + self['marker'] = marker if marker is not None else _v _v = arg.pop('textfont', None) - self.textfont = textfont if textfont is not None else _v + self['textfont'] = textfont if textfont is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/scattergl/hoverlabel/_font.py b/plotly/graph_objs/scattergl/hoverlabel/_font.py index 4b858de02ef..7c167857a2d 100644 --- a/plotly/graph_objs/scattergl/hoverlabel/_font.py +++ b/plotly/graph_objs/scattergl/hoverlabel/_font.py @@ -295,17 +295,17 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('colorsrc', None) - self.colorsrc = colorsrc if colorsrc is not None else _v + self['colorsrc'] = colorsrc if colorsrc is not None else _v _v = arg.pop('family', None) - self.family = family if family is not None else _v + self['family'] = family if family is not None else _v _v = arg.pop('familysrc', None) - self.familysrc = familysrc if familysrc is not None else _v + self['familysrc'] = familysrc if familysrc is not None else _v _v = arg.pop('size', None) - self.size = size if size is not None else _v + self['size'] = size if size is not None else _v _v = arg.pop('sizesrc', None) - self.sizesrc = sizesrc if sizesrc is not None else _v + self['sizesrc'] = sizesrc if sizesrc is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/scattergl/marker/_colorbar.py b/plotly/graph_objs/scattergl/marker/_colorbar.py index 6520413827a..3d0c72ca784 100644 --- a/plotly/graph_objs/scattergl/marker/_colorbar.py +++ b/plotly/graph_objs/scattergl/marker/_colorbar.py @@ -1672,89 +1672,96 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('bgcolor', None) - self.bgcolor = bgcolor if bgcolor is not None else _v + self['bgcolor'] = bgcolor if bgcolor is not None else _v _v = arg.pop('bordercolor', None) - self.bordercolor = bordercolor if bordercolor is not None else _v + self['bordercolor'] = bordercolor if bordercolor is not None else _v _v = arg.pop('borderwidth', None) - self.borderwidth = borderwidth if borderwidth is not None else _v + self['borderwidth'] = borderwidth if borderwidth is not None else _v _v = arg.pop('dtick', None) - self.dtick = dtick if dtick is not None else _v + self['dtick'] = dtick if dtick is not None else _v _v = arg.pop('exponentformat', None) - self.exponentformat = exponentformat if exponentformat is not None else _v + self['exponentformat' + ] = exponentformat if exponentformat is not None else _v _v = arg.pop('len', None) - self.len = len if len is not None else _v + self['len'] = len if len is not None else _v _v = arg.pop('lenmode', None) - self.lenmode = lenmode if lenmode is not None else _v + self['lenmode'] = lenmode if lenmode is not None else _v _v = arg.pop('nticks', None) - self.nticks = nticks if nticks is not None else _v + self['nticks'] = nticks if nticks is not None else _v _v = arg.pop('outlinecolor', None) - self.outlinecolor = outlinecolor if outlinecolor is not None else _v + self['outlinecolor'] = outlinecolor if outlinecolor is not None else _v _v = arg.pop('outlinewidth', None) - self.outlinewidth = outlinewidth if outlinewidth is not None else _v + self['outlinewidth'] = outlinewidth if outlinewidth is not None else _v _v = arg.pop('separatethousands', None) - self.separatethousands = separatethousands if separatethousands is not None else _v + self['separatethousands' + ] = separatethousands if separatethousands is not None else _v _v = arg.pop('showexponent', None) - self.showexponent = showexponent if showexponent is not None else _v + self['showexponent'] = showexponent if showexponent is not None else _v _v = arg.pop('showticklabels', None) - self.showticklabels = showticklabels if showticklabels is not None else _v + self['showticklabels' + ] = showticklabels if showticklabels is not None else _v _v = arg.pop('showtickprefix', None) - self.showtickprefix = showtickprefix if showtickprefix is not None else _v + self['showtickprefix' + ] = showtickprefix if showtickprefix is not None else _v _v = arg.pop('showticksuffix', None) - self.showticksuffix = showticksuffix if showticksuffix is not None else _v + self['showticksuffix' + ] = showticksuffix if showticksuffix is not None else _v _v = arg.pop('thickness', None) - self.thickness = thickness if thickness is not None else _v + self['thickness'] = thickness if thickness is not None else _v _v = arg.pop('thicknessmode', None) - self.thicknessmode = thicknessmode if thicknessmode is not None else _v + self['thicknessmode' + ] = thicknessmode if thicknessmode is not None else _v _v = arg.pop('tick0', None) - self.tick0 = tick0 if tick0 is not None else _v + self['tick0'] = tick0 if tick0 is not None else _v _v = arg.pop('tickangle', None) - self.tickangle = tickangle if tickangle is not None else _v + self['tickangle'] = tickangle if tickangle is not None else _v _v = arg.pop('tickcolor', None) - self.tickcolor = tickcolor if tickcolor is not None else _v + self['tickcolor'] = tickcolor if tickcolor is not None else _v _v = arg.pop('tickfont', None) - self.tickfont = tickfont if tickfont is not None else _v + self['tickfont'] = tickfont if tickfont is not None else _v _v = arg.pop('tickformat', None) - self.tickformat = tickformat if tickformat is not None else _v + self['tickformat'] = tickformat if tickformat is not None else _v _v = arg.pop('tickformatstops', None) - self.tickformatstops = tickformatstops if tickformatstops is not None else _v + self['tickformatstops' + ] = tickformatstops if tickformatstops is not None else _v _v = arg.pop('ticklen', None) - self.ticklen = ticklen if ticklen is not None else _v + self['ticklen'] = ticklen if ticklen is not None else _v _v = arg.pop('tickmode', None) - self.tickmode = tickmode if tickmode is not None else _v + self['tickmode'] = tickmode if tickmode is not None else _v _v = arg.pop('tickprefix', None) - self.tickprefix = tickprefix if tickprefix is not None else _v + self['tickprefix'] = tickprefix if tickprefix is not None else _v _v = arg.pop('ticks', None) - self.ticks = ticks if ticks is not None else _v + self['ticks'] = ticks if ticks is not None else _v _v = arg.pop('ticksuffix', None) - self.ticksuffix = ticksuffix if ticksuffix is not None else _v + self['ticksuffix'] = ticksuffix if ticksuffix is not None else _v _v = arg.pop('ticktext', None) - self.ticktext = ticktext if ticktext is not None else _v + self['ticktext'] = ticktext if ticktext is not None else _v _v = arg.pop('ticktextsrc', None) - self.ticktextsrc = ticktextsrc if ticktextsrc is not None else _v + self['ticktextsrc'] = ticktextsrc if ticktextsrc is not None else _v _v = arg.pop('tickvals', None) - self.tickvals = tickvals if tickvals is not None else _v + self['tickvals'] = tickvals if tickvals is not None else _v _v = arg.pop('tickvalssrc', None) - self.tickvalssrc = tickvalssrc if tickvalssrc is not None else _v + self['tickvalssrc'] = tickvalssrc if tickvalssrc is not None else _v _v = arg.pop('tickwidth', None) - self.tickwidth = tickwidth if tickwidth is not None else _v + self['tickwidth'] = tickwidth if tickwidth is not None else _v _v = arg.pop('title', None) - self.title = title if title is not None else _v + self['title'] = title if title is not None else _v _v = arg.pop('titlefont', None) - self.titlefont = titlefont if titlefont is not None else _v + self['titlefont'] = titlefont if titlefont is not None else _v _v = arg.pop('titleside', None) - self.titleside = titleside if titleside is not None else _v + self['titleside'] = titleside if titleside is not None else _v _v = arg.pop('x', None) - self.x = x if x is not None else _v + self['x'] = x if x is not None else _v _v = arg.pop('xanchor', None) - self.xanchor = xanchor if xanchor is not None else _v + self['xanchor'] = xanchor if xanchor is not None else _v _v = arg.pop('xpad', None) - self.xpad = xpad if xpad is not None else _v + self['xpad'] = xpad if xpad is not None else _v _v = arg.pop('y', None) - self.y = y if y is not None else _v + self['y'] = y if y is not None else _v _v = arg.pop('yanchor', None) - self.yanchor = yanchor if yanchor is not None else _v + self['yanchor'] = yanchor if yanchor is not None else _v _v = arg.pop('ypad', None) - self.ypad = ypad if ypad is not None else _v + self['ypad'] = ypad if ypad is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/scattergl/marker/_line.py b/plotly/graph_objs/scattergl/marker/_line.py index 294be36bad7..9ac46965c9f 100644 --- a/plotly/graph_objs/scattergl/marker/_line.py +++ b/plotly/graph_objs/scattergl/marker/_line.py @@ -495,25 +495,26 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('autocolorscale', None) - self.autocolorscale = autocolorscale if autocolorscale is not None else _v + self['autocolorscale' + ] = autocolorscale if autocolorscale is not None else _v _v = arg.pop('cauto', None) - self.cauto = cauto if cauto is not None else _v + self['cauto'] = cauto if cauto is not None else _v _v = arg.pop('cmax', None) - self.cmax = cmax if cmax is not None else _v + self['cmax'] = cmax if cmax is not None else _v _v = arg.pop('cmin', None) - self.cmin = cmin if cmin is not None else _v + self['cmin'] = cmin if cmin is not None else _v _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('colorscale', None) - self.colorscale = colorscale if colorscale is not None else _v + self['colorscale'] = colorscale if colorscale is not None else _v _v = arg.pop('colorsrc', None) - self.colorsrc = colorsrc if colorsrc is not None else _v + self['colorsrc'] = colorsrc if colorsrc is not None else _v _v = arg.pop('reversescale', None) - self.reversescale = reversescale if reversescale is not None else _v + self['reversescale'] = reversescale if reversescale is not None else _v _v = arg.pop('width', None) - self.width = width if width is not None else _v + self['width'] = width if width is not None else _v _v = arg.pop('widthsrc', None) - self.widthsrc = widthsrc if widthsrc is not None else _v + self['widthsrc'] = widthsrc if widthsrc is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/scattergl/marker/colorbar/_tickfont.py b/plotly/graph_objs/scattergl/marker/colorbar/_tickfont.py index 7606916a2b5..519ffded575 100644 --- a/plotly/graph_objs/scattergl/marker/colorbar/_tickfont.py +++ b/plotly/graph_objs/scattergl/marker/colorbar/_tickfont.py @@ -209,11 +209,11 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('family', None) - self.family = family if family is not None else _v + self['family'] = family if family is not None else _v _v = arg.pop('size', None) - self.size = size if size is not None else _v + self['size'] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/scattergl/marker/colorbar/_tickformatstop.py b/plotly/graph_objs/scattergl/marker/colorbar/_tickformatstop.py index 9b522bf1375..48bfcbaeac6 100644 --- a/plotly/graph_objs/scattergl/marker/colorbar/_tickformatstop.py +++ b/plotly/graph_objs/scattergl/marker/colorbar/_tickformatstop.py @@ -260,15 +260,16 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('dtickrange', None) - self.dtickrange = dtickrange if dtickrange is not None else _v + self['dtickrange'] = dtickrange if dtickrange is not None else _v _v = arg.pop('enabled', None) - self.enabled = enabled if enabled is not None else _v + self['enabled'] = enabled if enabled is not None else _v _v = arg.pop('name', None) - self.name = name if name is not None else _v + self['name'] = name if name is not None else _v _v = arg.pop('templateitemname', None) - self.templateitemname = templateitemname if templateitemname is not None else _v + self['templateitemname' + ] = templateitemname if templateitemname is not None else _v _v = arg.pop('value', None) - self.value = value if value is not None else _v + self['value'] = value if value is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/scattergl/marker/colorbar/_titlefont.py b/plotly/graph_objs/scattergl/marker/colorbar/_titlefont.py index d162d4da24c..50bbc6bf3fd 100644 --- a/plotly/graph_objs/scattergl/marker/colorbar/_titlefont.py +++ b/plotly/graph_objs/scattergl/marker/colorbar/_titlefont.py @@ -209,11 +209,11 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('family', None) - self.family = family if family is not None else _v + self['family'] = family if family is not None else _v _v = arg.pop('size', None) - self.size = size if size is not None else _v + self['size'] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/scattergl/selected/_marker.py b/plotly/graph_objs/scattergl/selected/_marker.py index 34b9c36adc0..e2ba8ba0ac7 100644 --- a/plotly/graph_objs/scattergl/selected/_marker.py +++ b/plotly/graph_objs/scattergl/selected/_marker.py @@ -176,11 +176,11 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('opacity', None) - self.opacity = opacity if opacity is not None else _v + self['opacity'] = opacity if opacity is not None else _v _v = arg.pop('size', None) - self.size = size if size is not None else _v + self['size'] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/scattergl/selected/_textfont.py b/plotly/graph_objs/scattergl/selected/_textfont.py index fccee7e2b54..039e65ac59b 100644 --- a/plotly/graph_objs/scattergl/selected/_textfont.py +++ b/plotly/graph_objs/scattergl/selected/_textfont.py @@ -126,7 +126,7 @@ def __init__(self, arg=None, color=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/scattergl/unselected/_marker.py b/plotly/graph_objs/scattergl/unselected/_marker.py index a94c9b79c3f..74261215ca7 100644 --- a/plotly/graph_objs/scattergl/unselected/_marker.py +++ b/plotly/graph_objs/scattergl/unselected/_marker.py @@ -185,11 +185,11 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('opacity', None) - self.opacity = opacity if opacity is not None else _v + self['opacity'] = opacity if opacity is not None else _v _v = arg.pop('size', None) - self.size = size if size is not None else _v + self['size'] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/scattergl/unselected/_textfont.py b/plotly/graph_objs/scattergl/unselected/_textfont.py index 0dba174e32e..8065ff70714 100644 --- a/plotly/graph_objs/scattergl/unselected/_textfont.py +++ b/plotly/graph_objs/scattergl/unselected/_textfont.py @@ -129,7 +129,7 @@ def __init__(self, arg=None, color=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/scattermapbox/_hoverlabel.py b/plotly/graph_objs/scattermapbox/_hoverlabel.py index e76160238ef..23fa942427f 100644 --- a/plotly/graph_objs/scattermapbox/_hoverlabel.py +++ b/plotly/graph_objs/scattermapbox/_hoverlabel.py @@ -388,19 +388,21 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('bgcolor', None) - self.bgcolor = bgcolor if bgcolor is not None else _v + self['bgcolor'] = bgcolor if bgcolor is not None else _v _v = arg.pop('bgcolorsrc', None) - self.bgcolorsrc = bgcolorsrc if bgcolorsrc is not None else _v + self['bgcolorsrc'] = bgcolorsrc if bgcolorsrc is not None else _v _v = arg.pop('bordercolor', None) - self.bordercolor = bordercolor if bordercolor is not None else _v + self['bordercolor'] = bordercolor if bordercolor is not None else _v _v = arg.pop('bordercolorsrc', None) - self.bordercolorsrc = bordercolorsrc if bordercolorsrc is not None else _v + self['bordercolorsrc' + ] = bordercolorsrc if bordercolorsrc is not None else _v _v = arg.pop('font', None) - self.font = font if font is not None else _v + self['font'] = font if font is not None else _v _v = arg.pop('namelength', None) - self.namelength = namelength if namelength is not None else _v + self['namelength'] = namelength if namelength is not None else _v _v = arg.pop('namelengthsrc', None) - self.namelengthsrc = namelengthsrc if namelengthsrc is not None else _v + self['namelengthsrc' + ] = namelengthsrc if namelengthsrc is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/scattermapbox/_line.py b/plotly/graph_objs/scattermapbox/_line.py index d987ca03895..3b2fd409d43 100644 --- a/plotly/graph_objs/scattermapbox/_line.py +++ b/plotly/graph_objs/scattermapbox/_line.py @@ -148,9 +148,9 @@ def __init__(self, arg=None, color=None, width=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('width', None) - self.width = width if width is not None else _v + self['width'] = width if width is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/scattermapbox/_marker.py b/plotly/graph_objs/scattermapbox/_marker.py index 98fcefd1854..4e457cbab3f 100644 --- a/plotly/graph_objs/scattermapbox/_marker.py +++ b/plotly/graph_objs/scattermapbox/_marker.py @@ -956,43 +956,44 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('autocolorscale', None) - self.autocolorscale = autocolorscale if autocolorscale is not None else _v + self['autocolorscale' + ] = autocolorscale if autocolorscale is not None else _v _v = arg.pop('cauto', None) - self.cauto = cauto if cauto is not None else _v + self['cauto'] = cauto if cauto is not None else _v _v = arg.pop('cmax', None) - self.cmax = cmax if cmax is not None else _v + self['cmax'] = cmax if cmax is not None else _v _v = arg.pop('cmin', None) - self.cmin = cmin if cmin is not None else _v + self['cmin'] = cmin if cmin is not None else _v _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('colorbar', None) - self.colorbar = colorbar if colorbar is not None else _v + self['colorbar'] = colorbar if colorbar is not None else _v _v = arg.pop('colorscale', None) - self.colorscale = colorscale if colorscale is not None else _v + self['colorscale'] = colorscale if colorscale is not None else _v _v = arg.pop('colorsrc', None) - self.colorsrc = colorsrc if colorsrc is not None else _v + self['colorsrc'] = colorsrc if colorsrc is not None else _v _v = arg.pop('opacity', None) - self.opacity = opacity if opacity is not None else _v + self['opacity'] = opacity if opacity is not None else _v _v = arg.pop('opacitysrc', None) - self.opacitysrc = opacitysrc if opacitysrc is not None else _v + self['opacitysrc'] = opacitysrc if opacitysrc is not None else _v _v = arg.pop('reversescale', None) - self.reversescale = reversescale if reversescale is not None else _v + self['reversescale'] = reversescale if reversescale is not None else _v _v = arg.pop('showscale', None) - self.showscale = showscale if showscale is not None else _v + self['showscale'] = showscale if showscale is not None else _v _v = arg.pop('size', None) - self.size = size if size is not None else _v + self['size'] = size if size is not None else _v _v = arg.pop('sizemin', None) - self.sizemin = sizemin if sizemin is not None else _v + self['sizemin'] = sizemin if sizemin is not None else _v _v = arg.pop('sizemode', None) - self.sizemode = sizemode if sizemode is not None else _v + self['sizemode'] = sizemode if sizemode is not None else _v _v = arg.pop('sizeref', None) - self.sizeref = sizeref if sizeref is not None else _v + self['sizeref'] = sizeref if sizeref is not None else _v _v = arg.pop('sizesrc', None) - self.sizesrc = sizesrc if sizesrc is not None else _v + self['sizesrc'] = sizesrc if sizesrc is not None else _v _v = arg.pop('symbol', None) - self.symbol = symbol if symbol is not None else _v + self['symbol'] = symbol if symbol is not None else _v _v = arg.pop('symbolsrc', None) - self.symbolsrc = symbolsrc if symbolsrc is not None else _v + self['symbolsrc'] = symbolsrc if symbolsrc is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/scattermapbox/_selected.py b/plotly/graph_objs/scattermapbox/_selected.py index 3f8799bd6e2..a4e26db33ce 100644 --- a/plotly/graph_objs/scattermapbox/_selected.py +++ b/plotly/graph_objs/scattermapbox/_selected.py @@ -96,7 +96,7 @@ def __init__(self, arg=None, marker=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('marker', None) - self.marker = marker if marker is not None else _v + self['marker'] = marker if marker is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/scattermapbox/_stream.py b/plotly/graph_objs/scattermapbox/_stream.py index 290c80dfc3a..2e29ae94190 100644 --- a/plotly/graph_objs/scattermapbox/_stream.py +++ b/plotly/graph_objs/scattermapbox/_stream.py @@ -122,9 +122,9 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('maxpoints', None) - self.maxpoints = maxpoints if maxpoints is not None else _v + self['maxpoints'] = maxpoints if maxpoints is not None else _v _v = arg.pop('token', None) - self.token = token if token is not None else _v + self['token'] = token if token is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/scattermapbox/_textfont.py b/plotly/graph_objs/scattermapbox/_textfont.py index ae845cddc55..09aec2a5b08 100644 --- a/plotly/graph_objs/scattermapbox/_textfont.py +++ b/plotly/graph_objs/scattermapbox/_textfont.py @@ -207,11 +207,11 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('family', None) - self.family = family if family is not None else _v + self['family'] = family if family is not None else _v _v = arg.pop('size', None) - self.size = size if size is not None else _v + self['size'] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/scattermapbox/_unselected.py b/plotly/graph_objs/scattermapbox/_unselected.py index 6add633468c..8805ee3859e 100644 --- a/plotly/graph_objs/scattermapbox/_unselected.py +++ b/plotly/graph_objs/scattermapbox/_unselected.py @@ -102,7 +102,7 @@ def __init__(self, arg=None, marker=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('marker', None) - self.marker = marker if marker is not None else _v + self['marker'] = marker if marker is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/scattermapbox/hoverlabel/_font.py b/plotly/graph_objs/scattermapbox/hoverlabel/_font.py index 859770848e9..9f162bb21b7 100644 --- a/plotly/graph_objs/scattermapbox/hoverlabel/_font.py +++ b/plotly/graph_objs/scattermapbox/hoverlabel/_font.py @@ -295,17 +295,17 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('colorsrc', None) - self.colorsrc = colorsrc if colorsrc is not None else _v + self['colorsrc'] = colorsrc if colorsrc is not None else _v _v = arg.pop('family', None) - self.family = family if family is not None else _v + self['family'] = family if family is not None else _v _v = arg.pop('familysrc', None) - self.familysrc = familysrc if familysrc is not None else _v + self['familysrc'] = familysrc if familysrc is not None else _v _v = arg.pop('size', None) - self.size = size if size is not None else _v + self['size'] = size if size is not None else _v _v = arg.pop('sizesrc', None) - self.sizesrc = sizesrc if sizesrc is not None else _v + self['sizesrc'] = sizesrc if sizesrc is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/scattermapbox/marker/_colorbar.py b/plotly/graph_objs/scattermapbox/marker/_colorbar.py index 4dbdc15f5b9..8b13ee8ca4e 100644 --- a/plotly/graph_objs/scattermapbox/marker/_colorbar.py +++ b/plotly/graph_objs/scattermapbox/marker/_colorbar.py @@ -1674,89 +1674,96 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('bgcolor', None) - self.bgcolor = bgcolor if bgcolor is not None else _v + self['bgcolor'] = bgcolor if bgcolor is not None else _v _v = arg.pop('bordercolor', None) - self.bordercolor = bordercolor if bordercolor is not None else _v + self['bordercolor'] = bordercolor if bordercolor is not None else _v _v = arg.pop('borderwidth', None) - self.borderwidth = borderwidth if borderwidth is not None else _v + self['borderwidth'] = borderwidth if borderwidth is not None else _v _v = arg.pop('dtick', None) - self.dtick = dtick if dtick is not None else _v + self['dtick'] = dtick if dtick is not None else _v _v = arg.pop('exponentformat', None) - self.exponentformat = exponentformat if exponentformat is not None else _v + self['exponentformat' + ] = exponentformat if exponentformat is not None else _v _v = arg.pop('len', None) - self.len = len if len is not None else _v + self['len'] = len if len is not None else _v _v = arg.pop('lenmode', None) - self.lenmode = lenmode if lenmode is not None else _v + self['lenmode'] = lenmode if lenmode is not None else _v _v = arg.pop('nticks', None) - self.nticks = nticks if nticks is not None else _v + self['nticks'] = nticks if nticks is not None else _v _v = arg.pop('outlinecolor', None) - self.outlinecolor = outlinecolor if outlinecolor is not None else _v + self['outlinecolor'] = outlinecolor if outlinecolor is not None else _v _v = arg.pop('outlinewidth', None) - self.outlinewidth = outlinewidth if outlinewidth is not None else _v + self['outlinewidth'] = outlinewidth if outlinewidth is not None else _v _v = arg.pop('separatethousands', None) - self.separatethousands = separatethousands if separatethousands is not None else _v + self['separatethousands' + ] = separatethousands if separatethousands is not None else _v _v = arg.pop('showexponent', None) - self.showexponent = showexponent if showexponent is not None else _v + self['showexponent'] = showexponent if showexponent is not None else _v _v = arg.pop('showticklabels', None) - self.showticklabels = showticklabels if showticklabels is not None else _v + self['showticklabels' + ] = showticklabels if showticklabels is not None else _v _v = arg.pop('showtickprefix', None) - self.showtickprefix = showtickprefix if showtickprefix is not None else _v + self['showtickprefix' + ] = showtickprefix if showtickprefix is not None else _v _v = arg.pop('showticksuffix', None) - self.showticksuffix = showticksuffix if showticksuffix is not None else _v + self['showticksuffix' + ] = showticksuffix if showticksuffix is not None else _v _v = arg.pop('thickness', None) - self.thickness = thickness if thickness is not None else _v + self['thickness'] = thickness if thickness is not None else _v _v = arg.pop('thicknessmode', None) - self.thicknessmode = thicknessmode if thicknessmode is not None else _v + self['thicknessmode' + ] = thicknessmode if thicknessmode is not None else _v _v = arg.pop('tick0', None) - self.tick0 = tick0 if tick0 is not None else _v + self['tick0'] = tick0 if tick0 is not None else _v _v = arg.pop('tickangle', None) - self.tickangle = tickangle if tickangle is not None else _v + self['tickangle'] = tickangle if tickangle is not None else _v _v = arg.pop('tickcolor', None) - self.tickcolor = tickcolor if tickcolor is not None else _v + self['tickcolor'] = tickcolor if tickcolor is not None else _v _v = arg.pop('tickfont', None) - self.tickfont = tickfont if tickfont is not None else _v + self['tickfont'] = tickfont if tickfont is not None else _v _v = arg.pop('tickformat', None) - self.tickformat = tickformat if tickformat is not None else _v + self['tickformat'] = tickformat if tickformat is not None else _v _v = arg.pop('tickformatstops', None) - self.tickformatstops = tickformatstops if tickformatstops is not None else _v + self['tickformatstops' + ] = tickformatstops if tickformatstops is not None else _v _v = arg.pop('ticklen', None) - self.ticklen = ticklen if ticklen is not None else _v + self['ticklen'] = ticklen if ticklen is not None else _v _v = arg.pop('tickmode', None) - self.tickmode = tickmode if tickmode is not None else _v + self['tickmode'] = tickmode if tickmode is not None else _v _v = arg.pop('tickprefix', None) - self.tickprefix = tickprefix if tickprefix is not None else _v + self['tickprefix'] = tickprefix if tickprefix is not None else _v _v = arg.pop('ticks', None) - self.ticks = ticks if ticks is not None else _v + self['ticks'] = ticks if ticks is not None else _v _v = arg.pop('ticksuffix', None) - self.ticksuffix = ticksuffix if ticksuffix is not None else _v + self['ticksuffix'] = ticksuffix if ticksuffix is not None else _v _v = arg.pop('ticktext', None) - self.ticktext = ticktext if ticktext is not None else _v + self['ticktext'] = ticktext if ticktext is not None else _v _v = arg.pop('ticktextsrc', None) - self.ticktextsrc = ticktextsrc if ticktextsrc is not None else _v + self['ticktextsrc'] = ticktextsrc if ticktextsrc is not None else _v _v = arg.pop('tickvals', None) - self.tickvals = tickvals if tickvals is not None else _v + self['tickvals'] = tickvals if tickvals is not None else _v _v = arg.pop('tickvalssrc', None) - self.tickvalssrc = tickvalssrc if tickvalssrc is not None else _v + self['tickvalssrc'] = tickvalssrc if tickvalssrc is not None else _v _v = arg.pop('tickwidth', None) - self.tickwidth = tickwidth if tickwidth is not None else _v + self['tickwidth'] = tickwidth if tickwidth is not None else _v _v = arg.pop('title', None) - self.title = title if title is not None else _v + self['title'] = title if title is not None else _v _v = arg.pop('titlefont', None) - self.titlefont = titlefont if titlefont is not None else _v + self['titlefont'] = titlefont if titlefont is not None else _v _v = arg.pop('titleside', None) - self.titleside = titleside if titleside is not None else _v + self['titleside'] = titleside if titleside is not None else _v _v = arg.pop('x', None) - self.x = x if x is not None else _v + self['x'] = x if x is not None else _v _v = arg.pop('xanchor', None) - self.xanchor = xanchor if xanchor is not None else _v + self['xanchor'] = xanchor if xanchor is not None else _v _v = arg.pop('xpad', None) - self.xpad = xpad if xpad is not None else _v + self['xpad'] = xpad if xpad is not None else _v _v = arg.pop('y', None) - self.y = y if y is not None else _v + self['y'] = y if y is not None else _v _v = arg.pop('yanchor', None) - self.yanchor = yanchor if yanchor is not None else _v + self['yanchor'] = yanchor if yanchor is not None else _v _v = arg.pop('ypad', None) - self.ypad = ypad if ypad is not None else _v + self['ypad'] = ypad if ypad is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/scattermapbox/marker/colorbar/_tickfont.py b/plotly/graph_objs/scattermapbox/marker/colorbar/_tickfont.py index 90c0ed40a7a..7272ee49d6f 100644 --- a/plotly/graph_objs/scattermapbox/marker/colorbar/_tickfont.py +++ b/plotly/graph_objs/scattermapbox/marker/colorbar/_tickfont.py @@ -209,11 +209,11 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('family', None) - self.family = family if family is not None else _v + self['family'] = family if family is not None else _v _v = arg.pop('size', None) - self.size = size if size is not None else _v + self['size'] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/scattermapbox/marker/colorbar/_tickformatstop.py b/plotly/graph_objs/scattermapbox/marker/colorbar/_tickformatstop.py index 7f778bcda5c..6c110c1076e 100644 --- a/plotly/graph_objs/scattermapbox/marker/colorbar/_tickformatstop.py +++ b/plotly/graph_objs/scattermapbox/marker/colorbar/_tickformatstop.py @@ -260,15 +260,16 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('dtickrange', None) - self.dtickrange = dtickrange if dtickrange is not None else _v + self['dtickrange'] = dtickrange if dtickrange is not None else _v _v = arg.pop('enabled', None) - self.enabled = enabled if enabled is not None else _v + self['enabled'] = enabled if enabled is not None else _v _v = arg.pop('name', None) - self.name = name if name is not None else _v + self['name'] = name if name is not None else _v _v = arg.pop('templateitemname', None) - self.templateitemname = templateitemname if templateitemname is not None else _v + self['templateitemname' + ] = templateitemname if templateitemname is not None else _v _v = arg.pop('value', None) - self.value = value if value is not None else _v + self['value'] = value if value is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/scattermapbox/marker/colorbar/_titlefont.py b/plotly/graph_objs/scattermapbox/marker/colorbar/_titlefont.py index fedad63a05c..fe2d2479169 100644 --- a/plotly/graph_objs/scattermapbox/marker/colorbar/_titlefont.py +++ b/plotly/graph_objs/scattermapbox/marker/colorbar/_titlefont.py @@ -209,11 +209,11 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('family', None) - self.family = family if family is not None else _v + self['family'] = family if family is not None else _v _v = arg.pop('size', None) - self.size = size if size is not None else _v + self['size'] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/scattermapbox/selected/_marker.py b/plotly/graph_objs/scattermapbox/selected/_marker.py index 183d95f4a2b..921aa32cb18 100644 --- a/plotly/graph_objs/scattermapbox/selected/_marker.py +++ b/plotly/graph_objs/scattermapbox/selected/_marker.py @@ -178,11 +178,11 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('opacity', None) - self.opacity = opacity if opacity is not None else _v + self['opacity'] = opacity if opacity is not None else _v _v = arg.pop('size', None) - self.size = size if size is not None else _v + self['size'] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/scattermapbox/unselected/_marker.py b/plotly/graph_objs/scattermapbox/unselected/_marker.py index 1951b4e7169..2adcccf8fdd 100644 --- a/plotly/graph_objs/scattermapbox/unselected/_marker.py +++ b/plotly/graph_objs/scattermapbox/unselected/_marker.py @@ -187,11 +187,11 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('opacity', None) - self.opacity = opacity if opacity is not None else _v + self['opacity'] = opacity if opacity is not None else _v _v = arg.pop('size', None) - self.size = size if size is not None else _v + self['size'] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/scatterpolar/_hoverlabel.py b/plotly/graph_objs/scatterpolar/_hoverlabel.py index e688b7aca8b..ed8aa9e4924 100644 --- a/plotly/graph_objs/scatterpolar/_hoverlabel.py +++ b/plotly/graph_objs/scatterpolar/_hoverlabel.py @@ -386,19 +386,21 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('bgcolor', None) - self.bgcolor = bgcolor if bgcolor is not None else _v + self['bgcolor'] = bgcolor if bgcolor is not None else _v _v = arg.pop('bgcolorsrc', None) - self.bgcolorsrc = bgcolorsrc if bgcolorsrc is not None else _v + self['bgcolorsrc'] = bgcolorsrc if bgcolorsrc is not None else _v _v = arg.pop('bordercolor', None) - self.bordercolor = bordercolor if bordercolor is not None else _v + self['bordercolor'] = bordercolor if bordercolor is not None else _v _v = arg.pop('bordercolorsrc', None) - self.bordercolorsrc = bordercolorsrc if bordercolorsrc is not None else _v + self['bordercolorsrc' + ] = bordercolorsrc if bordercolorsrc is not None else _v _v = arg.pop('font', None) - self.font = font if font is not None else _v + self['font'] = font if font is not None else _v _v = arg.pop('namelength', None) - self.namelength = namelength if namelength is not None else _v + self['namelength'] = namelength if namelength is not None else _v _v = arg.pop('namelengthsrc', None) - self.namelengthsrc = namelengthsrc if namelengthsrc is not None else _v + self['namelengthsrc' + ] = namelengthsrc if namelengthsrc is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/scatterpolar/_line.py b/plotly/graph_objs/scatterpolar/_line.py index c1a11f2c89a..ca0fcca36f4 100644 --- a/plotly/graph_objs/scatterpolar/_line.py +++ b/plotly/graph_objs/scatterpolar/_line.py @@ -257,15 +257,15 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('dash', None) - self.dash = dash if dash is not None else _v + self['dash'] = dash if dash is not None else _v _v = arg.pop('shape', None) - self.shape = shape if shape is not None else _v + self['shape'] = shape if shape is not None else _v _v = arg.pop('smoothing', None) - self.smoothing = smoothing if smoothing is not None else _v + self['smoothing'] = smoothing if smoothing is not None else _v _v = arg.pop('width', None) - self.width = width if width is not None else _v + self['width'] = width if width is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/scatterpolar/_marker.py b/plotly/graph_objs/scatterpolar/_marker.py index 503471624c9..099948868d9 100644 --- a/plotly/graph_objs/scatterpolar/_marker.py +++ b/plotly/graph_objs/scatterpolar/_marker.py @@ -1195,49 +1195,50 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('autocolorscale', None) - self.autocolorscale = autocolorscale if autocolorscale is not None else _v + self['autocolorscale' + ] = autocolorscale if autocolorscale is not None else _v _v = arg.pop('cauto', None) - self.cauto = cauto if cauto is not None else _v + self['cauto'] = cauto if cauto is not None else _v _v = arg.pop('cmax', None) - self.cmax = cmax if cmax is not None else _v + self['cmax'] = cmax if cmax is not None else _v _v = arg.pop('cmin', None) - self.cmin = cmin if cmin is not None else _v + self['cmin'] = cmin if cmin is not None else _v _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('colorbar', None) - self.colorbar = colorbar if colorbar is not None else _v + self['colorbar'] = colorbar if colorbar is not None else _v _v = arg.pop('colorscale', None) - self.colorscale = colorscale if colorscale is not None else _v + self['colorscale'] = colorscale if colorscale is not None else _v _v = arg.pop('colorsrc', None) - self.colorsrc = colorsrc if colorsrc is not None else _v + self['colorsrc'] = colorsrc if colorsrc is not None else _v _v = arg.pop('gradient', None) - self.gradient = gradient if gradient is not None else _v + self['gradient'] = gradient if gradient is not None else _v _v = arg.pop('line', None) - self.line = line if line is not None else _v + self['line'] = line if line is not None else _v _v = arg.pop('maxdisplayed', None) - self.maxdisplayed = maxdisplayed if maxdisplayed is not None else _v + self['maxdisplayed'] = maxdisplayed if maxdisplayed is not None else _v _v = arg.pop('opacity', None) - self.opacity = opacity if opacity is not None else _v + self['opacity'] = opacity if opacity is not None else _v _v = arg.pop('opacitysrc', None) - self.opacitysrc = opacitysrc if opacitysrc is not None else _v + self['opacitysrc'] = opacitysrc if opacitysrc is not None else _v _v = arg.pop('reversescale', None) - self.reversescale = reversescale if reversescale is not None else _v + self['reversescale'] = reversescale if reversescale is not None else _v _v = arg.pop('showscale', None) - self.showscale = showscale if showscale is not None else _v + self['showscale'] = showscale if showscale is not None else _v _v = arg.pop('size', None) - self.size = size if size is not None else _v + self['size'] = size if size is not None else _v _v = arg.pop('sizemin', None) - self.sizemin = sizemin if sizemin is not None else _v + self['sizemin'] = sizemin if sizemin is not None else _v _v = arg.pop('sizemode', None) - self.sizemode = sizemode if sizemode is not None else _v + self['sizemode'] = sizemode if sizemode is not None else _v _v = arg.pop('sizeref', None) - self.sizeref = sizeref if sizeref is not None else _v + self['sizeref'] = sizeref if sizeref is not None else _v _v = arg.pop('sizesrc', None) - self.sizesrc = sizesrc if sizesrc is not None else _v + self['sizesrc'] = sizesrc if sizesrc is not None else _v _v = arg.pop('symbol', None) - self.symbol = symbol if symbol is not None else _v + self['symbol'] = symbol if symbol is not None else _v _v = arg.pop('symbolsrc', None) - self.symbolsrc = symbolsrc if symbolsrc is not None else _v + self['symbolsrc'] = symbolsrc if symbolsrc is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/scatterpolar/_selected.py b/plotly/graph_objs/scatterpolar/_selected.py index cb7eefd19a6..d5aa1945ce8 100644 --- a/plotly/graph_objs/scatterpolar/_selected.py +++ b/plotly/graph_objs/scatterpolar/_selected.py @@ -129,9 +129,9 @@ def __init__(self, arg=None, marker=None, textfont=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('marker', None) - self.marker = marker if marker is not None else _v + self['marker'] = marker if marker is not None else _v _v = arg.pop('textfont', None) - self.textfont = textfont if textfont is not None else _v + self['textfont'] = textfont if textfont is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/scatterpolar/_stream.py b/plotly/graph_objs/scatterpolar/_stream.py index 775e2d2d27d..3f85b0395af 100644 --- a/plotly/graph_objs/scatterpolar/_stream.py +++ b/plotly/graph_objs/scatterpolar/_stream.py @@ -122,9 +122,9 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('maxpoints', None) - self.maxpoints = maxpoints if maxpoints is not None else _v + self['maxpoints'] = maxpoints if maxpoints is not None else _v _v = arg.pop('token', None) - self.token = token if token is not None else _v + self['token'] = token if token is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/scatterpolar/_textfont.py b/plotly/graph_objs/scatterpolar/_textfont.py index 5e4e90636dc..564e22e1ab9 100644 --- a/plotly/graph_objs/scatterpolar/_textfont.py +++ b/plotly/graph_objs/scatterpolar/_textfont.py @@ -294,17 +294,17 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('colorsrc', None) - self.colorsrc = colorsrc if colorsrc is not None else _v + self['colorsrc'] = colorsrc if colorsrc is not None else _v _v = arg.pop('family', None) - self.family = family if family is not None else _v + self['family'] = family if family is not None else _v _v = arg.pop('familysrc', None) - self.familysrc = familysrc if familysrc is not None else _v + self['familysrc'] = familysrc if familysrc is not None else _v _v = arg.pop('size', None) - self.size = size if size is not None else _v + self['size'] = size if size is not None else _v _v = arg.pop('sizesrc', None) - self.sizesrc = sizesrc if sizesrc is not None else _v + self['sizesrc'] = sizesrc if sizesrc is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/scatterpolar/_unselected.py b/plotly/graph_objs/scatterpolar/_unselected.py index 13a1b10f08d..8d55f59fe98 100644 --- a/plotly/graph_objs/scatterpolar/_unselected.py +++ b/plotly/graph_objs/scatterpolar/_unselected.py @@ -134,9 +134,9 @@ def __init__(self, arg=None, marker=None, textfont=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('marker', None) - self.marker = marker if marker is not None else _v + self['marker'] = marker if marker is not None else _v _v = arg.pop('textfont', None) - self.textfont = textfont if textfont is not None else _v + self['textfont'] = textfont if textfont is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/scatterpolar/hoverlabel/_font.py b/plotly/graph_objs/scatterpolar/hoverlabel/_font.py index aee646e2e36..298dd7d87e3 100644 --- a/plotly/graph_objs/scatterpolar/hoverlabel/_font.py +++ b/plotly/graph_objs/scatterpolar/hoverlabel/_font.py @@ -295,17 +295,17 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('colorsrc', None) - self.colorsrc = colorsrc if colorsrc is not None else _v + self['colorsrc'] = colorsrc if colorsrc is not None else _v _v = arg.pop('family', None) - self.family = family if family is not None else _v + self['family'] = family if family is not None else _v _v = arg.pop('familysrc', None) - self.familysrc = familysrc if familysrc is not None else _v + self['familysrc'] = familysrc if familysrc is not None else _v _v = arg.pop('size', None) - self.size = size if size is not None else _v + self['size'] = size if size is not None else _v _v = arg.pop('sizesrc', None) - self.sizesrc = sizesrc if sizesrc is not None else _v + self['sizesrc'] = sizesrc if sizesrc is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/scatterpolar/marker/_colorbar.py b/plotly/graph_objs/scatterpolar/marker/_colorbar.py index 2be2337591b..ed94621dc5a 100644 --- a/plotly/graph_objs/scatterpolar/marker/_colorbar.py +++ b/plotly/graph_objs/scatterpolar/marker/_colorbar.py @@ -1674,89 +1674,96 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('bgcolor', None) - self.bgcolor = bgcolor if bgcolor is not None else _v + self['bgcolor'] = bgcolor if bgcolor is not None else _v _v = arg.pop('bordercolor', None) - self.bordercolor = bordercolor if bordercolor is not None else _v + self['bordercolor'] = bordercolor if bordercolor is not None else _v _v = arg.pop('borderwidth', None) - self.borderwidth = borderwidth if borderwidth is not None else _v + self['borderwidth'] = borderwidth if borderwidth is not None else _v _v = arg.pop('dtick', None) - self.dtick = dtick if dtick is not None else _v + self['dtick'] = dtick if dtick is not None else _v _v = arg.pop('exponentformat', None) - self.exponentformat = exponentformat if exponentformat is not None else _v + self['exponentformat' + ] = exponentformat if exponentformat is not None else _v _v = arg.pop('len', None) - self.len = len if len is not None else _v + self['len'] = len if len is not None else _v _v = arg.pop('lenmode', None) - self.lenmode = lenmode if lenmode is not None else _v + self['lenmode'] = lenmode if lenmode is not None else _v _v = arg.pop('nticks', None) - self.nticks = nticks if nticks is not None else _v + self['nticks'] = nticks if nticks is not None else _v _v = arg.pop('outlinecolor', None) - self.outlinecolor = outlinecolor if outlinecolor is not None else _v + self['outlinecolor'] = outlinecolor if outlinecolor is not None else _v _v = arg.pop('outlinewidth', None) - self.outlinewidth = outlinewidth if outlinewidth is not None else _v + self['outlinewidth'] = outlinewidth if outlinewidth is not None else _v _v = arg.pop('separatethousands', None) - self.separatethousands = separatethousands if separatethousands is not None else _v + self['separatethousands' + ] = separatethousands if separatethousands is not None else _v _v = arg.pop('showexponent', None) - self.showexponent = showexponent if showexponent is not None else _v + self['showexponent'] = showexponent if showexponent is not None else _v _v = arg.pop('showticklabels', None) - self.showticklabels = showticklabels if showticklabels is not None else _v + self['showticklabels' + ] = showticklabels if showticklabels is not None else _v _v = arg.pop('showtickprefix', None) - self.showtickprefix = showtickprefix if showtickprefix is not None else _v + self['showtickprefix' + ] = showtickprefix if showtickprefix is not None else _v _v = arg.pop('showticksuffix', None) - self.showticksuffix = showticksuffix if showticksuffix is not None else _v + self['showticksuffix' + ] = showticksuffix if showticksuffix is not None else _v _v = arg.pop('thickness', None) - self.thickness = thickness if thickness is not None else _v + self['thickness'] = thickness if thickness is not None else _v _v = arg.pop('thicknessmode', None) - self.thicknessmode = thicknessmode if thicknessmode is not None else _v + self['thicknessmode' + ] = thicknessmode if thicknessmode is not None else _v _v = arg.pop('tick0', None) - self.tick0 = tick0 if tick0 is not None else _v + self['tick0'] = tick0 if tick0 is not None else _v _v = arg.pop('tickangle', None) - self.tickangle = tickangle if tickangle is not None else _v + self['tickangle'] = tickangle if tickangle is not None else _v _v = arg.pop('tickcolor', None) - self.tickcolor = tickcolor if tickcolor is not None else _v + self['tickcolor'] = tickcolor if tickcolor is not None else _v _v = arg.pop('tickfont', None) - self.tickfont = tickfont if tickfont is not None else _v + self['tickfont'] = tickfont if tickfont is not None else _v _v = arg.pop('tickformat', None) - self.tickformat = tickformat if tickformat is not None else _v + self['tickformat'] = tickformat if tickformat is not None else _v _v = arg.pop('tickformatstops', None) - self.tickformatstops = tickformatstops if tickformatstops is not None else _v + self['tickformatstops' + ] = tickformatstops if tickformatstops is not None else _v _v = arg.pop('ticklen', None) - self.ticklen = ticklen if ticklen is not None else _v + self['ticklen'] = ticklen if ticklen is not None else _v _v = arg.pop('tickmode', None) - self.tickmode = tickmode if tickmode is not None else _v + self['tickmode'] = tickmode if tickmode is not None else _v _v = arg.pop('tickprefix', None) - self.tickprefix = tickprefix if tickprefix is not None else _v + self['tickprefix'] = tickprefix if tickprefix is not None else _v _v = arg.pop('ticks', None) - self.ticks = ticks if ticks is not None else _v + self['ticks'] = ticks if ticks is not None else _v _v = arg.pop('ticksuffix', None) - self.ticksuffix = ticksuffix if ticksuffix is not None else _v + self['ticksuffix'] = ticksuffix if ticksuffix is not None else _v _v = arg.pop('ticktext', None) - self.ticktext = ticktext if ticktext is not None else _v + self['ticktext'] = ticktext if ticktext is not None else _v _v = arg.pop('ticktextsrc', None) - self.ticktextsrc = ticktextsrc if ticktextsrc is not None else _v + self['ticktextsrc'] = ticktextsrc if ticktextsrc is not None else _v _v = arg.pop('tickvals', None) - self.tickvals = tickvals if tickvals is not None else _v + self['tickvals'] = tickvals if tickvals is not None else _v _v = arg.pop('tickvalssrc', None) - self.tickvalssrc = tickvalssrc if tickvalssrc is not None else _v + self['tickvalssrc'] = tickvalssrc if tickvalssrc is not None else _v _v = arg.pop('tickwidth', None) - self.tickwidth = tickwidth if tickwidth is not None else _v + self['tickwidth'] = tickwidth if tickwidth is not None else _v _v = arg.pop('title', None) - self.title = title if title is not None else _v + self['title'] = title if title is not None else _v _v = arg.pop('titlefont', None) - self.titlefont = titlefont if titlefont is not None else _v + self['titlefont'] = titlefont if titlefont is not None else _v _v = arg.pop('titleside', None) - self.titleside = titleside if titleside is not None else _v + self['titleside'] = titleside if titleside is not None else _v _v = arg.pop('x', None) - self.x = x if x is not None else _v + self['x'] = x if x is not None else _v _v = arg.pop('xanchor', None) - self.xanchor = xanchor if xanchor is not None else _v + self['xanchor'] = xanchor if xanchor is not None else _v _v = arg.pop('xpad', None) - self.xpad = xpad if xpad is not None else _v + self['xpad'] = xpad if xpad is not None else _v _v = arg.pop('y', None) - self.y = y if y is not None else _v + self['y'] = y if y is not None else _v _v = arg.pop('yanchor', None) - self.yanchor = yanchor if yanchor is not None else _v + self['yanchor'] = yanchor if yanchor is not None else _v _v = arg.pop('ypad', None) - self.ypad = ypad if ypad is not None else _v + self['ypad'] = ypad if ypad is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/scatterpolar/marker/_gradient.py b/plotly/graph_objs/scatterpolar/marker/_gradient.py index ebf32a0a413..47bbe5e6e90 100644 --- a/plotly/graph_objs/scatterpolar/marker/_gradient.py +++ b/plotly/graph_objs/scatterpolar/marker/_gradient.py @@ -217,13 +217,13 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('colorsrc', None) - self.colorsrc = colorsrc if colorsrc is not None else _v + self['colorsrc'] = colorsrc if colorsrc is not None else _v _v = arg.pop('type', None) - self.type = type if type is not None else _v + self['type'] = type if type is not None else _v _v = arg.pop('typesrc', None) - self.typesrc = typesrc if typesrc is not None else _v + self['typesrc'] = typesrc if typesrc is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/scatterpolar/marker/_line.py b/plotly/graph_objs/scatterpolar/marker/_line.py index fdb12f0f0d1..73f747e0698 100644 --- a/plotly/graph_objs/scatterpolar/marker/_line.py +++ b/plotly/graph_objs/scatterpolar/marker/_line.py @@ -496,25 +496,26 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('autocolorscale', None) - self.autocolorscale = autocolorscale if autocolorscale is not None else _v + self['autocolorscale' + ] = autocolorscale if autocolorscale is not None else _v _v = arg.pop('cauto', None) - self.cauto = cauto if cauto is not None else _v + self['cauto'] = cauto if cauto is not None else _v _v = arg.pop('cmax', None) - self.cmax = cmax if cmax is not None else _v + self['cmax'] = cmax if cmax is not None else _v _v = arg.pop('cmin', None) - self.cmin = cmin if cmin is not None else _v + self['cmin'] = cmin if cmin is not None else _v _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('colorscale', None) - self.colorscale = colorscale if colorscale is not None else _v + self['colorscale'] = colorscale if colorscale is not None else _v _v = arg.pop('colorsrc', None) - self.colorsrc = colorsrc if colorsrc is not None else _v + self['colorsrc'] = colorsrc if colorsrc is not None else _v _v = arg.pop('reversescale', None) - self.reversescale = reversescale if reversescale is not None else _v + self['reversescale'] = reversescale if reversescale is not None else _v _v = arg.pop('width', None) - self.width = width if width is not None else _v + self['width'] = width if width is not None else _v _v = arg.pop('widthsrc', None) - self.widthsrc = widthsrc if widthsrc is not None else _v + self['widthsrc'] = widthsrc if widthsrc is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/scatterpolar/marker/colorbar/_tickfont.py b/plotly/graph_objs/scatterpolar/marker/colorbar/_tickfont.py index 9ef197d610b..0d1413106b2 100644 --- a/plotly/graph_objs/scatterpolar/marker/colorbar/_tickfont.py +++ b/plotly/graph_objs/scatterpolar/marker/colorbar/_tickfont.py @@ -209,11 +209,11 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('family', None) - self.family = family if family is not None else _v + self['family'] = family if family is not None else _v _v = arg.pop('size', None) - self.size = size if size is not None else _v + self['size'] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/scatterpolar/marker/colorbar/_tickformatstop.py b/plotly/graph_objs/scatterpolar/marker/colorbar/_tickformatstop.py index 1e94fd522f1..8efdbf7ca9d 100644 --- a/plotly/graph_objs/scatterpolar/marker/colorbar/_tickformatstop.py +++ b/plotly/graph_objs/scatterpolar/marker/colorbar/_tickformatstop.py @@ -260,15 +260,16 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('dtickrange', None) - self.dtickrange = dtickrange if dtickrange is not None else _v + self['dtickrange'] = dtickrange if dtickrange is not None else _v _v = arg.pop('enabled', None) - self.enabled = enabled if enabled is not None else _v + self['enabled'] = enabled if enabled is not None else _v _v = arg.pop('name', None) - self.name = name if name is not None else _v + self['name'] = name if name is not None else _v _v = arg.pop('templateitemname', None) - self.templateitemname = templateitemname if templateitemname is not None else _v + self['templateitemname' + ] = templateitemname if templateitemname is not None else _v _v = arg.pop('value', None) - self.value = value if value is not None else _v + self['value'] = value if value is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/scatterpolar/marker/colorbar/_titlefont.py b/plotly/graph_objs/scatterpolar/marker/colorbar/_titlefont.py index 37115af5787..5ab524a0364 100644 --- a/plotly/graph_objs/scatterpolar/marker/colorbar/_titlefont.py +++ b/plotly/graph_objs/scatterpolar/marker/colorbar/_titlefont.py @@ -209,11 +209,11 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('family', None) - self.family = family if family is not None else _v + self['family'] = family if family is not None else _v _v = arg.pop('size', None) - self.size = size if size is not None else _v + self['size'] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/scatterpolar/selected/_marker.py b/plotly/graph_objs/scatterpolar/selected/_marker.py index e20d41b3674..1994d80b7ee 100644 --- a/plotly/graph_objs/scatterpolar/selected/_marker.py +++ b/plotly/graph_objs/scatterpolar/selected/_marker.py @@ -178,11 +178,11 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('opacity', None) - self.opacity = opacity if opacity is not None else _v + self['opacity'] = opacity if opacity is not None else _v _v = arg.pop('size', None) - self.size = size if size is not None else _v + self['size'] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/scatterpolar/selected/_textfont.py b/plotly/graph_objs/scatterpolar/selected/_textfont.py index 4f06470f175..a2d6d1ee251 100644 --- a/plotly/graph_objs/scatterpolar/selected/_textfont.py +++ b/plotly/graph_objs/scatterpolar/selected/_textfont.py @@ -126,7 +126,7 @@ def __init__(self, arg=None, color=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/scatterpolar/unselected/_marker.py b/plotly/graph_objs/scatterpolar/unselected/_marker.py index f17720191f4..2c9aeb0c4d9 100644 --- a/plotly/graph_objs/scatterpolar/unselected/_marker.py +++ b/plotly/graph_objs/scatterpolar/unselected/_marker.py @@ -187,11 +187,11 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('opacity', None) - self.opacity = opacity if opacity is not None else _v + self['opacity'] = opacity if opacity is not None else _v _v = arg.pop('size', None) - self.size = size if size is not None else _v + self['size'] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/scatterpolar/unselected/_textfont.py b/plotly/graph_objs/scatterpolar/unselected/_textfont.py index 59c0fea1962..b1ca901b0f5 100644 --- a/plotly/graph_objs/scatterpolar/unselected/_textfont.py +++ b/plotly/graph_objs/scatterpolar/unselected/_textfont.py @@ -129,7 +129,7 @@ def __init__(self, arg=None, color=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/scatterpolargl/_hoverlabel.py b/plotly/graph_objs/scatterpolargl/_hoverlabel.py index 2622e29bc65..606c39b0149 100644 --- a/plotly/graph_objs/scatterpolargl/_hoverlabel.py +++ b/plotly/graph_objs/scatterpolargl/_hoverlabel.py @@ -388,19 +388,21 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('bgcolor', None) - self.bgcolor = bgcolor if bgcolor is not None else _v + self['bgcolor'] = bgcolor if bgcolor is not None else _v _v = arg.pop('bgcolorsrc', None) - self.bgcolorsrc = bgcolorsrc if bgcolorsrc is not None else _v + self['bgcolorsrc'] = bgcolorsrc if bgcolorsrc is not None else _v _v = arg.pop('bordercolor', None) - self.bordercolor = bordercolor if bordercolor is not None else _v + self['bordercolor'] = bordercolor if bordercolor is not None else _v _v = arg.pop('bordercolorsrc', None) - self.bordercolorsrc = bordercolorsrc if bordercolorsrc is not None else _v + self['bordercolorsrc' + ] = bordercolorsrc if bordercolorsrc is not None else _v _v = arg.pop('font', None) - self.font = font if font is not None else _v + self['font'] = font if font is not None else _v _v = arg.pop('namelength', None) - self.namelength = namelength if namelength is not None else _v + self['namelength'] = namelength if namelength is not None else _v _v = arg.pop('namelengthsrc', None) - self.namelengthsrc = namelengthsrc if namelengthsrc is not None else _v + self['namelengthsrc' + ] = namelengthsrc if namelengthsrc is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/scatterpolargl/_line.py b/plotly/graph_objs/scatterpolargl/_line.py index d3776dd9cbf..6090770724b 100644 --- a/plotly/graph_objs/scatterpolargl/_line.py +++ b/plotly/graph_objs/scatterpolargl/_line.py @@ -175,11 +175,11 @@ def __init__(self, arg=None, color=None, dash=None, width=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('dash', None) - self.dash = dash if dash is not None else _v + self['dash'] = dash if dash is not None else _v _v = arg.pop('width', None) - self.width = width if width is not None else _v + self['width'] = width if width is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/scatterpolargl/_marker.py b/plotly/graph_objs/scatterpolargl/_marker.py index 257f932ae69..04e2e6a9636 100644 --- a/plotly/graph_objs/scatterpolargl/_marker.py +++ b/plotly/graph_objs/scatterpolargl/_marker.py @@ -1121,45 +1121,46 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('autocolorscale', None) - self.autocolorscale = autocolorscale if autocolorscale is not None else _v + self['autocolorscale' + ] = autocolorscale if autocolorscale is not None else _v _v = arg.pop('cauto', None) - self.cauto = cauto if cauto is not None else _v + self['cauto'] = cauto if cauto is not None else _v _v = arg.pop('cmax', None) - self.cmax = cmax if cmax is not None else _v + self['cmax'] = cmax if cmax is not None else _v _v = arg.pop('cmin', None) - self.cmin = cmin if cmin is not None else _v + self['cmin'] = cmin if cmin is not None else _v _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('colorbar', None) - self.colorbar = colorbar if colorbar is not None else _v + self['colorbar'] = colorbar if colorbar is not None else _v _v = arg.pop('colorscale', None) - self.colorscale = colorscale if colorscale is not None else _v + self['colorscale'] = colorscale if colorscale is not None else _v _v = arg.pop('colorsrc', None) - self.colorsrc = colorsrc if colorsrc is not None else _v + self['colorsrc'] = colorsrc if colorsrc is not None else _v _v = arg.pop('line', None) - self.line = line if line is not None else _v + self['line'] = line if line is not None else _v _v = arg.pop('opacity', None) - self.opacity = opacity if opacity is not None else _v + self['opacity'] = opacity if opacity is not None else _v _v = arg.pop('opacitysrc', None) - self.opacitysrc = opacitysrc if opacitysrc is not None else _v + self['opacitysrc'] = opacitysrc if opacitysrc is not None else _v _v = arg.pop('reversescale', None) - self.reversescale = reversescale if reversescale is not None else _v + self['reversescale'] = reversescale if reversescale is not None else _v _v = arg.pop('showscale', None) - self.showscale = showscale if showscale is not None else _v + self['showscale'] = showscale if showscale is not None else _v _v = arg.pop('size', None) - self.size = size if size is not None else _v + self['size'] = size if size is not None else _v _v = arg.pop('sizemin', None) - self.sizemin = sizemin if sizemin is not None else _v + self['sizemin'] = sizemin if sizemin is not None else _v _v = arg.pop('sizemode', None) - self.sizemode = sizemode if sizemode is not None else _v + self['sizemode'] = sizemode if sizemode is not None else _v _v = arg.pop('sizeref', None) - self.sizeref = sizeref if sizeref is not None else _v + self['sizeref'] = sizeref if sizeref is not None else _v _v = arg.pop('sizesrc', None) - self.sizesrc = sizesrc if sizesrc is not None else _v + self['sizesrc'] = sizesrc if sizesrc is not None else _v _v = arg.pop('symbol', None) - self.symbol = symbol if symbol is not None else _v + self['symbol'] = symbol if symbol is not None else _v _v = arg.pop('symbolsrc', None) - self.symbolsrc = symbolsrc if symbolsrc is not None else _v + self['symbolsrc'] = symbolsrc if symbolsrc is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/scatterpolargl/_selected.py b/plotly/graph_objs/scatterpolargl/_selected.py index 5eaa140d5c2..05619c24b4c 100644 --- a/plotly/graph_objs/scatterpolargl/_selected.py +++ b/plotly/graph_objs/scatterpolargl/_selected.py @@ -130,9 +130,9 @@ def __init__(self, arg=None, marker=None, textfont=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('marker', None) - self.marker = marker if marker is not None else _v + self['marker'] = marker if marker is not None else _v _v = arg.pop('textfont', None) - self.textfont = textfont if textfont is not None else _v + self['textfont'] = textfont if textfont is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/scatterpolargl/_stream.py b/plotly/graph_objs/scatterpolargl/_stream.py index e5941ea03bb..a574e3feb1e 100644 --- a/plotly/graph_objs/scatterpolargl/_stream.py +++ b/plotly/graph_objs/scatterpolargl/_stream.py @@ -122,9 +122,9 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('maxpoints', None) - self.maxpoints = maxpoints if maxpoints is not None else _v + self['maxpoints'] = maxpoints if maxpoints is not None else _v _v = arg.pop('token', None) - self.token = token if token is not None else _v + self['token'] = token if token is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/scatterpolargl/_textfont.py b/plotly/graph_objs/scatterpolargl/_textfont.py index b6063d93bde..81071d07aeb 100644 --- a/plotly/graph_objs/scatterpolargl/_textfont.py +++ b/plotly/graph_objs/scatterpolargl/_textfont.py @@ -295,17 +295,17 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('colorsrc', None) - self.colorsrc = colorsrc if colorsrc is not None else _v + self['colorsrc'] = colorsrc if colorsrc is not None else _v _v = arg.pop('family', None) - self.family = family if family is not None else _v + self['family'] = family if family is not None else _v _v = arg.pop('familysrc', None) - self.familysrc = familysrc if familysrc is not None else _v + self['familysrc'] = familysrc if familysrc is not None else _v _v = arg.pop('size', None) - self.size = size if size is not None else _v + self['size'] = size if size is not None else _v _v = arg.pop('sizesrc', None) - self.sizesrc = sizesrc if sizesrc is not None else _v + self['sizesrc'] = sizesrc if sizesrc is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/scatterpolargl/_unselected.py b/plotly/graph_objs/scatterpolargl/_unselected.py index 2fa013b6f48..ee834f673f0 100644 --- a/plotly/graph_objs/scatterpolargl/_unselected.py +++ b/plotly/graph_objs/scatterpolargl/_unselected.py @@ -136,9 +136,9 @@ def __init__(self, arg=None, marker=None, textfont=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('marker', None) - self.marker = marker if marker is not None else _v + self['marker'] = marker if marker is not None else _v _v = arg.pop('textfont', None) - self.textfont = textfont if textfont is not None else _v + self['textfont'] = textfont if textfont is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/scatterpolargl/hoverlabel/_font.py b/plotly/graph_objs/scatterpolargl/hoverlabel/_font.py index 31e60b994de..ff420ea019f 100644 --- a/plotly/graph_objs/scatterpolargl/hoverlabel/_font.py +++ b/plotly/graph_objs/scatterpolargl/hoverlabel/_font.py @@ -297,17 +297,17 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('colorsrc', None) - self.colorsrc = colorsrc if colorsrc is not None else _v + self['colorsrc'] = colorsrc if colorsrc is not None else _v _v = arg.pop('family', None) - self.family = family if family is not None else _v + self['family'] = family if family is not None else _v _v = arg.pop('familysrc', None) - self.familysrc = familysrc if familysrc is not None else _v + self['familysrc'] = familysrc if familysrc is not None else _v _v = arg.pop('size', None) - self.size = size if size is not None else _v + self['size'] = size if size is not None else _v _v = arg.pop('sizesrc', None) - self.sizesrc = sizesrc if sizesrc is not None else _v + self['sizesrc'] = sizesrc if sizesrc is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/scatterpolargl/marker/_colorbar.py b/plotly/graph_objs/scatterpolargl/marker/_colorbar.py index d1d37051d55..60efa3a472d 100644 --- a/plotly/graph_objs/scatterpolargl/marker/_colorbar.py +++ b/plotly/graph_objs/scatterpolargl/marker/_colorbar.py @@ -1674,89 +1674,96 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('bgcolor', None) - self.bgcolor = bgcolor if bgcolor is not None else _v + self['bgcolor'] = bgcolor if bgcolor is not None else _v _v = arg.pop('bordercolor', None) - self.bordercolor = bordercolor if bordercolor is not None else _v + self['bordercolor'] = bordercolor if bordercolor is not None else _v _v = arg.pop('borderwidth', None) - self.borderwidth = borderwidth if borderwidth is not None else _v + self['borderwidth'] = borderwidth if borderwidth is not None else _v _v = arg.pop('dtick', None) - self.dtick = dtick if dtick is not None else _v + self['dtick'] = dtick if dtick is not None else _v _v = arg.pop('exponentformat', None) - self.exponentformat = exponentformat if exponentformat is not None else _v + self['exponentformat' + ] = exponentformat if exponentformat is not None else _v _v = arg.pop('len', None) - self.len = len if len is not None else _v + self['len'] = len if len is not None else _v _v = arg.pop('lenmode', None) - self.lenmode = lenmode if lenmode is not None else _v + self['lenmode'] = lenmode if lenmode is not None else _v _v = arg.pop('nticks', None) - self.nticks = nticks if nticks is not None else _v + self['nticks'] = nticks if nticks is not None else _v _v = arg.pop('outlinecolor', None) - self.outlinecolor = outlinecolor if outlinecolor is not None else _v + self['outlinecolor'] = outlinecolor if outlinecolor is not None else _v _v = arg.pop('outlinewidth', None) - self.outlinewidth = outlinewidth if outlinewidth is not None else _v + self['outlinewidth'] = outlinewidth if outlinewidth is not None else _v _v = arg.pop('separatethousands', None) - self.separatethousands = separatethousands if separatethousands is not None else _v + self['separatethousands' + ] = separatethousands if separatethousands is not None else _v _v = arg.pop('showexponent', None) - self.showexponent = showexponent if showexponent is not None else _v + self['showexponent'] = showexponent if showexponent is not None else _v _v = arg.pop('showticklabels', None) - self.showticklabels = showticklabels if showticklabels is not None else _v + self['showticklabels' + ] = showticklabels if showticklabels is not None else _v _v = arg.pop('showtickprefix', None) - self.showtickprefix = showtickprefix if showtickprefix is not None else _v + self['showtickprefix' + ] = showtickprefix if showtickprefix is not None else _v _v = arg.pop('showticksuffix', None) - self.showticksuffix = showticksuffix if showticksuffix is not None else _v + self['showticksuffix' + ] = showticksuffix if showticksuffix is not None else _v _v = arg.pop('thickness', None) - self.thickness = thickness if thickness is not None else _v + self['thickness'] = thickness if thickness is not None else _v _v = arg.pop('thicknessmode', None) - self.thicknessmode = thicknessmode if thicknessmode is not None else _v + self['thicknessmode' + ] = thicknessmode if thicknessmode is not None else _v _v = arg.pop('tick0', None) - self.tick0 = tick0 if tick0 is not None else _v + self['tick0'] = tick0 if tick0 is not None else _v _v = arg.pop('tickangle', None) - self.tickangle = tickangle if tickangle is not None else _v + self['tickangle'] = tickangle if tickangle is not None else _v _v = arg.pop('tickcolor', None) - self.tickcolor = tickcolor if tickcolor is not None else _v + self['tickcolor'] = tickcolor if tickcolor is not None else _v _v = arg.pop('tickfont', None) - self.tickfont = tickfont if tickfont is not None else _v + self['tickfont'] = tickfont if tickfont is not None else _v _v = arg.pop('tickformat', None) - self.tickformat = tickformat if tickformat is not None else _v + self['tickformat'] = tickformat if tickformat is not None else _v _v = arg.pop('tickformatstops', None) - self.tickformatstops = tickformatstops if tickformatstops is not None else _v + self['tickformatstops' + ] = tickformatstops if tickformatstops is not None else _v _v = arg.pop('ticklen', None) - self.ticklen = ticklen if ticklen is not None else _v + self['ticklen'] = ticklen if ticklen is not None else _v _v = arg.pop('tickmode', None) - self.tickmode = tickmode if tickmode is not None else _v + self['tickmode'] = tickmode if tickmode is not None else _v _v = arg.pop('tickprefix', None) - self.tickprefix = tickprefix if tickprefix is not None else _v + self['tickprefix'] = tickprefix if tickprefix is not None else _v _v = arg.pop('ticks', None) - self.ticks = ticks if ticks is not None else _v + self['ticks'] = ticks if ticks is not None else _v _v = arg.pop('ticksuffix', None) - self.ticksuffix = ticksuffix if ticksuffix is not None else _v + self['ticksuffix'] = ticksuffix if ticksuffix is not None else _v _v = arg.pop('ticktext', None) - self.ticktext = ticktext if ticktext is not None else _v + self['ticktext'] = ticktext if ticktext is not None else _v _v = arg.pop('ticktextsrc', None) - self.ticktextsrc = ticktextsrc if ticktextsrc is not None else _v + self['ticktextsrc'] = ticktextsrc if ticktextsrc is not None else _v _v = arg.pop('tickvals', None) - self.tickvals = tickvals if tickvals is not None else _v + self['tickvals'] = tickvals if tickvals is not None else _v _v = arg.pop('tickvalssrc', None) - self.tickvalssrc = tickvalssrc if tickvalssrc is not None else _v + self['tickvalssrc'] = tickvalssrc if tickvalssrc is not None else _v _v = arg.pop('tickwidth', None) - self.tickwidth = tickwidth if tickwidth is not None else _v + self['tickwidth'] = tickwidth if tickwidth is not None else _v _v = arg.pop('title', None) - self.title = title if title is not None else _v + self['title'] = title if title is not None else _v _v = arg.pop('titlefont', None) - self.titlefont = titlefont if titlefont is not None else _v + self['titlefont'] = titlefont if titlefont is not None else _v _v = arg.pop('titleside', None) - self.titleside = titleside if titleside is not None else _v + self['titleside'] = titleside if titleside is not None else _v _v = arg.pop('x', None) - self.x = x if x is not None else _v + self['x'] = x if x is not None else _v _v = arg.pop('xanchor', None) - self.xanchor = xanchor if xanchor is not None else _v + self['xanchor'] = xanchor if xanchor is not None else _v _v = arg.pop('xpad', None) - self.xpad = xpad if xpad is not None else _v + self['xpad'] = xpad if xpad is not None else _v _v = arg.pop('y', None) - self.y = y if y is not None else _v + self['y'] = y if y is not None else _v _v = arg.pop('yanchor', None) - self.yanchor = yanchor if yanchor is not None else _v + self['yanchor'] = yanchor if yanchor is not None else _v _v = arg.pop('ypad', None) - self.ypad = ypad if ypad is not None else _v + self['ypad'] = ypad if ypad is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/scatterpolargl/marker/_line.py b/plotly/graph_objs/scatterpolargl/marker/_line.py index 2ddbe27ed18..b1d5951f97a 100644 --- a/plotly/graph_objs/scatterpolargl/marker/_line.py +++ b/plotly/graph_objs/scatterpolargl/marker/_line.py @@ -496,25 +496,26 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('autocolorscale', None) - self.autocolorscale = autocolorscale if autocolorscale is not None else _v + self['autocolorscale' + ] = autocolorscale if autocolorscale is not None else _v _v = arg.pop('cauto', None) - self.cauto = cauto if cauto is not None else _v + self['cauto'] = cauto if cauto is not None else _v _v = arg.pop('cmax', None) - self.cmax = cmax if cmax is not None else _v + self['cmax'] = cmax if cmax is not None else _v _v = arg.pop('cmin', None) - self.cmin = cmin if cmin is not None else _v + self['cmin'] = cmin if cmin is not None else _v _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('colorscale', None) - self.colorscale = colorscale if colorscale is not None else _v + self['colorscale'] = colorscale if colorscale is not None else _v _v = arg.pop('colorsrc', None) - self.colorsrc = colorsrc if colorsrc is not None else _v + self['colorsrc'] = colorsrc if colorsrc is not None else _v _v = arg.pop('reversescale', None) - self.reversescale = reversescale if reversescale is not None else _v + self['reversescale'] = reversescale if reversescale is not None else _v _v = arg.pop('width', None) - self.width = width if width is not None else _v + self['width'] = width if width is not None else _v _v = arg.pop('widthsrc', None) - self.widthsrc = widthsrc if widthsrc is not None else _v + self['widthsrc'] = widthsrc if widthsrc is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/scatterpolargl/marker/colorbar/_tickfont.py b/plotly/graph_objs/scatterpolargl/marker/colorbar/_tickfont.py index 58b49fa8071..c1cf83fc29e 100644 --- a/plotly/graph_objs/scatterpolargl/marker/colorbar/_tickfont.py +++ b/plotly/graph_objs/scatterpolargl/marker/colorbar/_tickfont.py @@ -209,11 +209,11 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('family', None) - self.family = family if family is not None else _v + self['family'] = family if family is not None else _v _v = arg.pop('size', None) - self.size = size if size is not None else _v + self['size'] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/scatterpolargl/marker/colorbar/_tickformatstop.py b/plotly/graph_objs/scatterpolargl/marker/colorbar/_tickformatstop.py index 0908d5d4df0..16ea897e0bc 100644 --- a/plotly/graph_objs/scatterpolargl/marker/colorbar/_tickformatstop.py +++ b/plotly/graph_objs/scatterpolargl/marker/colorbar/_tickformatstop.py @@ -260,15 +260,16 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('dtickrange', None) - self.dtickrange = dtickrange if dtickrange is not None else _v + self['dtickrange'] = dtickrange if dtickrange is not None else _v _v = arg.pop('enabled', None) - self.enabled = enabled if enabled is not None else _v + self['enabled'] = enabled if enabled is not None else _v _v = arg.pop('name', None) - self.name = name if name is not None else _v + self['name'] = name if name is not None else _v _v = arg.pop('templateitemname', None) - self.templateitemname = templateitemname if templateitemname is not None else _v + self['templateitemname' + ] = templateitemname if templateitemname is not None else _v _v = arg.pop('value', None) - self.value = value if value is not None else _v + self['value'] = value if value is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/scatterpolargl/marker/colorbar/_titlefont.py b/plotly/graph_objs/scatterpolargl/marker/colorbar/_titlefont.py index 2def3116dec..b315807d8ca 100644 --- a/plotly/graph_objs/scatterpolargl/marker/colorbar/_titlefont.py +++ b/plotly/graph_objs/scatterpolargl/marker/colorbar/_titlefont.py @@ -209,11 +209,11 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('family', None) - self.family = family if family is not None else _v + self['family'] = family if family is not None else _v _v = arg.pop('size', None) - self.size = size if size is not None else _v + self['size'] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/scatterpolargl/selected/_marker.py b/plotly/graph_objs/scatterpolargl/selected/_marker.py index e43669336a3..e0a101dbdec 100644 --- a/plotly/graph_objs/scatterpolargl/selected/_marker.py +++ b/plotly/graph_objs/scatterpolargl/selected/_marker.py @@ -178,11 +178,11 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('opacity', None) - self.opacity = opacity if opacity is not None else _v + self['opacity'] = opacity if opacity is not None else _v _v = arg.pop('size', None) - self.size = size if size is not None else _v + self['size'] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/scatterpolargl/selected/_textfont.py b/plotly/graph_objs/scatterpolargl/selected/_textfont.py index cea15081e44..84809204c99 100644 --- a/plotly/graph_objs/scatterpolargl/selected/_textfont.py +++ b/plotly/graph_objs/scatterpolargl/selected/_textfont.py @@ -126,7 +126,7 @@ def __init__(self, arg=None, color=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/scatterpolargl/unselected/_marker.py b/plotly/graph_objs/scatterpolargl/unselected/_marker.py index e17fefb4761..e663315f22e 100644 --- a/plotly/graph_objs/scatterpolargl/unselected/_marker.py +++ b/plotly/graph_objs/scatterpolargl/unselected/_marker.py @@ -187,11 +187,11 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('opacity', None) - self.opacity = opacity if opacity is not None else _v + self['opacity'] = opacity if opacity is not None else _v _v = arg.pop('size', None) - self.size = size if size is not None else _v + self['size'] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/scatterpolargl/unselected/_textfont.py b/plotly/graph_objs/scatterpolargl/unselected/_textfont.py index e2d84a61aee..236026c455f 100644 --- a/plotly/graph_objs/scatterpolargl/unselected/_textfont.py +++ b/plotly/graph_objs/scatterpolargl/unselected/_textfont.py @@ -129,7 +129,7 @@ def __init__(self, arg=None, color=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/scatterternary/_hoverlabel.py b/plotly/graph_objs/scatterternary/_hoverlabel.py index 4ae6dd37393..72a256af145 100644 --- a/plotly/graph_objs/scatterternary/_hoverlabel.py +++ b/plotly/graph_objs/scatterternary/_hoverlabel.py @@ -388,19 +388,21 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('bgcolor', None) - self.bgcolor = bgcolor if bgcolor is not None else _v + self['bgcolor'] = bgcolor if bgcolor is not None else _v _v = arg.pop('bgcolorsrc', None) - self.bgcolorsrc = bgcolorsrc if bgcolorsrc is not None else _v + self['bgcolorsrc'] = bgcolorsrc if bgcolorsrc is not None else _v _v = arg.pop('bordercolor', None) - self.bordercolor = bordercolor if bordercolor is not None else _v + self['bordercolor'] = bordercolor if bordercolor is not None else _v _v = arg.pop('bordercolorsrc', None) - self.bordercolorsrc = bordercolorsrc if bordercolorsrc is not None else _v + self['bordercolorsrc' + ] = bordercolorsrc if bordercolorsrc is not None else _v _v = arg.pop('font', None) - self.font = font if font is not None else _v + self['font'] = font if font is not None else _v _v = arg.pop('namelength', None) - self.namelength = namelength if namelength is not None else _v + self['namelength'] = namelength if namelength is not None else _v _v = arg.pop('namelengthsrc', None) - self.namelengthsrc = namelengthsrc if namelengthsrc is not None else _v + self['namelengthsrc' + ] = namelengthsrc if namelengthsrc is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/scatterternary/_line.py b/plotly/graph_objs/scatterternary/_line.py index 17b637861e6..943cf1a7000 100644 --- a/plotly/graph_objs/scatterternary/_line.py +++ b/plotly/graph_objs/scatterternary/_line.py @@ -257,15 +257,15 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('dash', None) - self.dash = dash if dash is not None else _v + self['dash'] = dash if dash is not None else _v _v = arg.pop('shape', None) - self.shape = shape if shape is not None else _v + self['shape'] = shape if shape is not None else _v _v = arg.pop('smoothing', None) - self.smoothing = smoothing if smoothing is not None else _v + self['smoothing'] = smoothing if smoothing is not None else _v _v = arg.pop('width', None) - self.width = width if width is not None else _v + self['width'] = width if width is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/scatterternary/_marker.py b/plotly/graph_objs/scatterternary/_marker.py index b242e751065..65ce1461094 100644 --- a/plotly/graph_objs/scatterternary/_marker.py +++ b/plotly/graph_objs/scatterternary/_marker.py @@ -1195,49 +1195,50 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('autocolorscale', None) - self.autocolorscale = autocolorscale if autocolorscale is not None else _v + self['autocolorscale' + ] = autocolorscale if autocolorscale is not None else _v _v = arg.pop('cauto', None) - self.cauto = cauto if cauto is not None else _v + self['cauto'] = cauto if cauto is not None else _v _v = arg.pop('cmax', None) - self.cmax = cmax if cmax is not None else _v + self['cmax'] = cmax if cmax is not None else _v _v = arg.pop('cmin', None) - self.cmin = cmin if cmin is not None else _v + self['cmin'] = cmin if cmin is not None else _v _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('colorbar', None) - self.colorbar = colorbar if colorbar is not None else _v + self['colorbar'] = colorbar if colorbar is not None else _v _v = arg.pop('colorscale', None) - self.colorscale = colorscale if colorscale is not None else _v + self['colorscale'] = colorscale if colorscale is not None else _v _v = arg.pop('colorsrc', None) - self.colorsrc = colorsrc if colorsrc is not None else _v + self['colorsrc'] = colorsrc if colorsrc is not None else _v _v = arg.pop('gradient', None) - self.gradient = gradient if gradient is not None else _v + self['gradient'] = gradient if gradient is not None else _v _v = arg.pop('line', None) - self.line = line if line is not None else _v + self['line'] = line if line is not None else _v _v = arg.pop('maxdisplayed', None) - self.maxdisplayed = maxdisplayed if maxdisplayed is not None else _v + self['maxdisplayed'] = maxdisplayed if maxdisplayed is not None else _v _v = arg.pop('opacity', None) - self.opacity = opacity if opacity is not None else _v + self['opacity'] = opacity if opacity is not None else _v _v = arg.pop('opacitysrc', None) - self.opacitysrc = opacitysrc if opacitysrc is not None else _v + self['opacitysrc'] = opacitysrc if opacitysrc is not None else _v _v = arg.pop('reversescale', None) - self.reversescale = reversescale if reversescale is not None else _v + self['reversescale'] = reversescale if reversescale is not None else _v _v = arg.pop('showscale', None) - self.showscale = showscale if showscale is not None else _v + self['showscale'] = showscale if showscale is not None else _v _v = arg.pop('size', None) - self.size = size if size is not None else _v + self['size'] = size if size is not None else _v _v = arg.pop('sizemin', None) - self.sizemin = sizemin if sizemin is not None else _v + self['sizemin'] = sizemin if sizemin is not None else _v _v = arg.pop('sizemode', None) - self.sizemode = sizemode if sizemode is not None else _v + self['sizemode'] = sizemode if sizemode is not None else _v _v = arg.pop('sizeref', None) - self.sizeref = sizeref if sizeref is not None else _v + self['sizeref'] = sizeref if sizeref is not None else _v _v = arg.pop('sizesrc', None) - self.sizesrc = sizesrc if sizesrc is not None else _v + self['sizesrc'] = sizesrc if sizesrc is not None else _v _v = arg.pop('symbol', None) - self.symbol = symbol if symbol is not None else _v + self['symbol'] = symbol if symbol is not None else _v _v = arg.pop('symbolsrc', None) - self.symbolsrc = symbolsrc if symbolsrc is not None else _v + self['symbolsrc'] = symbolsrc if symbolsrc is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/scatterternary/_selected.py b/plotly/graph_objs/scatterternary/_selected.py index b24a710e35f..3d8ba6964d2 100644 --- a/plotly/graph_objs/scatterternary/_selected.py +++ b/plotly/graph_objs/scatterternary/_selected.py @@ -130,9 +130,9 @@ def __init__(self, arg=None, marker=None, textfont=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('marker', None) - self.marker = marker if marker is not None else _v + self['marker'] = marker if marker is not None else _v _v = arg.pop('textfont', None) - self.textfont = textfont if textfont is not None else _v + self['textfont'] = textfont if textfont is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/scatterternary/_stream.py b/plotly/graph_objs/scatterternary/_stream.py index dab917aff0f..d748a75390a 100644 --- a/plotly/graph_objs/scatterternary/_stream.py +++ b/plotly/graph_objs/scatterternary/_stream.py @@ -122,9 +122,9 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('maxpoints', None) - self.maxpoints = maxpoints if maxpoints is not None else _v + self['maxpoints'] = maxpoints if maxpoints is not None else _v _v = arg.pop('token', None) - self.token = token if token is not None else _v + self['token'] = token if token is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/scatterternary/_textfont.py b/plotly/graph_objs/scatterternary/_textfont.py index 1c2544c3d82..27186125f70 100644 --- a/plotly/graph_objs/scatterternary/_textfont.py +++ b/plotly/graph_objs/scatterternary/_textfont.py @@ -295,17 +295,17 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('colorsrc', None) - self.colorsrc = colorsrc if colorsrc is not None else _v + self['colorsrc'] = colorsrc if colorsrc is not None else _v _v = arg.pop('family', None) - self.family = family if family is not None else _v + self['family'] = family if family is not None else _v _v = arg.pop('familysrc', None) - self.familysrc = familysrc if familysrc is not None else _v + self['familysrc'] = familysrc if familysrc is not None else _v _v = arg.pop('size', None) - self.size = size if size is not None else _v + self['size'] = size if size is not None else _v _v = arg.pop('sizesrc', None) - self.sizesrc = sizesrc if sizesrc is not None else _v + self['sizesrc'] = sizesrc if sizesrc is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/scatterternary/_unselected.py b/plotly/graph_objs/scatterternary/_unselected.py index 31f750a60c8..02a947ef762 100644 --- a/plotly/graph_objs/scatterternary/_unselected.py +++ b/plotly/graph_objs/scatterternary/_unselected.py @@ -136,9 +136,9 @@ def __init__(self, arg=None, marker=None, textfont=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('marker', None) - self.marker = marker if marker is not None else _v + self['marker'] = marker if marker is not None else _v _v = arg.pop('textfont', None) - self.textfont = textfont if textfont is not None else _v + self['textfont'] = textfont if textfont is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/scatterternary/hoverlabel/_font.py b/plotly/graph_objs/scatterternary/hoverlabel/_font.py index a99014cb695..4e348091557 100644 --- a/plotly/graph_objs/scatterternary/hoverlabel/_font.py +++ b/plotly/graph_objs/scatterternary/hoverlabel/_font.py @@ -297,17 +297,17 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('colorsrc', None) - self.colorsrc = colorsrc if colorsrc is not None else _v + self['colorsrc'] = colorsrc if colorsrc is not None else _v _v = arg.pop('family', None) - self.family = family if family is not None else _v + self['family'] = family if family is not None else _v _v = arg.pop('familysrc', None) - self.familysrc = familysrc if familysrc is not None else _v + self['familysrc'] = familysrc if familysrc is not None else _v _v = arg.pop('size', None) - self.size = size if size is not None else _v + self['size'] = size if size is not None else _v _v = arg.pop('sizesrc', None) - self.sizesrc = sizesrc if sizesrc is not None else _v + self['sizesrc'] = sizesrc if sizesrc is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/scatterternary/marker/_colorbar.py b/plotly/graph_objs/scatterternary/marker/_colorbar.py index 57fc03b4002..8e3748448f8 100644 --- a/plotly/graph_objs/scatterternary/marker/_colorbar.py +++ b/plotly/graph_objs/scatterternary/marker/_colorbar.py @@ -1674,89 +1674,96 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('bgcolor', None) - self.bgcolor = bgcolor if bgcolor is not None else _v + self['bgcolor'] = bgcolor if bgcolor is not None else _v _v = arg.pop('bordercolor', None) - self.bordercolor = bordercolor if bordercolor is not None else _v + self['bordercolor'] = bordercolor if bordercolor is not None else _v _v = arg.pop('borderwidth', None) - self.borderwidth = borderwidth if borderwidth is not None else _v + self['borderwidth'] = borderwidth if borderwidth is not None else _v _v = arg.pop('dtick', None) - self.dtick = dtick if dtick is not None else _v + self['dtick'] = dtick if dtick is not None else _v _v = arg.pop('exponentformat', None) - self.exponentformat = exponentformat if exponentformat is not None else _v + self['exponentformat' + ] = exponentformat if exponentformat is not None else _v _v = arg.pop('len', None) - self.len = len if len is not None else _v + self['len'] = len if len is not None else _v _v = arg.pop('lenmode', None) - self.lenmode = lenmode if lenmode is not None else _v + self['lenmode'] = lenmode if lenmode is not None else _v _v = arg.pop('nticks', None) - self.nticks = nticks if nticks is not None else _v + self['nticks'] = nticks if nticks is not None else _v _v = arg.pop('outlinecolor', None) - self.outlinecolor = outlinecolor if outlinecolor is not None else _v + self['outlinecolor'] = outlinecolor if outlinecolor is not None else _v _v = arg.pop('outlinewidth', None) - self.outlinewidth = outlinewidth if outlinewidth is not None else _v + self['outlinewidth'] = outlinewidth if outlinewidth is not None else _v _v = arg.pop('separatethousands', None) - self.separatethousands = separatethousands if separatethousands is not None else _v + self['separatethousands' + ] = separatethousands if separatethousands is not None else _v _v = arg.pop('showexponent', None) - self.showexponent = showexponent if showexponent is not None else _v + self['showexponent'] = showexponent if showexponent is not None else _v _v = arg.pop('showticklabels', None) - self.showticklabels = showticklabels if showticklabels is not None else _v + self['showticklabels' + ] = showticklabels if showticklabels is not None else _v _v = arg.pop('showtickprefix', None) - self.showtickprefix = showtickprefix if showtickprefix is not None else _v + self['showtickprefix' + ] = showtickprefix if showtickprefix is not None else _v _v = arg.pop('showticksuffix', None) - self.showticksuffix = showticksuffix if showticksuffix is not None else _v + self['showticksuffix' + ] = showticksuffix if showticksuffix is not None else _v _v = arg.pop('thickness', None) - self.thickness = thickness if thickness is not None else _v + self['thickness'] = thickness if thickness is not None else _v _v = arg.pop('thicknessmode', None) - self.thicknessmode = thicknessmode if thicknessmode is not None else _v + self['thicknessmode' + ] = thicknessmode if thicknessmode is not None else _v _v = arg.pop('tick0', None) - self.tick0 = tick0 if tick0 is not None else _v + self['tick0'] = tick0 if tick0 is not None else _v _v = arg.pop('tickangle', None) - self.tickangle = tickangle if tickangle is not None else _v + self['tickangle'] = tickangle if tickangle is not None else _v _v = arg.pop('tickcolor', None) - self.tickcolor = tickcolor if tickcolor is not None else _v + self['tickcolor'] = tickcolor if tickcolor is not None else _v _v = arg.pop('tickfont', None) - self.tickfont = tickfont if tickfont is not None else _v + self['tickfont'] = tickfont if tickfont is not None else _v _v = arg.pop('tickformat', None) - self.tickformat = tickformat if tickformat is not None else _v + self['tickformat'] = tickformat if tickformat is not None else _v _v = arg.pop('tickformatstops', None) - self.tickformatstops = tickformatstops if tickformatstops is not None else _v + self['tickformatstops' + ] = tickformatstops if tickformatstops is not None else _v _v = arg.pop('ticklen', None) - self.ticklen = ticklen if ticklen is not None else _v + self['ticklen'] = ticklen if ticklen is not None else _v _v = arg.pop('tickmode', None) - self.tickmode = tickmode if tickmode is not None else _v + self['tickmode'] = tickmode if tickmode is not None else _v _v = arg.pop('tickprefix', None) - self.tickprefix = tickprefix if tickprefix is not None else _v + self['tickprefix'] = tickprefix if tickprefix is not None else _v _v = arg.pop('ticks', None) - self.ticks = ticks if ticks is not None else _v + self['ticks'] = ticks if ticks is not None else _v _v = arg.pop('ticksuffix', None) - self.ticksuffix = ticksuffix if ticksuffix is not None else _v + self['ticksuffix'] = ticksuffix if ticksuffix is not None else _v _v = arg.pop('ticktext', None) - self.ticktext = ticktext if ticktext is not None else _v + self['ticktext'] = ticktext if ticktext is not None else _v _v = arg.pop('ticktextsrc', None) - self.ticktextsrc = ticktextsrc if ticktextsrc is not None else _v + self['ticktextsrc'] = ticktextsrc if ticktextsrc is not None else _v _v = arg.pop('tickvals', None) - self.tickvals = tickvals if tickvals is not None else _v + self['tickvals'] = tickvals if tickvals is not None else _v _v = arg.pop('tickvalssrc', None) - self.tickvalssrc = tickvalssrc if tickvalssrc is not None else _v + self['tickvalssrc'] = tickvalssrc if tickvalssrc is not None else _v _v = arg.pop('tickwidth', None) - self.tickwidth = tickwidth if tickwidth is not None else _v + self['tickwidth'] = tickwidth if tickwidth is not None else _v _v = arg.pop('title', None) - self.title = title if title is not None else _v + self['title'] = title if title is not None else _v _v = arg.pop('titlefont', None) - self.titlefont = titlefont if titlefont is not None else _v + self['titlefont'] = titlefont if titlefont is not None else _v _v = arg.pop('titleside', None) - self.titleside = titleside if titleside is not None else _v + self['titleside'] = titleside if titleside is not None else _v _v = arg.pop('x', None) - self.x = x if x is not None else _v + self['x'] = x if x is not None else _v _v = arg.pop('xanchor', None) - self.xanchor = xanchor if xanchor is not None else _v + self['xanchor'] = xanchor if xanchor is not None else _v _v = arg.pop('xpad', None) - self.xpad = xpad if xpad is not None else _v + self['xpad'] = xpad if xpad is not None else _v _v = arg.pop('y', None) - self.y = y if y is not None else _v + self['y'] = y if y is not None else _v _v = arg.pop('yanchor', None) - self.yanchor = yanchor if yanchor is not None else _v + self['yanchor'] = yanchor if yanchor is not None else _v _v = arg.pop('ypad', None) - self.ypad = ypad if ypad is not None else _v + self['ypad'] = ypad if ypad is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/scatterternary/marker/_gradient.py b/plotly/graph_objs/scatterternary/marker/_gradient.py index 418336a18ed..df5efa80037 100644 --- a/plotly/graph_objs/scatterternary/marker/_gradient.py +++ b/plotly/graph_objs/scatterternary/marker/_gradient.py @@ -217,13 +217,13 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('colorsrc', None) - self.colorsrc = colorsrc if colorsrc is not None else _v + self['colorsrc'] = colorsrc if colorsrc is not None else _v _v = arg.pop('type', None) - self.type = type if type is not None else _v + self['type'] = type if type is not None else _v _v = arg.pop('typesrc', None) - self.typesrc = typesrc if typesrc is not None else _v + self['typesrc'] = typesrc if typesrc is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/scatterternary/marker/_line.py b/plotly/graph_objs/scatterternary/marker/_line.py index abfc8c47c9d..27a3a7726a3 100644 --- a/plotly/graph_objs/scatterternary/marker/_line.py +++ b/plotly/graph_objs/scatterternary/marker/_line.py @@ -496,25 +496,26 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('autocolorscale', None) - self.autocolorscale = autocolorscale if autocolorscale is not None else _v + self['autocolorscale' + ] = autocolorscale if autocolorscale is not None else _v _v = arg.pop('cauto', None) - self.cauto = cauto if cauto is not None else _v + self['cauto'] = cauto if cauto is not None else _v _v = arg.pop('cmax', None) - self.cmax = cmax if cmax is not None else _v + self['cmax'] = cmax if cmax is not None else _v _v = arg.pop('cmin', None) - self.cmin = cmin if cmin is not None else _v + self['cmin'] = cmin if cmin is not None else _v _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('colorscale', None) - self.colorscale = colorscale if colorscale is not None else _v + self['colorscale'] = colorscale if colorscale is not None else _v _v = arg.pop('colorsrc', None) - self.colorsrc = colorsrc if colorsrc is not None else _v + self['colorsrc'] = colorsrc if colorsrc is not None else _v _v = arg.pop('reversescale', None) - self.reversescale = reversescale if reversescale is not None else _v + self['reversescale'] = reversescale if reversescale is not None else _v _v = arg.pop('width', None) - self.width = width if width is not None else _v + self['width'] = width if width is not None else _v _v = arg.pop('widthsrc', None) - self.widthsrc = widthsrc if widthsrc is not None else _v + self['widthsrc'] = widthsrc if widthsrc is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/scatterternary/marker/colorbar/_tickfont.py b/plotly/graph_objs/scatterternary/marker/colorbar/_tickfont.py index 6096e1577ce..e045cc73080 100644 --- a/plotly/graph_objs/scatterternary/marker/colorbar/_tickfont.py +++ b/plotly/graph_objs/scatterternary/marker/colorbar/_tickfont.py @@ -209,11 +209,11 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('family', None) - self.family = family if family is not None else _v + self['family'] = family if family is not None else _v _v = arg.pop('size', None) - self.size = size if size is not None else _v + self['size'] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/scatterternary/marker/colorbar/_tickformatstop.py b/plotly/graph_objs/scatterternary/marker/colorbar/_tickformatstop.py index 05ada89dcc5..7573d90c4a3 100644 --- a/plotly/graph_objs/scatterternary/marker/colorbar/_tickformatstop.py +++ b/plotly/graph_objs/scatterternary/marker/colorbar/_tickformatstop.py @@ -260,15 +260,16 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('dtickrange', None) - self.dtickrange = dtickrange if dtickrange is not None else _v + self['dtickrange'] = dtickrange if dtickrange is not None else _v _v = arg.pop('enabled', None) - self.enabled = enabled if enabled is not None else _v + self['enabled'] = enabled if enabled is not None else _v _v = arg.pop('name', None) - self.name = name if name is not None else _v + self['name'] = name if name is not None else _v _v = arg.pop('templateitemname', None) - self.templateitemname = templateitemname if templateitemname is not None else _v + self['templateitemname' + ] = templateitemname if templateitemname is not None else _v _v = arg.pop('value', None) - self.value = value if value is not None else _v + self['value'] = value if value is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/scatterternary/marker/colorbar/_titlefont.py b/plotly/graph_objs/scatterternary/marker/colorbar/_titlefont.py index 187b9ce87ae..f61aee86759 100644 --- a/plotly/graph_objs/scatterternary/marker/colorbar/_titlefont.py +++ b/plotly/graph_objs/scatterternary/marker/colorbar/_titlefont.py @@ -209,11 +209,11 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('family', None) - self.family = family if family is not None else _v + self['family'] = family if family is not None else _v _v = arg.pop('size', None) - self.size = size if size is not None else _v + self['size'] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/scatterternary/selected/_marker.py b/plotly/graph_objs/scatterternary/selected/_marker.py index aef567bc6b7..de3af69bc36 100644 --- a/plotly/graph_objs/scatterternary/selected/_marker.py +++ b/plotly/graph_objs/scatterternary/selected/_marker.py @@ -178,11 +178,11 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('opacity', None) - self.opacity = opacity if opacity is not None else _v + self['opacity'] = opacity if opacity is not None else _v _v = arg.pop('size', None) - self.size = size if size is not None else _v + self['size'] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/scatterternary/selected/_textfont.py b/plotly/graph_objs/scatterternary/selected/_textfont.py index f3d1eb16158..3a7296ddf68 100644 --- a/plotly/graph_objs/scatterternary/selected/_textfont.py +++ b/plotly/graph_objs/scatterternary/selected/_textfont.py @@ -126,7 +126,7 @@ def __init__(self, arg=None, color=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/scatterternary/unselected/_marker.py b/plotly/graph_objs/scatterternary/unselected/_marker.py index 4891eea59af..f354002a35c 100644 --- a/plotly/graph_objs/scatterternary/unselected/_marker.py +++ b/plotly/graph_objs/scatterternary/unselected/_marker.py @@ -187,11 +187,11 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('opacity', None) - self.opacity = opacity if opacity is not None else _v + self['opacity'] = opacity if opacity is not None else _v _v = arg.pop('size', None) - self.size = size if size is not None else _v + self['size'] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/scatterternary/unselected/_textfont.py b/plotly/graph_objs/scatterternary/unselected/_textfont.py index 7db78a5cfde..782dad65b9f 100644 --- a/plotly/graph_objs/scatterternary/unselected/_textfont.py +++ b/plotly/graph_objs/scatterternary/unselected/_textfont.py @@ -129,7 +129,7 @@ def __init__(self, arg=None, color=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/splom/_diagonal.py b/plotly/graph_objs/splom/_diagonal.py index e8b6c276a58..6107d453150 100644 --- a/plotly/graph_objs/splom/_diagonal.py +++ b/plotly/graph_objs/splom/_diagonal.py @@ -87,7 +87,7 @@ def __init__(self, arg=None, visible=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('visible', None) - self.visible = visible if visible is not None else _v + self['visible'] = visible if visible is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/splom/_dimension.py b/plotly/graph_objs/splom/_dimension.py index b6871730b6a..7350d98486c 100644 --- a/plotly/graph_objs/splom/_dimension.py +++ b/plotly/graph_objs/splom/_dimension.py @@ -311,19 +311,20 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('axis', None) - self.axis = axis if axis is not None else _v + self['axis'] = axis if axis is not None else _v _v = arg.pop('label', None) - self.label = label if label is not None else _v + self['label'] = label if label is not None else _v _v = arg.pop('name', None) - self.name = name if name is not None else _v + self['name'] = name if name is not None else _v _v = arg.pop('templateitemname', None) - self.templateitemname = templateitemname if templateitemname is not None else _v + self['templateitemname' + ] = templateitemname if templateitemname is not None else _v _v = arg.pop('values', None) - self.values = values if values is not None else _v + self['values'] = values if values is not None else _v _v = arg.pop('valuessrc', None) - self.valuessrc = valuessrc if valuessrc is not None else _v + self['valuessrc'] = valuessrc if valuessrc is not None else _v _v = arg.pop('visible', None) - self.visible = visible if visible is not None else _v + self['visible'] = visible if visible is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/splom/_hoverlabel.py b/plotly/graph_objs/splom/_hoverlabel.py index 1cf30baadde..b704af699d5 100644 --- a/plotly/graph_objs/splom/_hoverlabel.py +++ b/plotly/graph_objs/splom/_hoverlabel.py @@ -385,19 +385,21 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('bgcolor', None) - self.bgcolor = bgcolor if bgcolor is not None else _v + self['bgcolor'] = bgcolor if bgcolor is not None else _v _v = arg.pop('bgcolorsrc', None) - self.bgcolorsrc = bgcolorsrc if bgcolorsrc is not None else _v + self['bgcolorsrc'] = bgcolorsrc if bgcolorsrc is not None else _v _v = arg.pop('bordercolor', None) - self.bordercolor = bordercolor if bordercolor is not None else _v + self['bordercolor'] = bordercolor if bordercolor is not None else _v _v = arg.pop('bordercolorsrc', None) - self.bordercolorsrc = bordercolorsrc if bordercolorsrc is not None else _v + self['bordercolorsrc' + ] = bordercolorsrc if bordercolorsrc is not None else _v _v = arg.pop('font', None) - self.font = font if font is not None else _v + self['font'] = font if font is not None else _v _v = arg.pop('namelength', None) - self.namelength = namelength if namelength is not None else _v + self['namelength'] = namelength if namelength is not None else _v _v = arg.pop('namelengthsrc', None) - self.namelengthsrc = namelengthsrc if namelengthsrc is not None else _v + self['namelengthsrc' + ] = namelengthsrc if namelengthsrc is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/splom/_marker.py b/plotly/graph_objs/splom/_marker.py index 92cc0ac4a99..ebc6b8969e3 100644 --- a/plotly/graph_objs/splom/_marker.py +++ b/plotly/graph_objs/splom/_marker.py @@ -1121,45 +1121,46 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('autocolorscale', None) - self.autocolorscale = autocolorscale if autocolorscale is not None else _v + self['autocolorscale' + ] = autocolorscale if autocolorscale is not None else _v _v = arg.pop('cauto', None) - self.cauto = cauto if cauto is not None else _v + self['cauto'] = cauto if cauto is not None else _v _v = arg.pop('cmax', None) - self.cmax = cmax if cmax is not None else _v + self['cmax'] = cmax if cmax is not None else _v _v = arg.pop('cmin', None) - self.cmin = cmin if cmin is not None else _v + self['cmin'] = cmin if cmin is not None else _v _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('colorbar', None) - self.colorbar = colorbar if colorbar is not None else _v + self['colorbar'] = colorbar if colorbar is not None else _v _v = arg.pop('colorscale', None) - self.colorscale = colorscale if colorscale is not None else _v + self['colorscale'] = colorscale if colorscale is not None else _v _v = arg.pop('colorsrc', None) - self.colorsrc = colorsrc if colorsrc is not None else _v + self['colorsrc'] = colorsrc if colorsrc is not None else _v _v = arg.pop('line', None) - self.line = line if line is not None else _v + self['line'] = line if line is not None else _v _v = arg.pop('opacity', None) - self.opacity = opacity if opacity is not None else _v + self['opacity'] = opacity if opacity is not None else _v _v = arg.pop('opacitysrc', None) - self.opacitysrc = opacitysrc if opacitysrc is not None else _v + self['opacitysrc'] = opacitysrc if opacitysrc is not None else _v _v = arg.pop('reversescale', None) - self.reversescale = reversescale if reversescale is not None else _v + self['reversescale'] = reversescale if reversescale is not None else _v _v = arg.pop('showscale', None) - self.showscale = showscale if showscale is not None else _v + self['showscale'] = showscale if showscale is not None else _v _v = arg.pop('size', None) - self.size = size if size is not None else _v + self['size'] = size if size is not None else _v _v = arg.pop('sizemin', None) - self.sizemin = sizemin if sizemin is not None else _v + self['sizemin'] = sizemin if sizemin is not None else _v _v = arg.pop('sizemode', None) - self.sizemode = sizemode if sizemode is not None else _v + self['sizemode'] = sizemode if sizemode is not None else _v _v = arg.pop('sizeref', None) - self.sizeref = sizeref if sizeref is not None else _v + self['sizeref'] = sizeref if sizeref is not None else _v _v = arg.pop('sizesrc', None) - self.sizesrc = sizesrc if sizesrc is not None else _v + self['sizesrc'] = sizesrc if sizesrc is not None else _v _v = arg.pop('symbol', None) - self.symbol = symbol if symbol is not None else _v + self['symbol'] = symbol if symbol is not None else _v _v = arg.pop('symbolsrc', None) - self.symbolsrc = symbolsrc if symbolsrc is not None else _v + self['symbolsrc'] = symbolsrc if symbolsrc is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/splom/_selected.py b/plotly/graph_objs/splom/_selected.py index a1e7f502145..18182715981 100644 --- a/plotly/graph_objs/splom/_selected.py +++ b/plotly/graph_objs/splom/_selected.py @@ -96,7 +96,7 @@ def __init__(self, arg=None, marker=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('marker', None) - self.marker = marker if marker is not None else _v + self['marker'] = marker if marker is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/splom/_stream.py b/plotly/graph_objs/splom/_stream.py index 48b906764aa..75b0b532749 100644 --- a/plotly/graph_objs/splom/_stream.py +++ b/plotly/graph_objs/splom/_stream.py @@ -122,9 +122,9 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('maxpoints', None) - self.maxpoints = maxpoints if maxpoints is not None else _v + self['maxpoints'] = maxpoints if maxpoints is not None else _v _v = arg.pop('token', None) - self.token = token if token is not None else _v + self['token'] = token if token is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/splom/_unselected.py b/plotly/graph_objs/splom/_unselected.py index f51e29a3d1a..8e085ce4677 100644 --- a/plotly/graph_objs/splom/_unselected.py +++ b/plotly/graph_objs/splom/_unselected.py @@ -99,7 +99,7 @@ def __init__(self, arg=None, marker=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('marker', None) - self.marker = marker if marker is not None else _v + self['marker'] = marker if marker is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/splom/dimension/_axis.py b/plotly/graph_objs/splom/dimension/_axis.py index 623d31b2d22..eae3bfc3e03 100644 --- a/plotly/graph_objs/splom/dimension/_axis.py +++ b/plotly/graph_objs/splom/dimension/_axis.py @@ -91,7 +91,7 @@ def __init__(self, arg=None, type=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('type', None) - self.type = type if type is not None else _v + self['type'] = type if type is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/splom/hoverlabel/_font.py b/plotly/graph_objs/splom/hoverlabel/_font.py index 7b205ac3e1d..031c97e1009 100644 --- a/plotly/graph_objs/splom/hoverlabel/_font.py +++ b/plotly/graph_objs/splom/hoverlabel/_font.py @@ -294,17 +294,17 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('colorsrc', None) - self.colorsrc = colorsrc if colorsrc is not None else _v + self['colorsrc'] = colorsrc if colorsrc is not None else _v _v = arg.pop('family', None) - self.family = family if family is not None else _v + self['family'] = family if family is not None else _v _v = arg.pop('familysrc', None) - self.familysrc = familysrc if familysrc is not None else _v + self['familysrc'] = familysrc if familysrc is not None else _v _v = arg.pop('size', None) - self.size = size if size is not None else _v + self['size'] = size if size is not None else _v _v = arg.pop('sizesrc', None) - self.sizesrc = sizesrc if sizesrc is not None else _v + self['sizesrc'] = sizesrc if sizesrc is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/splom/marker/_colorbar.py b/plotly/graph_objs/splom/marker/_colorbar.py index e22733e7634..110148f4176 100644 --- a/plotly/graph_objs/splom/marker/_colorbar.py +++ b/plotly/graph_objs/splom/marker/_colorbar.py @@ -1671,89 +1671,96 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('bgcolor', None) - self.bgcolor = bgcolor if bgcolor is not None else _v + self['bgcolor'] = bgcolor if bgcolor is not None else _v _v = arg.pop('bordercolor', None) - self.bordercolor = bordercolor if bordercolor is not None else _v + self['bordercolor'] = bordercolor if bordercolor is not None else _v _v = arg.pop('borderwidth', None) - self.borderwidth = borderwidth if borderwidth is not None else _v + self['borderwidth'] = borderwidth if borderwidth is not None else _v _v = arg.pop('dtick', None) - self.dtick = dtick if dtick is not None else _v + self['dtick'] = dtick if dtick is not None else _v _v = arg.pop('exponentformat', None) - self.exponentformat = exponentformat if exponentformat is not None else _v + self['exponentformat' + ] = exponentformat if exponentformat is not None else _v _v = arg.pop('len', None) - self.len = len if len is not None else _v + self['len'] = len if len is not None else _v _v = arg.pop('lenmode', None) - self.lenmode = lenmode if lenmode is not None else _v + self['lenmode'] = lenmode if lenmode is not None else _v _v = arg.pop('nticks', None) - self.nticks = nticks if nticks is not None else _v + self['nticks'] = nticks if nticks is not None else _v _v = arg.pop('outlinecolor', None) - self.outlinecolor = outlinecolor if outlinecolor is not None else _v + self['outlinecolor'] = outlinecolor if outlinecolor is not None else _v _v = arg.pop('outlinewidth', None) - self.outlinewidth = outlinewidth if outlinewidth is not None else _v + self['outlinewidth'] = outlinewidth if outlinewidth is not None else _v _v = arg.pop('separatethousands', None) - self.separatethousands = separatethousands if separatethousands is not None else _v + self['separatethousands' + ] = separatethousands if separatethousands is not None else _v _v = arg.pop('showexponent', None) - self.showexponent = showexponent if showexponent is not None else _v + self['showexponent'] = showexponent if showexponent is not None else _v _v = arg.pop('showticklabels', None) - self.showticklabels = showticklabels if showticklabels is not None else _v + self['showticklabels' + ] = showticklabels if showticklabels is not None else _v _v = arg.pop('showtickprefix', None) - self.showtickprefix = showtickprefix if showtickprefix is not None else _v + self['showtickprefix' + ] = showtickprefix if showtickprefix is not None else _v _v = arg.pop('showticksuffix', None) - self.showticksuffix = showticksuffix if showticksuffix is not None else _v + self['showticksuffix' + ] = showticksuffix if showticksuffix is not None else _v _v = arg.pop('thickness', None) - self.thickness = thickness if thickness is not None else _v + self['thickness'] = thickness if thickness is not None else _v _v = arg.pop('thicknessmode', None) - self.thicknessmode = thicknessmode if thicknessmode is not None else _v + self['thicknessmode' + ] = thicknessmode if thicknessmode is not None else _v _v = arg.pop('tick0', None) - self.tick0 = tick0 if tick0 is not None else _v + self['tick0'] = tick0 if tick0 is not None else _v _v = arg.pop('tickangle', None) - self.tickangle = tickangle if tickangle is not None else _v + self['tickangle'] = tickangle if tickangle is not None else _v _v = arg.pop('tickcolor', None) - self.tickcolor = tickcolor if tickcolor is not None else _v + self['tickcolor'] = tickcolor if tickcolor is not None else _v _v = arg.pop('tickfont', None) - self.tickfont = tickfont if tickfont is not None else _v + self['tickfont'] = tickfont if tickfont is not None else _v _v = arg.pop('tickformat', None) - self.tickformat = tickformat if tickformat is not None else _v + self['tickformat'] = tickformat if tickformat is not None else _v _v = arg.pop('tickformatstops', None) - self.tickformatstops = tickformatstops if tickformatstops is not None else _v + self['tickformatstops' + ] = tickformatstops if tickformatstops is not None else _v _v = arg.pop('ticklen', None) - self.ticklen = ticklen if ticklen is not None else _v + self['ticklen'] = ticklen if ticklen is not None else _v _v = arg.pop('tickmode', None) - self.tickmode = tickmode if tickmode is not None else _v + self['tickmode'] = tickmode if tickmode is not None else _v _v = arg.pop('tickprefix', None) - self.tickprefix = tickprefix if tickprefix is not None else _v + self['tickprefix'] = tickprefix if tickprefix is not None else _v _v = arg.pop('ticks', None) - self.ticks = ticks if ticks is not None else _v + self['ticks'] = ticks if ticks is not None else _v _v = arg.pop('ticksuffix', None) - self.ticksuffix = ticksuffix if ticksuffix is not None else _v + self['ticksuffix'] = ticksuffix if ticksuffix is not None else _v _v = arg.pop('ticktext', None) - self.ticktext = ticktext if ticktext is not None else _v + self['ticktext'] = ticktext if ticktext is not None else _v _v = arg.pop('ticktextsrc', None) - self.ticktextsrc = ticktextsrc if ticktextsrc is not None else _v + self['ticktextsrc'] = ticktextsrc if ticktextsrc is not None else _v _v = arg.pop('tickvals', None) - self.tickvals = tickvals if tickvals is not None else _v + self['tickvals'] = tickvals if tickvals is not None else _v _v = arg.pop('tickvalssrc', None) - self.tickvalssrc = tickvalssrc if tickvalssrc is not None else _v + self['tickvalssrc'] = tickvalssrc if tickvalssrc is not None else _v _v = arg.pop('tickwidth', None) - self.tickwidth = tickwidth if tickwidth is not None else _v + self['tickwidth'] = tickwidth if tickwidth is not None else _v _v = arg.pop('title', None) - self.title = title if title is not None else _v + self['title'] = title if title is not None else _v _v = arg.pop('titlefont', None) - self.titlefont = titlefont if titlefont is not None else _v + self['titlefont'] = titlefont if titlefont is not None else _v _v = arg.pop('titleside', None) - self.titleside = titleside if titleside is not None else _v + self['titleside'] = titleside if titleside is not None else _v _v = arg.pop('x', None) - self.x = x if x is not None else _v + self['x'] = x if x is not None else _v _v = arg.pop('xanchor', None) - self.xanchor = xanchor if xanchor is not None else _v + self['xanchor'] = xanchor if xanchor is not None else _v _v = arg.pop('xpad', None) - self.xpad = xpad if xpad is not None else _v + self['xpad'] = xpad if xpad is not None else _v _v = arg.pop('y', None) - self.y = y if y is not None else _v + self['y'] = y if y is not None else _v _v = arg.pop('yanchor', None) - self.yanchor = yanchor if yanchor is not None else _v + self['yanchor'] = yanchor if yanchor is not None else _v _v = arg.pop('ypad', None) - self.ypad = ypad if ypad is not None else _v + self['ypad'] = ypad if ypad is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/splom/marker/_line.py b/plotly/graph_objs/splom/marker/_line.py index 6698384bbdb..7b87b51fdc1 100644 --- a/plotly/graph_objs/splom/marker/_line.py +++ b/plotly/graph_objs/splom/marker/_line.py @@ -495,25 +495,26 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('autocolorscale', None) - self.autocolorscale = autocolorscale if autocolorscale is not None else _v + self['autocolorscale' + ] = autocolorscale if autocolorscale is not None else _v _v = arg.pop('cauto', None) - self.cauto = cauto if cauto is not None else _v + self['cauto'] = cauto if cauto is not None else _v _v = arg.pop('cmax', None) - self.cmax = cmax if cmax is not None else _v + self['cmax'] = cmax if cmax is not None else _v _v = arg.pop('cmin', None) - self.cmin = cmin if cmin is not None else _v + self['cmin'] = cmin if cmin is not None else _v _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('colorscale', None) - self.colorscale = colorscale if colorscale is not None else _v + self['colorscale'] = colorscale if colorscale is not None else _v _v = arg.pop('colorsrc', None) - self.colorsrc = colorsrc if colorsrc is not None else _v + self['colorsrc'] = colorsrc if colorsrc is not None else _v _v = arg.pop('reversescale', None) - self.reversescale = reversescale if reversescale is not None else _v + self['reversescale'] = reversescale if reversescale is not None else _v _v = arg.pop('width', None) - self.width = width if width is not None else _v + self['width'] = width if width is not None else _v _v = arg.pop('widthsrc', None) - self.widthsrc = widthsrc if widthsrc is not None else _v + self['widthsrc'] = widthsrc if widthsrc is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/splom/marker/colorbar/_tickfont.py b/plotly/graph_objs/splom/marker/colorbar/_tickfont.py index 09cf25894df..fee4d373e47 100644 --- a/plotly/graph_objs/splom/marker/colorbar/_tickfont.py +++ b/plotly/graph_objs/splom/marker/colorbar/_tickfont.py @@ -209,11 +209,11 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('family', None) - self.family = family if family is not None else _v + self['family'] = family if family is not None else _v _v = arg.pop('size', None) - self.size = size if size is not None else _v + self['size'] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/splom/marker/colorbar/_tickformatstop.py b/plotly/graph_objs/splom/marker/colorbar/_tickformatstop.py index f06acc154da..832115453c8 100644 --- a/plotly/graph_objs/splom/marker/colorbar/_tickformatstop.py +++ b/plotly/graph_objs/splom/marker/colorbar/_tickformatstop.py @@ -260,15 +260,16 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('dtickrange', None) - self.dtickrange = dtickrange if dtickrange is not None else _v + self['dtickrange'] = dtickrange if dtickrange is not None else _v _v = arg.pop('enabled', None) - self.enabled = enabled if enabled is not None else _v + self['enabled'] = enabled if enabled is not None else _v _v = arg.pop('name', None) - self.name = name if name is not None else _v + self['name'] = name if name is not None else _v _v = arg.pop('templateitemname', None) - self.templateitemname = templateitemname if templateitemname is not None else _v + self['templateitemname' + ] = templateitemname if templateitemname is not None else _v _v = arg.pop('value', None) - self.value = value if value is not None else _v + self['value'] = value if value is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/splom/marker/colorbar/_titlefont.py b/plotly/graph_objs/splom/marker/colorbar/_titlefont.py index 15ea0ad0c50..848788a3ad7 100644 --- a/plotly/graph_objs/splom/marker/colorbar/_titlefont.py +++ b/plotly/graph_objs/splom/marker/colorbar/_titlefont.py @@ -209,11 +209,11 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('family', None) - self.family = family if family is not None else _v + self['family'] = family if family is not None else _v _v = arg.pop('size', None) - self.size = size if size is not None else _v + self['size'] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/splom/selected/_marker.py b/plotly/graph_objs/splom/selected/_marker.py index 7d01ae845a5..11bc84012c3 100644 --- a/plotly/graph_objs/splom/selected/_marker.py +++ b/plotly/graph_objs/splom/selected/_marker.py @@ -175,11 +175,11 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('opacity', None) - self.opacity = opacity if opacity is not None else _v + self['opacity'] = opacity if opacity is not None else _v _v = arg.pop('size', None) - self.size = size if size is not None else _v + self['size'] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/splom/unselected/_marker.py b/plotly/graph_objs/splom/unselected/_marker.py index a51f65281f2..3e6406a3baa 100644 --- a/plotly/graph_objs/splom/unselected/_marker.py +++ b/plotly/graph_objs/splom/unselected/_marker.py @@ -185,11 +185,11 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('opacity', None) - self.opacity = opacity if opacity is not None else _v + self['opacity'] = opacity if opacity is not None else _v _v = arg.pop('size', None) - self.size = size if size is not None else _v + self['size'] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/streamtube/_colorbar.py b/plotly/graph_objs/streamtube/_colorbar.py index 23ea5874108..e7cb8473739 100644 --- a/plotly/graph_objs/streamtube/_colorbar.py +++ b/plotly/graph_objs/streamtube/_colorbar.py @@ -1671,89 +1671,96 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('bgcolor', None) - self.bgcolor = bgcolor if bgcolor is not None else _v + self['bgcolor'] = bgcolor if bgcolor is not None else _v _v = arg.pop('bordercolor', None) - self.bordercolor = bordercolor if bordercolor is not None else _v + self['bordercolor'] = bordercolor if bordercolor is not None else _v _v = arg.pop('borderwidth', None) - self.borderwidth = borderwidth if borderwidth is not None else _v + self['borderwidth'] = borderwidth if borderwidth is not None else _v _v = arg.pop('dtick', None) - self.dtick = dtick if dtick is not None else _v + self['dtick'] = dtick if dtick is not None else _v _v = arg.pop('exponentformat', None) - self.exponentformat = exponentformat if exponentformat is not None else _v + self['exponentformat' + ] = exponentformat if exponentformat is not None else _v _v = arg.pop('len', None) - self.len = len if len is not None else _v + self['len'] = len if len is not None else _v _v = arg.pop('lenmode', None) - self.lenmode = lenmode if lenmode is not None else _v + self['lenmode'] = lenmode if lenmode is not None else _v _v = arg.pop('nticks', None) - self.nticks = nticks if nticks is not None else _v + self['nticks'] = nticks if nticks is not None else _v _v = arg.pop('outlinecolor', None) - self.outlinecolor = outlinecolor if outlinecolor is not None else _v + self['outlinecolor'] = outlinecolor if outlinecolor is not None else _v _v = arg.pop('outlinewidth', None) - self.outlinewidth = outlinewidth if outlinewidth is not None else _v + self['outlinewidth'] = outlinewidth if outlinewidth is not None else _v _v = arg.pop('separatethousands', None) - self.separatethousands = separatethousands if separatethousands is not None else _v + self['separatethousands' + ] = separatethousands if separatethousands is not None else _v _v = arg.pop('showexponent', None) - self.showexponent = showexponent if showexponent is not None else _v + self['showexponent'] = showexponent if showexponent is not None else _v _v = arg.pop('showticklabels', None) - self.showticklabels = showticklabels if showticklabels is not None else _v + self['showticklabels' + ] = showticklabels if showticklabels is not None else _v _v = arg.pop('showtickprefix', None) - self.showtickprefix = showtickprefix if showtickprefix is not None else _v + self['showtickprefix' + ] = showtickprefix if showtickprefix is not None else _v _v = arg.pop('showticksuffix', None) - self.showticksuffix = showticksuffix if showticksuffix is not None else _v + self['showticksuffix' + ] = showticksuffix if showticksuffix is not None else _v _v = arg.pop('thickness', None) - self.thickness = thickness if thickness is not None else _v + self['thickness'] = thickness if thickness is not None else _v _v = arg.pop('thicknessmode', None) - self.thicknessmode = thicknessmode if thicknessmode is not None else _v + self['thicknessmode' + ] = thicknessmode if thicknessmode is not None else _v _v = arg.pop('tick0', None) - self.tick0 = tick0 if tick0 is not None else _v + self['tick0'] = tick0 if tick0 is not None else _v _v = arg.pop('tickangle', None) - self.tickangle = tickangle if tickangle is not None else _v + self['tickangle'] = tickangle if tickangle is not None else _v _v = arg.pop('tickcolor', None) - self.tickcolor = tickcolor if tickcolor is not None else _v + self['tickcolor'] = tickcolor if tickcolor is not None else _v _v = arg.pop('tickfont', None) - self.tickfont = tickfont if tickfont is not None else _v + self['tickfont'] = tickfont if tickfont is not None else _v _v = arg.pop('tickformat', None) - self.tickformat = tickformat if tickformat is not None else _v + self['tickformat'] = tickformat if tickformat is not None else _v _v = arg.pop('tickformatstops', None) - self.tickformatstops = tickformatstops if tickformatstops is not None else _v + self['tickformatstops' + ] = tickformatstops if tickformatstops is not None else _v _v = arg.pop('ticklen', None) - self.ticklen = ticklen if ticklen is not None else _v + self['ticklen'] = ticklen if ticklen is not None else _v _v = arg.pop('tickmode', None) - self.tickmode = tickmode if tickmode is not None else _v + self['tickmode'] = tickmode if tickmode is not None else _v _v = arg.pop('tickprefix', None) - self.tickprefix = tickprefix if tickprefix is not None else _v + self['tickprefix'] = tickprefix if tickprefix is not None else _v _v = arg.pop('ticks', None) - self.ticks = ticks if ticks is not None else _v + self['ticks'] = ticks if ticks is not None else _v _v = arg.pop('ticksuffix', None) - self.ticksuffix = ticksuffix if ticksuffix is not None else _v + self['ticksuffix'] = ticksuffix if ticksuffix is not None else _v _v = arg.pop('ticktext', None) - self.ticktext = ticktext if ticktext is not None else _v + self['ticktext'] = ticktext if ticktext is not None else _v _v = arg.pop('ticktextsrc', None) - self.ticktextsrc = ticktextsrc if ticktextsrc is not None else _v + self['ticktextsrc'] = ticktextsrc if ticktextsrc is not None else _v _v = arg.pop('tickvals', None) - self.tickvals = tickvals if tickvals is not None else _v + self['tickvals'] = tickvals if tickvals is not None else _v _v = arg.pop('tickvalssrc', None) - self.tickvalssrc = tickvalssrc if tickvalssrc is not None else _v + self['tickvalssrc'] = tickvalssrc if tickvalssrc is not None else _v _v = arg.pop('tickwidth', None) - self.tickwidth = tickwidth if tickwidth is not None else _v + self['tickwidth'] = tickwidth if tickwidth is not None else _v _v = arg.pop('title', None) - self.title = title if title is not None else _v + self['title'] = title if title is not None else _v _v = arg.pop('titlefont', None) - self.titlefont = titlefont if titlefont is not None else _v + self['titlefont'] = titlefont if titlefont is not None else _v _v = arg.pop('titleside', None) - self.titleside = titleside if titleside is not None else _v + self['titleside'] = titleside if titleside is not None else _v _v = arg.pop('x', None) - self.x = x if x is not None else _v + self['x'] = x if x is not None else _v _v = arg.pop('xanchor', None) - self.xanchor = xanchor if xanchor is not None else _v + self['xanchor'] = xanchor if xanchor is not None else _v _v = arg.pop('xpad', None) - self.xpad = xpad if xpad is not None else _v + self['xpad'] = xpad if xpad is not None else _v _v = arg.pop('y', None) - self.y = y if y is not None else _v + self['y'] = y if y is not None else _v _v = arg.pop('yanchor', None) - self.yanchor = yanchor if yanchor is not None else _v + self['yanchor'] = yanchor if yanchor is not None else _v _v = arg.pop('ypad', None) - self.ypad = ypad if ypad is not None else _v + self['ypad'] = ypad if ypad is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/streamtube/_hoverlabel.py b/plotly/graph_objs/streamtube/_hoverlabel.py index 4c7e3ad9b63..53a1a60b427 100644 --- a/plotly/graph_objs/streamtube/_hoverlabel.py +++ b/plotly/graph_objs/streamtube/_hoverlabel.py @@ -385,19 +385,21 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('bgcolor', None) - self.bgcolor = bgcolor if bgcolor is not None else _v + self['bgcolor'] = bgcolor if bgcolor is not None else _v _v = arg.pop('bgcolorsrc', None) - self.bgcolorsrc = bgcolorsrc if bgcolorsrc is not None else _v + self['bgcolorsrc'] = bgcolorsrc if bgcolorsrc is not None else _v _v = arg.pop('bordercolor', None) - self.bordercolor = bordercolor if bordercolor is not None else _v + self['bordercolor'] = bordercolor if bordercolor is not None else _v _v = arg.pop('bordercolorsrc', None) - self.bordercolorsrc = bordercolorsrc if bordercolorsrc is not None else _v + self['bordercolorsrc' + ] = bordercolorsrc if bordercolorsrc is not None else _v _v = arg.pop('font', None) - self.font = font if font is not None else _v + self['font'] = font if font is not None else _v _v = arg.pop('namelength', None) - self.namelength = namelength if namelength is not None else _v + self['namelength'] = namelength if namelength is not None else _v _v = arg.pop('namelengthsrc', None) - self.namelengthsrc = namelengthsrc if namelengthsrc is not None else _v + self['namelengthsrc' + ] = namelengthsrc if namelengthsrc is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/streamtube/_lighting.py b/plotly/graph_objs/streamtube/_lighting.py index 724e5741021..445203a649b 100644 --- a/plotly/graph_objs/streamtube/_lighting.py +++ b/plotly/graph_objs/streamtube/_lighting.py @@ -273,19 +273,22 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('ambient', None) - self.ambient = ambient if ambient is not None else _v + self['ambient'] = ambient if ambient is not None else _v _v = arg.pop('diffuse', None) - self.diffuse = diffuse if diffuse is not None else _v + self['diffuse'] = diffuse if diffuse is not None else _v _v = arg.pop('facenormalsepsilon', None) - self.facenormalsepsilon = facenormalsepsilon if facenormalsepsilon is not None else _v + self['facenormalsepsilon' + ] = facenormalsepsilon if facenormalsepsilon is not None else _v _v = arg.pop('fresnel', None) - self.fresnel = fresnel if fresnel is not None else _v + self['fresnel'] = fresnel if fresnel is not None else _v _v = arg.pop('roughness', None) - self.roughness = roughness if roughness is not None else _v + self['roughness'] = roughness if roughness is not None else _v _v = arg.pop('specular', None) - self.specular = specular if specular is not None else _v + self['specular'] = specular if specular is not None else _v _v = arg.pop('vertexnormalsepsilon', None) - self.vertexnormalsepsilon = vertexnormalsepsilon if vertexnormalsepsilon is not None else _v + self[ + 'vertexnormalsepsilon' + ] = vertexnormalsepsilon if vertexnormalsepsilon is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/streamtube/_lightposition.py b/plotly/graph_objs/streamtube/_lightposition.py index 3312f4698a2..f28605ec39a 100644 --- a/plotly/graph_objs/streamtube/_lightposition.py +++ b/plotly/graph_objs/streamtube/_lightposition.py @@ -143,11 +143,11 @@ def __init__(self, arg=None, x=None, y=None, z=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('x', None) - self.x = x if x is not None else _v + self['x'] = x if x is not None else _v _v = arg.pop('y', None) - self.y = y if y is not None else _v + self['y'] = y if y is not None else _v _v = arg.pop('z', None) - self.z = z if z is not None else _v + self['z'] = z if z is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/streamtube/_starts.py b/plotly/graph_objs/streamtube/_starts.py index 647924b8886..c9bb965325f 100644 --- a/plotly/graph_objs/streamtube/_starts.py +++ b/plotly/graph_objs/streamtube/_starts.py @@ -228,17 +228,17 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('x', None) - self.x = x if x is not None else _v + self['x'] = x if x is not None else _v _v = arg.pop('xsrc', None) - self.xsrc = xsrc if xsrc is not None else _v + self['xsrc'] = xsrc if xsrc is not None else _v _v = arg.pop('y', None) - self.y = y if y is not None else _v + self['y'] = y if y is not None else _v _v = arg.pop('ysrc', None) - self.ysrc = ysrc if ysrc is not None else _v + self['ysrc'] = ysrc if ysrc is not None else _v _v = arg.pop('z', None) - self.z = z if z is not None else _v + self['z'] = z if z is not None else _v _v = arg.pop('zsrc', None) - self.zsrc = zsrc if zsrc is not None else _v + self['zsrc'] = zsrc if zsrc is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/streamtube/_stream.py b/plotly/graph_objs/streamtube/_stream.py index 33bc0e99711..685a05a9c54 100644 --- a/plotly/graph_objs/streamtube/_stream.py +++ b/plotly/graph_objs/streamtube/_stream.py @@ -122,9 +122,9 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('maxpoints', None) - self.maxpoints = maxpoints if maxpoints is not None else _v + self['maxpoints'] = maxpoints if maxpoints is not None else _v _v = arg.pop('token', None) - self.token = token if token is not None else _v + self['token'] = token if token is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/streamtube/colorbar/_tickfont.py b/plotly/graph_objs/streamtube/colorbar/_tickfont.py index 8fbfaf1f0f1..e7f14770025 100644 --- a/plotly/graph_objs/streamtube/colorbar/_tickfont.py +++ b/plotly/graph_objs/streamtube/colorbar/_tickfont.py @@ -209,11 +209,11 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('family', None) - self.family = family if family is not None else _v + self['family'] = family if family is not None else _v _v = arg.pop('size', None) - self.size = size if size is not None else _v + self['size'] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/streamtube/colorbar/_tickformatstop.py b/plotly/graph_objs/streamtube/colorbar/_tickformatstop.py index aee5ca6ba67..74abb177404 100644 --- a/plotly/graph_objs/streamtube/colorbar/_tickformatstop.py +++ b/plotly/graph_objs/streamtube/colorbar/_tickformatstop.py @@ -260,15 +260,16 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('dtickrange', None) - self.dtickrange = dtickrange if dtickrange is not None else _v + self['dtickrange'] = dtickrange if dtickrange is not None else _v _v = arg.pop('enabled', None) - self.enabled = enabled if enabled is not None else _v + self['enabled'] = enabled if enabled is not None else _v _v = arg.pop('name', None) - self.name = name if name is not None else _v + self['name'] = name if name is not None else _v _v = arg.pop('templateitemname', None) - self.templateitemname = templateitemname if templateitemname is not None else _v + self['templateitemname' + ] = templateitemname if templateitemname is not None else _v _v = arg.pop('value', None) - self.value = value if value is not None else _v + self['value'] = value if value is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/streamtube/colorbar/_titlefont.py b/plotly/graph_objs/streamtube/colorbar/_titlefont.py index 61e3a161ae6..aef33d6a184 100644 --- a/plotly/graph_objs/streamtube/colorbar/_titlefont.py +++ b/plotly/graph_objs/streamtube/colorbar/_titlefont.py @@ -209,11 +209,11 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('family', None) - self.family = family if family is not None else _v + self['family'] = family if family is not None else _v _v = arg.pop('size', None) - self.size = size if size is not None else _v + self['size'] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/streamtube/hoverlabel/_font.py b/plotly/graph_objs/streamtube/hoverlabel/_font.py index 12d454434ae..c4747325c63 100644 --- a/plotly/graph_objs/streamtube/hoverlabel/_font.py +++ b/plotly/graph_objs/streamtube/hoverlabel/_font.py @@ -295,17 +295,17 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('colorsrc', None) - self.colorsrc = colorsrc if colorsrc is not None else _v + self['colorsrc'] = colorsrc if colorsrc is not None else _v _v = arg.pop('family', None) - self.family = family if family is not None else _v + self['family'] = family if family is not None else _v _v = arg.pop('familysrc', None) - self.familysrc = familysrc if familysrc is not None else _v + self['familysrc'] = familysrc if familysrc is not None else _v _v = arg.pop('size', None) - self.size = size if size is not None else _v + self['size'] = size if size is not None else _v _v = arg.pop('sizesrc', None) - self.sizesrc = sizesrc if sizesrc is not None else _v + self['sizesrc'] = sizesrc if sizesrc is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/surface/_colorbar.py b/plotly/graph_objs/surface/_colorbar.py index 9d16a0206dc..7a9e839a1a0 100644 --- a/plotly/graph_objs/surface/_colorbar.py +++ b/plotly/graph_objs/surface/_colorbar.py @@ -1671,89 +1671,96 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('bgcolor', None) - self.bgcolor = bgcolor if bgcolor is not None else _v + self['bgcolor'] = bgcolor if bgcolor is not None else _v _v = arg.pop('bordercolor', None) - self.bordercolor = bordercolor if bordercolor is not None else _v + self['bordercolor'] = bordercolor if bordercolor is not None else _v _v = arg.pop('borderwidth', None) - self.borderwidth = borderwidth if borderwidth is not None else _v + self['borderwidth'] = borderwidth if borderwidth is not None else _v _v = arg.pop('dtick', None) - self.dtick = dtick if dtick is not None else _v + self['dtick'] = dtick if dtick is not None else _v _v = arg.pop('exponentformat', None) - self.exponentformat = exponentformat if exponentformat is not None else _v + self['exponentformat' + ] = exponentformat if exponentformat is not None else _v _v = arg.pop('len', None) - self.len = len if len is not None else _v + self['len'] = len if len is not None else _v _v = arg.pop('lenmode', None) - self.lenmode = lenmode if lenmode is not None else _v + self['lenmode'] = lenmode if lenmode is not None else _v _v = arg.pop('nticks', None) - self.nticks = nticks if nticks is not None else _v + self['nticks'] = nticks if nticks is not None else _v _v = arg.pop('outlinecolor', None) - self.outlinecolor = outlinecolor if outlinecolor is not None else _v + self['outlinecolor'] = outlinecolor if outlinecolor is not None else _v _v = arg.pop('outlinewidth', None) - self.outlinewidth = outlinewidth if outlinewidth is not None else _v + self['outlinewidth'] = outlinewidth if outlinewidth is not None else _v _v = arg.pop('separatethousands', None) - self.separatethousands = separatethousands if separatethousands is not None else _v + self['separatethousands' + ] = separatethousands if separatethousands is not None else _v _v = arg.pop('showexponent', None) - self.showexponent = showexponent if showexponent is not None else _v + self['showexponent'] = showexponent if showexponent is not None else _v _v = arg.pop('showticklabels', None) - self.showticklabels = showticklabels if showticklabels is not None else _v + self['showticklabels' + ] = showticklabels if showticklabels is not None else _v _v = arg.pop('showtickprefix', None) - self.showtickprefix = showtickprefix if showtickprefix is not None else _v + self['showtickprefix' + ] = showtickprefix if showtickprefix is not None else _v _v = arg.pop('showticksuffix', None) - self.showticksuffix = showticksuffix if showticksuffix is not None else _v + self['showticksuffix' + ] = showticksuffix if showticksuffix is not None else _v _v = arg.pop('thickness', None) - self.thickness = thickness if thickness is not None else _v + self['thickness'] = thickness if thickness is not None else _v _v = arg.pop('thicknessmode', None) - self.thicknessmode = thicknessmode if thicknessmode is not None else _v + self['thicknessmode' + ] = thicknessmode if thicknessmode is not None else _v _v = arg.pop('tick0', None) - self.tick0 = tick0 if tick0 is not None else _v + self['tick0'] = tick0 if tick0 is not None else _v _v = arg.pop('tickangle', None) - self.tickangle = tickangle if tickangle is not None else _v + self['tickangle'] = tickangle if tickangle is not None else _v _v = arg.pop('tickcolor', None) - self.tickcolor = tickcolor if tickcolor is not None else _v + self['tickcolor'] = tickcolor if tickcolor is not None else _v _v = arg.pop('tickfont', None) - self.tickfont = tickfont if tickfont is not None else _v + self['tickfont'] = tickfont if tickfont is not None else _v _v = arg.pop('tickformat', None) - self.tickformat = tickformat if tickformat is not None else _v + self['tickformat'] = tickformat if tickformat is not None else _v _v = arg.pop('tickformatstops', None) - self.tickformatstops = tickformatstops if tickformatstops is not None else _v + self['tickformatstops' + ] = tickformatstops if tickformatstops is not None else _v _v = arg.pop('ticklen', None) - self.ticklen = ticklen if ticklen is not None else _v + self['ticklen'] = ticklen if ticklen is not None else _v _v = arg.pop('tickmode', None) - self.tickmode = tickmode if tickmode is not None else _v + self['tickmode'] = tickmode if tickmode is not None else _v _v = arg.pop('tickprefix', None) - self.tickprefix = tickprefix if tickprefix is not None else _v + self['tickprefix'] = tickprefix if tickprefix is not None else _v _v = arg.pop('ticks', None) - self.ticks = ticks if ticks is not None else _v + self['ticks'] = ticks if ticks is not None else _v _v = arg.pop('ticksuffix', None) - self.ticksuffix = ticksuffix if ticksuffix is not None else _v + self['ticksuffix'] = ticksuffix if ticksuffix is not None else _v _v = arg.pop('ticktext', None) - self.ticktext = ticktext if ticktext is not None else _v + self['ticktext'] = ticktext if ticktext is not None else _v _v = arg.pop('ticktextsrc', None) - self.ticktextsrc = ticktextsrc if ticktextsrc is not None else _v + self['ticktextsrc'] = ticktextsrc if ticktextsrc is not None else _v _v = arg.pop('tickvals', None) - self.tickvals = tickvals if tickvals is not None else _v + self['tickvals'] = tickvals if tickvals is not None else _v _v = arg.pop('tickvalssrc', None) - self.tickvalssrc = tickvalssrc if tickvalssrc is not None else _v + self['tickvalssrc'] = tickvalssrc if tickvalssrc is not None else _v _v = arg.pop('tickwidth', None) - self.tickwidth = tickwidth if tickwidth is not None else _v + self['tickwidth'] = tickwidth if tickwidth is not None else _v _v = arg.pop('title', None) - self.title = title if title is not None else _v + self['title'] = title if title is not None else _v _v = arg.pop('titlefont', None) - self.titlefont = titlefont if titlefont is not None else _v + self['titlefont'] = titlefont if titlefont is not None else _v _v = arg.pop('titleside', None) - self.titleside = titleside if titleside is not None else _v + self['titleside'] = titleside if titleside is not None else _v _v = arg.pop('x', None) - self.x = x if x is not None else _v + self['x'] = x if x is not None else _v _v = arg.pop('xanchor', None) - self.xanchor = xanchor if xanchor is not None else _v + self['xanchor'] = xanchor if xanchor is not None else _v _v = arg.pop('xpad', None) - self.xpad = xpad if xpad is not None else _v + self['xpad'] = xpad if xpad is not None else _v _v = arg.pop('y', None) - self.y = y if y is not None else _v + self['y'] = y if y is not None else _v _v = arg.pop('yanchor', None) - self.yanchor = yanchor if yanchor is not None else _v + self['yanchor'] = yanchor if yanchor is not None else _v _v = arg.pop('ypad', None) - self.ypad = ypad if ypad is not None else _v + self['ypad'] = ypad if ypad is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/surface/_contours.py b/plotly/graph_objs/surface/_contours.py index edda091342b..a74fce952c1 100644 --- a/plotly/graph_objs/surface/_contours.py +++ b/plotly/graph_objs/surface/_contours.py @@ -221,11 +221,11 @@ def __init__(self, arg=None, x=None, y=None, z=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('x', None) - self.x = x if x is not None else _v + self['x'] = x if x is not None else _v _v = arg.pop('y', None) - self.y = y if y is not None else _v + self['y'] = y if y is not None else _v _v = arg.pop('z', None) - self.z = z if z is not None else _v + self['z'] = z if z is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/surface/_hoverlabel.py b/plotly/graph_objs/surface/_hoverlabel.py index b4940418299..10559ee2f62 100644 --- a/plotly/graph_objs/surface/_hoverlabel.py +++ b/plotly/graph_objs/surface/_hoverlabel.py @@ -385,19 +385,21 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('bgcolor', None) - self.bgcolor = bgcolor if bgcolor is not None else _v + self['bgcolor'] = bgcolor if bgcolor is not None else _v _v = arg.pop('bgcolorsrc', None) - self.bgcolorsrc = bgcolorsrc if bgcolorsrc is not None else _v + self['bgcolorsrc'] = bgcolorsrc if bgcolorsrc is not None else _v _v = arg.pop('bordercolor', None) - self.bordercolor = bordercolor if bordercolor is not None else _v + self['bordercolor'] = bordercolor if bordercolor is not None else _v _v = arg.pop('bordercolorsrc', None) - self.bordercolorsrc = bordercolorsrc if bordercolorsrc is not None else _v + self['bordercolorsrc' + ] = bordercolorsrc if bordercolorsrc is not None else _v _v = arg.pop('font', None) - self.font = font if font is not None else _v + self['font'] = font if font is not None else _v _v = arg.pop('namelength', None) - self.namelength = namelength if namelength is not None else _v + self['namelength'] = namelength if namelength is not None else _v _v = arg.pop('namelengthsrc', None) - self.namelengthsrc = namelengthsrc if namelengthsrc is not None else _v + self['namelengthsrc' + ] = namelengthsrc if namelengthsrc is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/surface/_lighting.py b/plotly/graph_objs/surface/_lighting.py index 15a6fd8c240..40a733c294a 100644 --- a/plotly/graph_objs/surface/_lighting.py +++ b/plotly/graph_objs/surface/_lighting.py @@ -213,15 +213,15 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('ambient', None) - self.ambient = ambient if ambient is not None else _v + self['ambient'] = ambient if ambient is not None else _v _v = arg.pop('diffuse', None) - self.diffuse = diffuse if diffuse is not None else _v + self['diffuse'] = diffuse if diffuse is not None else _v _v = arg.pop('fresnel', None) - self.fresnel = fresnel if fresnel is not None else _v + self['fresnel'] = fresnel if fresnel is not None else _v _v = arg.pop('roughness', None) - self.roughness = roughness if roughness is not None else _v + self['roughness'] = roughness if roughness is not None else _v _v = arg.pop('specular', None) - self.specular = specular if specular is not None else _v + self['specular'] = specular if specular is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/surface/_lightposition.py b/plotly/graph_objs/surface/_lightposition.py index 5a255f38d59..b2d876d3eff 100644 --- a/plotly/graph_objs/surface/_lightposition.py +++ b/plotly/graph_objs/surface/_lightposition.py @@ -142,11 +142,11 @@ def __init__(self, arg=None, x=None, y=None, z=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('x', None) - self.x = x if x is not None else _v + self['x'] = x if x is not None else _v _v = arg.pop('y', None) - self.y = y if y is not None else _v + self['y'] = y if y is not None else _v _v = arg.pop('z', None) - self.z = z if z is not None else _v + self['z'] = z if z is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/surface/_stream.py b/plotly/graph_objs/surface/_stream.py index 1838e02abaa..de6626a855e 100644 --- a/plotly/graph_objs/surface/_stream.py +++ b/plotly/graph_objs/surface/_stream.py @@ -122,9 +122,9 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('maxpoints', None) - self.maxpoints = maxpoints if maxpoints is not None else _v + self['maxpoints'] = maxpoints if maxpoints is not None else _v _v = arg.pop('token', None) - self.token = token if token is not None else _v + self['token'] = token if token is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/surface/colorbar/_tickfont.py b/plotly/graph_objs/surface/colorbar/_tickfont.py index d5b57437996..c3b55e2c611 100644 --- a/plotly/graph_objs/surface/colorbar/_tickfont.py +++ b/plotly/graph_objs/surface/colorbar/_tickfont.py @@ -207,11 +207,11 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('family', None) - self.family = family if family is not None else _v + self['family'] = family if family is not None else _v _v = arg.pop('size', None) - self.size = size if size is not None else _v + self['size'] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/surface/colorbar/_tickformatstop.py b/plotly/graph_objs/surface/colorbar/_tickformatstop.py index be0c2fceb1a..dc37ee4733e 100644 --- a/plotly/graph_objs/surface/colorbar/_tickformatstop.py +++ b/plotly/graph_objs/surface/colorbar/_tickformatstop.py @@ -260,15 +260,16 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('dtickrange', None) - self.dtickrange = dtickrange if dtickrange is not None else _v + self['dtickrange'] = dtickrange if dtickrange is not None else _v _v = arg.pop('enabled', None) - self.enabled = enabled if enabled is not None else _v + self['enabled'] = enabled if enabled is not None else _v _v = arg.pop('name', None) - self.name = name if name is not None else _v + self['name'] = name if name is not None else _v _v = arg.pop('templateitemname', None) - self.templateitemname = templateitemname if templateitemname is not None else _v + self['templateitemname' + ] = templateitemname if templateitemname is not None else _v _v = arg.pop('value', None) - self.value = value if value is not None else _v + self['value'] = value if value is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/surface/colorbar/_titlefont.py b/plotly/graph_objs/surface/colorbar/_titlefont.py index 3da4c2caeef..bfb2bd0b4ed 100644 --- a/plotly/graph_objs/surface/colorbar/_titlefont.py +++ b/plotly/graph_objs/surface/colorbar/_titlefont.py @@ -209,11 +209,11 @@ def __init__(self, arg=None, color=None, family=None, size=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('family', None) - self.family = family if family is not None else _v + self['family'] = family if family is not None else _v _v = arg.pop('size', None) - self.size = size if size is not None else _v + self['size'] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/surface/contours/_x.py b/plotly/graph_objs/surface/contours/_x.py index cab2a1dc8c7..1003120716e 100644 --- a/plotly/graph_objs/surface/contours/_x.py +++ b/plotly/graph_objs/surface/contours/_x.py @@ -382,21 +382,23 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('highlight', None) - self.highlight = highlight if highlight is not None else _v + self['highlight'] = highlight if highlight is not None else _v _v = arg.pop('highlightcolor', None) - self.highlightcolor = highlightcolor if highlightcolor is not None else _v + self['highlightcolor' + ] = highlightcolor if highlightcolor is not None else _v _v = arg.pop('highlightwidth', None) - self.highlightwidth = highlightwidth if highlightwidth is not None else _v + self['highlightwidth' + ] = highlightwidth if highlightwidth is not None else _v _v = arg.pop('project', None) - self.project = project if project is not None else _v + self['project'] = project if project is not None else _v _v = arg.pop('show', None) - self.show = show if show is not None else _v + self['show'] = show if show is not None else _v _v = arg.pop('usecolormap', None) - self.usecolormap = usecolormap if usecolormap is not None else _v + self['usecolormap'] = usecolormap if usecolormap is not None else _v _v = arg.pop('width', None) - self.width = width if width is not None else _v + self['width'] = width if width is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/surface/contours/_y.py b/plotly/graph_objs/surface/contours/_y.py index 9d652de702d..75c31e953d6 100644 --- a/plotly/graph_objs/surface/contours/_y.py +++ b/plotly/graph_objs/surface/contours/_y.py @@ -382,21 +382,23 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('highlight', None) - self.highlight = highlight if highlight is not None else _v + self['highlight'] = highlight if highlight is not None else _v _v = arg.pop('highlightcolor', None) - self.highlightcolor = highlightcolor if highlightcolor is not None else _v + self['highlightcolor' + ] = highlightcolor if highlightcolor is not None else _v _v = arg.pop('highlightwidth', None) - self.highlightwidth = highlightwidth if highlightwidth is not None else _v + self['highlightwidth' + ] = highlightwidth if highlightwidth is not None else _v _v = arg.pop('project', None) - self.project = project if project is not None else _v + self['project'] = project if project is not None else _v _v = arg.pop('show', None) - self.show = show if show is not None else _v + self['show'] = show if show is not None else _v _v = arg.pop('usecolormap', None) - self.usecolormap = usecolormap if usecolormap is not None else _v + self['usecolormap'] = usecolormap if usecolormap is not None else _v _v = arg.pop('width', None) - self.width = width if width is not None else _v + self['width'] = width if width is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/surface/contours/_z.py b/plotly/graph_objs/surface/contours/_z.py index ae79151bbde..b66c685f5f7 100644 --- a/plotly/graph_objs/surface/contours/_z.py +++ b/plotly/graph_objs/surface/contours/_z.py @@ -382,21 +382,23 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('highlight', None) - self.highlight = highlight if highlight is not None else _v + self['highlight'] = highlight if highlight is not None else _v _v = arg.pop('highlightcolor', None) - self.highlightcolor = highlightcolor if highlightcolor is not None else _v + self['highlightcolor' + ] = highlightcolor if highlightcolor is not None else _v _v = arg.pop('highlightwidth', None) - self.highlightwidth = highlightwidth if highlightwidth is not None else _v + self['highlightwidth' + ] = highlightwidth if highlightwidth is not None else _v _v = arg.pop('project', None) - self.project = project if project is not None else _v + self['project'] = project if project is not None else _v _v = arg.pop('show', None) - self.show = show if show is not None else _v + self['show'] = show if show is not None else _v _v = arg.pop('usecolormap', None) - self.usecolormap = usecolormap if usecolormap is not None else _v + self['usecolormap'] = usecolormap if usecolormap is not None else _v _v = arg.pop('width', None) - self.width = width if width is not None else _v + self['width'] = width if width is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/surface/contours/x/_project.py b/plotly/graph_objs/surface/contours/x/_project.py index 251f341db69..5dfa2906abf 100644 --- a/plotly/graph_objs/surface/contours/x/_project.py +++ b/plotly/graph_objs/surface/contours/x/_project.py @@ -168,11 +168,11 @@ def __init__(self, arg=None, x=None, y=None, z=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('x', None) - self.x = x if x is not None else _v + self['x'] = x if x is not None else _v _v = arg.pop('y', None) - self.y = y if y is not None else _v + self['y'] = y if y is not None else _v _v = arg.pop('z', None) - self.z = z if z is not None else _v + self['z'] = z if z is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/surface/contours/y/_project.py b/plotly/graph_objs/surface/contours/y/_project.py index ba97b03149a..9814583e5d8 100644 --- a/plotly/graph_objs/surface/contours/y/_project.py +++ b/plotly/graph_objs/surface/contours/y/_project.py @@ -168,11 +168,11 @@ def __init__(self, arg=None, x=None, y=None, z=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('x', None) - self.x = x if x is not None else _v + self['x'] = x if x is not None else _v _v = arg.pop('y', None) - self.y = y if y is not None else _v + self['y'] = y if y is not None else _v _v = arg.pop('z', None) - self.z = z if z is not None else _v + self['z'] = z if z is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/surface/contours/z/_project.py b/plotly/graph_objs/surface/contours/z/_project.py index 9e603b7efc3..ff7478d9fc8 100644 --- a/plotly/graph_objs/surface/contours/z/_project.py +++ b/plotly/graph_objs/surface/contours/z/_project.py @@ -168,11 +168,11 @@ def __init__(self, arg=None, x=None, y=None, z=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('x', None) - self.x = x if x is not None else _v + self['x'] = x if x is not None else _v _v = arg.pop('y', None) - self.y = y if y is not None else _v + self['y'] = y if y is not None else _v _v = arg.pop('z', None) - self.z = z if z is not None else _v + self['z'] = z if z is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/surface/hoverlabel/_font.py b/plotly/graph_objs/surface/hoverlabel/_font.py index d1d580ca27a..600dcee00d1 100644 --- a/plotly/graph_objs/surface/hoverlabel/_font.py +++ b/plotly/graph_objs/surface/hoverlabel/_font.py @@ -295,17 +295,17 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('colorsrc', None) - self.colorsrc = colorsrc if colorsrc is not None else _v + self['colorsrc'] = colorsrc if colorsrc is not None else _v _v = arg.pop('family', None) - self.family = family if family is not None else _v + self['family'] = family if family is not None else _v _v = arg.pop('familysrc', None) - self.familysrc = familysrc if familysrc is not None else _v + self['familysrc'] = familysrc if familysrc is not None else _v _v = arg.pop('size', None) - self.size = size if size is not None else _v + self['size'] = size if size is not None else _v _v = arg.pop('sizesrc', None) - self.sizesrc = sizesrc if sizesrc is not None else _v + self['sizesrc'] = sizesrc if sizesrc is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/table/_cells.py b/plotly/graph_objs/table/_cells.py index 4e7172a4f86..804bcd5bc8d 100644 --- a/plotly/graph_objs/table/_cells.py +++ b/plotly/graph_objs/table/_cells.py @@ -526,33 +526,33 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('align', None) - self.align = align if align is not None else _v + self['align'] = align if align is not None else _v _v = arg.pop('alignsrc', None) - self.alignsrc = alignsrc if alignsrc is not None else _v + self['alignsrc'] = alignsrc if alignsrc is not None else _v _v = arg.pop('fill', None) - self.fill = fill if fill is not None else _v + self['fill'] = fill if fill is not None else _v _v = arg.pop('font', None) - self.font = font if font is not None else _v + self['font'] = font if font is not None else _v _v = arg.pop('format', None) - self.format = format if format is not None else _v + self['format'] = format if format is not None else _v _v = arg.pop('formatsrc', None) - self.formatsrc = formatsrc if formatsrc is not None else _v + self['formatsrc'] = formatsrc if formatsrc is not None else _v _v = arg.pop('height', None) - self.height = height if height is not None else _v + self['height'] = height if height is not None else _v _v = arg.pop('line', None) - self.line = line if line is not None else _v + self['line'] = line if line is not None else _v _v = arg.pop('prefix', None) - self.prefix = prefix if prefix is not None else _v + self['prefix'] = prefix if prefix is not None else _v _v = arg.pop('prefixsrc', None) - self.prefixsrc = prefixsrc if prefixsrc is not None else _v + self['prefixsrc'] = prefixsrc if prefixsrc is not None else _v _v = arg.pop('suffix', None) - self.suffix = suffix if suffix is not None else _v + self['suffix'] = suffix if suffix is not None else _v _v = arg.pop('suffixsrc', None) - self.suffixsrc = suffixsrc if suffixsrc is not None else _v + self['suffixsrc'] = suffixsrc if suffixsrc is not None else _v _v = arg.pop('values', None) - self.values = values if values is not None else _v + self['values'] = values if values is not None else _v _v = arg.pop('valuessrc', None) - self.valuessrc = valuessrc if valuessrc is not None else _v + self['valuessrc'] = valuessrc if valuessrc is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/table/_domain.py b/plotly/graph_objs/table/_domain.py index 68a3c00868f..2ac5083491f 100644 --- a/plotly/graph_objs/table/_domain.py +++ b/plotly/graph_objs/table/_domain.py @@ -185,13 +185,13 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('column', None) - self.column = column if column is not None else _v + self['column'] = column if column is not None else _v _v = arg.pop('row', None) - self.row = row if row is not None else _v + self['row'] = row if row is not None else _v _v = arg.pop('x', None) - self.x = x if x is not None else _v + self['x'] = x if x is not None else _v _v = arg.pop('y', None) - self.y = y if y is not None else _v + self['y'] = y if y is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/table/_header.py b/plotly/graph_objs/table/_header.py index 28a7ef3039f..b083fb686b7 100644 --- a/plotly/graph_objs/table/_header.py +++ b/plotly/graph_objs/table/_header.py @@ -526,33 +526,33 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('align', None) - self.align = align if align is not None else _v + self['align'] = align if align is not None else _v _v = arg.pop('alignsrc', None) - self.alignsrc = alignsrc if alignsrc is not None else _v + self['alignsrc'] = alignsrc if alignsrc is not None else _v _v = arg.pop('fill', None) - self.fill = fill if fill is not None else _v + self['fill'] = fill if fill is not None else _v _v = arg.pop('font', None) - self.font = font if font is not None else _v + self['font'] = font if font is not None else _v _v = arg.pop('format', None) - self.format = format if format is not None else _v + self['format'] = format if format is not None else _v _v = arg.pop('formatsrc', None) - self.formatsrc = formatsrc if formatsrc is not None else _v + self['formatsrc'] = formatsrc if formatsrc is not None else _v _v = arg.pop('height', None) - self.height = height if height is not None else _v + self['height'] = height if height is not None else _v _v = arg.pop('line', None) - self.line = line if line is not None else _v + self['line'] = line if line is not None else _v _v = arg.pop('prefix', None) - self.prefix = prefix if prefix is not None else _v + self['prefix'] = prefix if prefix is not None else _v _v = arg.pop('prefixsrc', None) - self.prefixsrc = prefixsrc if prefixsrc is not None else _v + self['prefixsrc'] = prefixsrc if prefixsrc is not None else _v _v = arg.pop('suffix', None) - self.suffix = suffix if suffix is not None else _v + self['suffix'] = suffix if suffix is not None else _v _v = arg.pop('suffixsrc', None) - self.suffixsrc = suffixsrc if suffixsrc is not None else _v + self['suffixsrc'] = suffixsrc if suffixsrc is not None else _v _v = arg.pop('values', None) - self.values = values if values is not None else _v + self['values'] = values if values is not None else _v _v = arg.pop('valuessrc', None) - self.valuessrc = valuessrc if valuessrc is not None else _v + self['valuessrc'] = valuessrc if valuessrc is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/table/_hoverlabel.py b/plotly/graph_objs/table/_hoverlabel.py index abaecb6b935..667e6368e14 100644 --- a/plotly/graph_objs/table/_hoverlabel.py +++ b/plotly/graph_objs/table/_hoverlabel.py @@ -385,19 +385,21 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('bgcolor', None) - self.bgcolor = bgcolor if bgcolor is not None else _v + self['bgcolor'] = bgcolor if bgcolor is not None else _v _v = arg.pop('bgcolorsrc', None) - self.bgcolorsrc = bgcolorsrc if bgcolorsrc is not None else _v + self['bgcolorsrc'] = bgcolorsrc if bgcolorsrc is not None else _v _v = arg.pop('bordercolor', None) - self.bordercolor = bordercolor if bordercolor is not None else _v + self['bordercolor'] = bordercolor if bordercolor is not None else _v _v = arg.pop('bordercolorsrc', None) - self.bordercolorsrc = bordercolorsrc if bordercolorsrc is not None else _v + self['bordercolorsrc' + ] = bordercolorsrc if bordercolorsrc is not None else _v _v = arg.pop('font', None) - self.font = font if font is not None else _v + self['font'] = font if font is not None else _v _v = arg.pop('namelength', None) - self.namelength = namelength if namelength is not None else _v + self['namelength'] = namelength if namelength is not None else _v _v = arg.pop('namelengthsrc', None) - self.namelengthsrc = namelengthsrc if namelengthsrc is not None else _v + self['namelengthsrc' + ] = namelengthsrc if namelengthsrc is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/table/_stream.py b/plotly/graph_objs/table/_stream.py index d1d84ba1a46..e503ab5e4ae 100644 --- a/plotly/graph_objs/table/_stream.py +++ b/plotly/graph_objs/table/_stream.py @@ -122,9 +122,9 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('maxpoints', None) - self.maxpoints = maxpoints if maxpoints is not None else _v + self['maxpoints'] = maxpoints if maxpoints is not None else _v _v = arg.pop('token', None) - self.token = token if token is not None else _v + self['token'] = token if token is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/table/cells/_fill.py b/plotly/graph_objs/table/cells/_fill.py index 7ace0b6a9a2..a6dfbb9e111 100644 --- a/plotly/graph_objs/table/cells/_fill.py +++ b/plotly/graph_objs/table/cells/_fill.py @@ -152,9 +152,9 @@ def __init__(self, arg=None, color=None, colorsrc=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('colorsrc', None) - self.colorsrc = colorsrc if colorsrc is not None else _v + self['colorsrc'] = colorsrc if colorsrc is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/table/cells/_font.py b/plotly/graph_objs/table/cells/_font.py index d6da3c030d5..313bc749d97 100644 --- a/plotly/graph_objs/table/cells/_font.py +++ b/plotly/graph_objs/table/cells/_font.py @@ -292,17 +292,17 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('colorsrc', None) - self.colorsrc = colorsrc if colorsrc is not None else _v + self['colorsrc'] = colorsrc if colorsrc is not None else _v _v = arg.pop('family', None) - self.family = family if family is not None else _v + self['family'] = family if family is not None else _v _v = arg.pop('familysrc', None) - self.familysrc = familysrc if familysrc is not None else _v + self['familysrc'] = familysrc if familysrc is not None else _v _v = arg.pop('size', None) - self.size = size if size is not None else _v + self['size'] = size if size is not None else _v _v = arg.pop('sizesrc', None) - self.sizesrc = sizesrc if sizesrc is not None else _v + self['sizesrc'] = sizesrc if sizesrc is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/table/cells/_line.py b/plotly/graph_objs/table/cells/_line.py index 0167448d47a..23e37d361d7 100644 --- a/plotly/graph_objs/table/cells/_line.py +++ b/plotly/graph_objs/table/cells/_line.py @@ -204,13 +204,13 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('colorsrc', None) - self.colorsrc = colorsrc if colorsrc is not None else _v + self['colorsrc'] = colorsrc if colorsrc is not None else _v _v = arg.pop('width', None) - self.width = width if width is not None else _v + self['width'] = width if width is not None else _v _v = arg.pop('widthsrc', None) - self.widthsrc = widthsrc if widthsrc is not None else _v + self['widthsrc'] = widthsrc if widthsrc is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/table/header/_fill.py b/plotly/graph_objs/table/header/_fill.py index b9d49be2312..21f12acbc30 100644 --- a/plotly/graph_objs/table/header/_fill.py +++ b/plotly/graph_objs/table/header/_fill.py @@ -152,9 +152,9 @@ def __init__(self, arg=None, color=None, colorsrc=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('colorsrc', None) - self.colorsrc = colorsrc if colorsrc is not None else _v + self['colorsrc'] = colorsrc if colorsrc is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/table/header/_font.py b/plotly/graph_objs/table/header/_font.py index b94edd33ab6..25a36fd0beb 100644 --- a/plotly/graph_objs/table/header/_font.py +++ b/plotly/graph_objs/table/header/_font.py @@ -292,17 +292,17 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('colorsrc', None) - self.colorsrc = colorsrc if colorsrc is not None else _v + self['colorsrc'] = colorsrc if colorsrc is not None else _v _v = arg.pop('family', None) - self.family = family if family is not None else _v + self['family'] = family if family is not None else _v _v = arg.pop('familysrc', None) - self.familysrc = familysrc if familysrc is not None else _v + self['familysrc'] = familysrc if familysrc is not None else _v _v = arg.pop('size', None) - self.size = size if size is not None else _v + self['size'] = size if size is not None else _v _v = arg.pop('sizesrc', None) - self.sizesrc = sizesrc if sizesrc is not None else _v + self['sizesrc'] = sizesrc if sizesrc is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/table/header/_line.py b/plotly/graph_objs/table/header/_line.py index 02c7e1adbb3..68a02c6f3ad 100644 --- a/plotly/graph_objs/table/header/_line.py +++ b/plotly/graph_objs/table/header/_line.py @@ -204,13 +204,13 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('colorsrc', None) - self.colorsrc = colorsrc if colorsrc is not None else _v + self['colorsrc'] = colorsrc if colorsrc is not None else _v _v = arg.pop('width', None) - self.width = width if width is not None else _v + self['width'] = width if width is not None else _v _v = arg.pop('widthsrc', None) - self.widthsrc = widthsrc if widthsrc is not None else _v + self['widthsrc'] = widthsrc if widthsrc is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/table/hoverlabel/_font.py b/plotly/graph_objs/table/hoverlabel/_font.py index 33639492593..dc64e83d42c 100644 --- a/plotly/graph_objs/table/hoverlabel/_font.py +++ b/plotly/graph_objs/table/hoverlabel/_font.py @@ -294,17 +294,17 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('colorsrc', None) - self.colorsrc = colorsrc if colorsrc is not None else _v + self['colorsrc'] = colorsrc if colorsrc is not None else _v _v = arg.pop('family', None) - self.family = family if family is not None else _v + self['family'] = family if family is not None else _v _v = arg.pop('familysrc', None) - self.familysrc = familysrc if familysrc is not None else _v + self['familysrc'] = familysrc if familysrc is not None else _v _v = arg.pop('size', None) - self.size = size if size is not None else _v + self['size'] = size if size is not None else _v _v = arg.pop('sizesrc', None) - self.sizesrc = sizesrc if sizesrc is not None else _v + self['sizesrc'] = sizesrc if sizesrc is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/violin/_box.py b/plotly/graph_objs/violin/_box.py index 80ca23c66a1..3fd3f9b2d6b 100644 --- a/plotly/graph_objs/violin/_box.py +++ b/plotly/graph_objs/violin/_box.py @@ -225,13 +225,13 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('fillcolor', None) - self.fillcolor = fillcolor if fillcolor is not None else _v + self['fillcolor'] = fillcolor if fillcolor is not None else _v _v = arg.pop('line', None) - self.line = line if line is not None else _v + self['line'] = line if line is not None else _v _v = arg.pop('visible', None) - self.visible = visible if visible is not None else _v + self['visible'] = visible if visible is not None else _v _v = arg.pop('width', None) - self.width = width if width is not None else _v + self['width'] = width if width is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/violin/_hoverlabel.py b/plotly/graph_objs/violin/_hoverlabel.py index 47dee044faa..3ee76976e59 100644 --- a/plotly/graph_objs/violin/_hoverlabel.py +++ b/plotly/graph_objs/violin/_hoverlabel.py @@ -385,19 +385,21 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('bgcolor', None) - self.bgcolor = bgcolor if bgcolor is not None else _v + self['bgcolor'] = bgcolor if bgcolor is not None else _v _v = arg.pop('bgcolorsrc', None) - self.bgcolorsrc = bgcolorsrc if bgcolorsrc is not None else _v + self['bgcolorsrc'] = bgcolorsrc if bgcolorsrc is not None else _v _v = arg.pop('bordercolor', None) - self.bordercolor = bordercolor if bordercolor is not None else _v + self['bordercolor'] = bordercolor if bordercolor is not None else _v _v = arg.pop('bordercolorsrc', None) - self.bordercolorsrc = bordercolorsrc if bordercolorsrc is not None else _v + self['bordercolorsrc' + ] = bordercolorsrc if bordercolorsrc is not None else _v _v = arg.pop('font', None) - self.font = font if font is not None else _v + self['font'] = font if font is not None else _v _v = arg.pop('namelength', None) - self.namelength = namelength if namelength is not None else _v + self['namelength'] = namelength if namelength is not None else _v _v = arg.pop('namelengthsrc', None) - self.namelengthsrc = namelengthsrc if namelengthsrc is not None else _v + self['namelengthsrc' + ] = namelengthsrc if namelengthsrc is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/violin/_line.py b/plotly/graph_objs/violin/_line.py index 9f97978d7ab..1fe653c3f07 100644 --- a/plotly/graph_objs/violin/_line.py +++ b/plotly/graph_objs/violin/_line.py @@ -148,9 +148,9 @@ def __init__(self, arg=None, color=None, width=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('width', None) - self.width = width if width is not None else _v + self['width'] = width if width is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/violin/_marker.py b/plotly/graph_objs/violin/_marker.py index 0cc64baa404..58175d838fb 100644 --- a/plotly/graph_objs/violin/_marker.py +++ b/plotly/graph_objs/violin/_marker.py @@ -402,17 +402,17 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('line', None) - self.line = line if line is not None else _v + self['line'] = line if line is not None else _v _v = arg.pop('opacity', None) - self.opacity = opacity if opacity is not None else _v + self['opacity'] = opacity if opacity is not None else _v _v = arg.pop('outliercolor', None) - self.outliercolor = outliercolor if outliercolor is not None else _v + self['outliercolor'] = outliercolor if outliercolor is not None else _v _v = arg.pop('size', None) - self.size = size if size is not None else _v + self['size'] = size if size is not None else _v _v = arg.pop('symbol', None) - self.symbol = symbol if symbol is not None else _v + self['symbol'] = symbol if symbol is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/violin/_meanline.py b/plotly/graph_objs/violin/_meanline.py index 3e466c945ed..3127ed58100 100644 --- a/plotly/graph_objs/violin/_meanline.py +++ b/plotly/graph_objs/violin/_meanline.py @@ -186,11 +186,11 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('visible', None) - self.visible = visible if visible is not None else _v + self['visible'] = visible if visible is not None else _v _v = arg.pop('width', None) - self.width = width if width is not None else _v + self['width'] = width if width is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/violin/_selected.py b/plotly/graph_objs/violin/_selected.py index cda456644f6..0a694ade873 100644 --- a/plotly/graph_objs/violin/_selected.py +++ b/plotly/graph_objs/violin/_selected.py @@ -96,7 +96,7 @@ def __init__(self, arg=None, marker=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('marker', None) - self.marker = marker if marker is not None else _v + self['marker'] = marker if marker is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/violin/_stream.py b/plotly/graph_objs/violin/_stream.py index 8fc1a97faf1..3bd751e406e 100644 --- a/plotly/graph_objs/violin/_stream.py +++ b/plotly/graph_objs/violin/_stream.py @@ -122,9 +122,9 @@ def __init__(self, arg=None, maxpoints=None, token=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('maxpoints', None) - self.maxpoints = maxpoints if maxpoints is not None else _v + self['maxpoints'] = maxpoints if maxpoints is not None else _v _v = arg.pop('token', None) - self.token = token if token is not None else _v + self['token'] = token if token is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/violin/_unselected.py b/plotly/graph_objs/violin/_unselected.py index 177b7ff26e9..be8eab3b77f 100644 --- a/plotly/graph_objs/violin/_unselected.py +++ b/plotly/graph_objs/violin/_unselected.py @@ -99,7 +99,7 @@ def __init__(self, arg=None, marker=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('marker', None) - self.marker = marker if marker is not None else _v + self['marker'] = marker if marker is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/violin/box/_line.py b/plotly/graph_objs/violin/box/_line.py index 34c0c61b5ab..a5b242dca43 100644 --- a/plotly/graph_objs/violin/box/_line.py +++ b/plotly/graph_objs/violin/box/_line.py @@ -148,9 +148,9 @@ def __init__(self, arg=None, color=None, width=None, **kwargs): # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('width', None) - self.width = width if width is not None else _v + self['width'] = width if width is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/violin/hoverlabel/_font.py b/plotly/graph_objs/violin/hoverlabel/_font.py index ad1d96b1be1..89e1251dfa9 100644 --- a/plotly/graph_objs/violin/hoverlabel/_font.py +++ b/plotly/graph_objs/violin/hoverlabel/_font.py @@ -294,17 +294,17 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('colorsrc', None) - self.colorsrc = colorsrc if colorsrc is not None else _v + self['colorsrc'] = colorsrc if colorsrc is not None else _v _v = arg.pop('family', None) - self.family = family if family is not None else _v + self['family'] = family if family is not None else _v _v = arg.pop('familysrc', None) - self.familysrc = familysrc if familysrc is not None else _v + self['familysrc'] = familysrc if familysrc is not None else _v _v = arg.pop('size', None) - self.size = size if size is not None else _v + self['size'] = size if size is not None else _v _v = arg.pop('sizesrc', None) - self.sizesrc = sizesrc if sizesrc is not None else _v + self['sizesrc'] = sizesrc if sizesrc is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/violin/marker/_line.py b/plotly/graph_objs/violin/marker/_line.py index 58fa245c8f1..17c45ae8090 100644 --- a/plotly/graph_objs/violin/marker/_line.py +++ b/plotly/graph_objs/violin/marker/_line.py @@ -264,13 +264,13 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('outliercolor', None) - self.outliercolor = outliercolor if outliercolor is not None else _v + self['outliercolor'] = outliercolor if outliercolor is not None else _v _v = arg.pop('outlierwidth', None) - self.outlierwidth = outlierwidth if outlierwidth is not None else _v + self['outlierwidth'] = outlierwidth if outlierwidth is not None else _v _v = arg.pop('width', None) - self.width = width if width is not None else _v + self['width'] = width if width is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/violin/selected/_marker.py b/plotly/graph_objs/violin/selected/_marker.py index 2db88fd723f..471c279f66f 100644 --- a/plotly/graph_objs/violin/selected/_marker.py +++ b/plotly/graph_objs/violin/selected/_marker.py @@ -175,11 +175,11 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('opacity', None) - self.opacity = opacity if opacity is not None else _v + self['opacity'] = opacity if opacity is not None else _v _v = arg.pop('size', None) - self.size = size if size is not None else _v + self['size'] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/graph_objs/violin/unselected/_marker.py b/plotly/graph_objs/violin/unselected/_marker.py index 98262cd1ba9..aae2765544b 100644 --- a/plotly/graph_objs/violin/unselected/_marker.py +++ b/plotly/graph_objs/violin/unselected/_marker.py @@ -185,11 +185,11 @@ def __init__( # Populate data dict with properties # ---------------------------------- _v = arg.pop('color', None) - self.color = color if color is not None else _v + self['color'] = color if color is not None else _v _v = arg.pop('opacity', None) - self.opacity = opacity if opacity is not None else _v + self['opacity'] = opacity if opacity is not None else _v _v = arg.pop('size', None) - self.size = size if size is not None else _v + self['size'] = size if size is not None else _v # Process unknown kwargs # ---------------------- diff --git a/plotly/tests/test_core/test_graph_objs/test_to_ordered_dict.py b/plotly/tests/test_core/test_graph_objs/test_to_ordered_dict.py new file mode 100644 index 00000000000..20593f82392 --- /dev/null +++ b/plotly/tests/test_core/test_graph_objs/test_to_ordered_dict.py @@ -0,0 +1,91 @@ +from __future__ import absolute_import + +from unittest import TestCase +import plotly.graph_objs as go +from collections import OrderedDict + + +class FigureTest(TestCase): + + def test_to_ordered_dict(self): + + fig = go.Figure(layout={'yaxis': {'range': [1, 2]}, + 'xaxis': {'range': [1, 2]}, + 'shapes': [{'xsizemode': 'pixel', + 'type': 'circle'}, + {'type': 'line', + 'xsizemode': 'pixel'}]}, + data=[{'type': 'scatter', + 'marker': {'size': 12, 'color': 'green'}}, + {'type': 'bar', + 'y': [1, 2], + 'x': [1, 2]}]) + + result = fig.to_ordered_dict() + + expected = OrderedDict([('data', [ + OrderedDict([('marker', + OrderedDict([('color', 'green'), ('size', 12)])), + ('type', 'scatter')]), + OrderedDict([('type', 'bar'), + ('x', [1, 2]), + ('y', [1, 2])])]), + ('layout',OrderedDict([ + ('shapes', [ + OrderedDict([ + ('type', 'circle'), + ('xsizemode', 'pixel')]), + OrderedDict([ + ('type', 'line'), + ('xsizemode', 'pixel')])]), + ('xaxis', OrderedDict( + [('range', [1, 2])])), + ('yaxis', OrderedDict( + [('range', [1, 2])])) + ]))]) + + self.assertEqual(result, expected) + + def test_to_ordered_with_frames(self): + frame = go.Frame(layout={'yaxis': {'range': [1, 2]}, + 'xaxis': {'range': [1, 2]}, + 'shapes': [{'xsizemode': 'pixel', + 'type': 'circle'}, + {'type': 'line', + 'xsizemode': 'pixel'}]}, + data=[{'type': 'scatter', + 'marker': {'size': 12, 'color': 'green'}}, + {'type': 'bar', + 'y': [1, 2], + 'x': [1, 2]}]) + + fig = go.Figure(frames=[{}, frame]) + result = fig.to_ordered_dict() + + expected_frame = OrderedDict([('data', [ + OrderedDict([('marker', + OrderedDict([('color', 'green'), ('size', 12)])), + ('type', 'scatter')]), + OrderedDict([('type', 'bar'), + ('x', [1, 2]), + ('y', [1, 2])])]), + ('layout', OrderedDict([ + ('shapes', [ + OrderedDict([ + ('type', 'circle'), + ('xsizemode', 'pixel')]), + OrderedDict([ + ('type', 'line'), + ('xsizemode', 'pixel')])]), + ('xaxis', OrderedDict( + [('range', [1, 2])])), + ('yaxis', OrderedDict( + [('range', [1, 2])])) + ]))]) + + expected = OrderedDict([('data', []), + ('layout', OrderedDict()), + ('frames', [OrderedDict(), + expected_frame])]) + + self.assertEqual(result, expected)