Merge pull request #776 from marecabo/fix-plotly-defaults

Fix plotly defaults
This commit is contained in:
Zhenwen Dai 2019-10-16 15:05:02 +01:00 committed by GitHub
commit 92d4828d99
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View file

@ -44,7 +44,7 @@ it gives back an empty default, when defaults are not defined.
# Data plots:
data_1d = dict(marker_kwargs=dict(), marker='x', color='black')
data_2d = dict(marker='o', cmap='Hot', marker_kwargs=dict(opacity=1., size='5', line=Line(width=.5, color='black')))
data_2d = dict(marker='o', cmap='Hot', marker_kwargs=dict(opacity=1., size=5, line=Line(width=.5, color='black')))
inducing_1d = dict(color=Tango.colorsHex['darkRed'])
inducing_2d = dict(marker_kwargs=dict(size='5', opacity=.7, line=Line(width=.5, color='black')), opacity=.7, color='white', marker='star-triangle-up')
inducing_3d = dict(marker_kwargs=dict(symbol='diamond', size='5', opacity=.7, line=Line(width=.1, color='black')), color='#F5F5F5')

View file

@ -39,7 +39,7 @@ from plotly.graph_objs import Scatter, Scatter3d, Line,\
from plotly.exceptions import PlotlyDictKeyError
SYMBOL_MAP = {
'o': 'dot',
'o': 'circle-dot',
'v': 'triangle-down',
'^': 'triangle-up',
'<': 'triangle-left',
@ -47,7 +47,7 @@ SYMBOL_MAP = {
's': 'square',
'+': 'cross',
'x': 'x',
'*': 'x', # no star yet in plotly!!
'*': 'star',
'D': 'diamond',
'd': 'diamond',
}