Still the same set of errors!
It would be great if @etienne can tell us which plotly version he is using!
See the complete Tracebacks for reference :
PlotlyDictKeyError Traceback (most recent call last)
in ()
----> 1 a = OrbitPlotter2D()
2 a.plot(earth, label=“Earth”)
3 a.plot(mars,label=“mars”)
4 a.show()
~/GitHub Clones/poliastro/src/poliastro/plotting.py in init(self)
429 yaxis=dict(
430 title=“y (km)”,
–> 431 scaleanchor=“x”,
432 ),
433 #aspectmode=“data”, # Important!
~/.local/lib/python3.6/site-packages/plotly/graph_objs/graph_objs.py in init(self, *args, **kwargs)
375 d = {key: val for key, val in dict(*args, **kwargs).items()}
376 for key, val in d.items():
–> 377 self.setitem(key, val, _raise=_raise)
378
379 def dir(self):
~/.local/lib/python3.6/site-packages/plotly/graph_objs/graph_objs.py in setitem(self, key, value, _raise)
430
431 if self._get_attribute_role(key) == ‘object’:
–> 432 value = self._value_to_graph_object(key, value, _raise=_raise)
433 if not isinstance(value, (PlotlyDict, PlotlyList)):
434 return
~/.local/lib/python3.6/site-packages/plotly/graph_objs/graph_objs.py in _value_to_graph_object(self, key, value, _raise)
541 # this can be None
when _raise == False
542 return GraphObjectFactory.create(key, value, _raise=_raise,
–> 543 _parent=self, _parent_key=key)
544
545 def help(self, attribute=None, return_help=False):
~/.local/lib/python3.6/site-packages/plotly/graph_objs/graph_objs.py in create(object_name, *args, **kwargs)
797 return PlotlyList(*args, **kwargs)
798 else:
–> 799 return PlotlyDict(*args, **kwargs)
800
801
~/.local/lib/python3.6/site-packages/plotly/graph_objs/graph_objs.py in init(self, *args, **kwargs)
375 d = {key: val for key, val in dict(*args, **kwargs).items()}
376 for key, val in d.items():
–> 377 self.setitem(key, val, _raise=_raise)
378
379 def dir(self):
~/.local/lib/python3.6/site-packages/plotly/graph_objs/graph_objs.py in setitem(self, key, value, _raise)
430
431 if self._get_attribute_role(key) == ‘object’:
–> 432 value = self._value_to_graph_object(key, value, _raise=_raise)
433 if not isinstance(value, (PlotlyDict, PlotlyList)):
434 return
~/.local/lib/python3.6/site-packages/plotly/graph_objs/graph_objs.py in _value_to_graph_object(self, key, value, _raise)
541 # this can be None
when _raise == False
542 return GraphObjectFactory.create(key, value, _raise=_raise,
–> 543 _parent=self, _parent_key=key)
544
545 def help(self, attribute=None, return_help=False):
~/.local/lib/python3.6/site-packages/plotly/graph_objs/graph_objs.py in create(object_name, *args, **kwargs)
797 return PlotlyList(*args, **kwargs)
798 else:
–> 799 return PlotlyDict(*args, **kwargs)
800
801
~/.local/lib/python3.6/site-packages/plotly/graph_objs/graph_objs.py in init(self, *args, **kwargs)
375 d = {key: val for key, val in dict(*args, **kwargs).items()}
376 for key, val in d.items():
–> 377 self.setitem(key, val, _raise=_raise)
378
379 def dir(self):
~/.local/lib/python3.6/site-packages/plotly/graph_objs/graph_objs.py in setitem(self, key, value, _raise)
426 if _raise:
427 path = self._get_path() + (key, )
–> 428 raise exceptions.PlotlyDictKeyError(self, path)
429 return
430
PlotlyDictKeyError: ‘constrain’ is not allowed in ‘xaxis’
Path To Error: [‘scene’][‘xaxis’][‘constrain’]
Valid attributes for ‘xaxis’ at path [‘scene’][‘xaxis’] under parents [‘layout’, ‘scene’]:
['autorange', 'backgroundcolor', 'calendar', 'categoryarray',
'categoryarraysrc', 'categoryorder', 'color', 'dtick',
'exponentformat', 'gridcolor', 'gridwidth', 'hoverformat', 'linecolor',
'linewidth', 'mirror', 'nticks', 'range', 'rangemode',
'separatethousands', 'showaxeslabels', 'showbackground',
'showexponent', 'showgrid', 'showline', 'showspikes', 'showticklabels',
'showtickprefix', 'showticksuffix', 'spikecolor', 'spikesides',
'spikethickness', 'tick0', 'tickangle', 'tickcolor', 'tickfont',
'tickformat', 'tickformatstops', 'ticklen', 'tickmode', 'tickprefix',
'ticks', 'ticksuffix', 'ticktext', 'ticktextsrc', 'tickvals',
'tickvalssrc', 'tickwidth', 'title', 'titlefont', 'type', 'visible',
'zeroline', 'zerolinecolor', 'zerolinewidth']
Run <xaxis-object>.help('attribute')
on any of the above.
‘’ is the object at [‘scene’][‘xaxis’]