allow varying marker.line.width in 3DScatter plot
Personne n'a encore pris cette issue.
- Langage dominant
- Python
- Étoiles
- 18.8k
- Forks
- 2.8k
- Merge moyen
- 16 h 26 min
- PR mergées (30 j)
- 21
Description
Varying marker.line.width works nicely in go.Scatter, you're able to specify a different outline width for each point:
works
import plotly.graph_objs as go
x = [1,2,3]
y = [1,2,3]
fig = go.Figure(
data=[go.Scatter(x=x, y=y,
mode='markers',
marker=dict(size=30,
color=['rgba(100,0,0,.5)','rgba(0,100,0,.5)','rgba(0,0,100,.5)'],
line=dict(color=['rgb(0,100,0)','rgb(0,0,100)','rgb(100,0,0)'], width=[3,6,9])
),
)])
fig.show()
However in go.Scatter3d this functionally does not work:
import plotly.graph_objs as go
x = [1,2,3]
y = [1,2,3]
z = [1,2,3]
fig = go.Figure(
data=[go.Scatter3d(x=x, y=y,z=z,
mode='markers',
marker=dict(size=30,
color=['rgba(100,0,0,.5)','rgba(0,100,0,.5)','rgba(0,0,100,.5)'],
line=dict(color=['rgb(0,100,0)','rgb(0,0,100)','rgb(100,0,0)'], width=[3,6,9])
),
)])
fig.show()
ValueError:
Invalid value of type 'builtins.list' received for the 'width' property of scatter3d.marker.line
Received value: [3, 6, 9]
The 'width' property is a number and may be specified as:
- An int or float in the interval [0, inf]
This different functionality is actually reflected in the documentation, but additionally, passing a single value to data[type=scatter3d].marker.line.width does not actually change point outline widths; changing [3,6,9] in the above code to 20 or .5 results in the same graph.
It would be great if go.Scatter3d could behave the same as go.Scatter for this.
I'm using plotly 4.6.0 py_0 plotly
installed 05/05/20 using conda install -c plotly plotly
Guide de contribution
Ouvrir le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Piste de recherche
Commencez par l’implémentation de Scatter3d marker.line.width et comparez-la au comportement fonctionnel de Scatter. Exécutez les exemples Python fournis afin de reproduire à la fois l’erreur de validation de la valeur de liste et la valeur scalaire sans effet ; le travail est terminé lorsque les largeurs par point sont acceptées et que les largeurs scalaires modifient visiblement les contours des points.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- python
- Domaine
- data-visualization
- Type d'issue
- Bug
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Activité
- À l'abandon
- Clarté
- Plutôt claire
- Accessibilité débutants
- 35/100