plotly / plotly/plotly.R

Contour not shown correctly in 3D Tri-Surf Plots

Offen
#1,829 0 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Vorherrschende Sprache
R
Sterne
2.7k
Forks
641
PR-Merge-Kennzahlen
Keine gemergten PRs in 30 T.

Beschreibung


When plotting the 3D tri-surf figure, if we don't specify the facecolor of the plot, the contour will work well.
However, if we specify the faceolor of each faces, the contour will be stuck in the middle can't move and the coordinate
of each vertex also doesn't show its correct x,y,z.
The examples in the tutorials also have this problem.
Not sure if there have other way to specifiy the facecolor without making these issues.
Thank you very much for your help!

fig <- plot_ly(type = 'mesh3d',
  x = c(0, 1, 2, 0),
  y = c(0, 0, 1, 2),
  z = c(0, 2, 0, 1),
  i = c(0, 0, 0, 1),
  j = c(1, 2, 3, 2),
  k = c(2, 3, 1, 3),
  opacity = 0.5,
  contour = list(show = TRUE, color="#000", width=15)
  #facecolor = toRGB(viridisLite::viridis(4))
)
fig
fig <- plot_ly(type = 'mesh3d',
  x = c(0, 1, 2, 0),
  y = c(0, 0, 1, 2),
  z = c(0, 2, 0, 1),
  i = c(0, 0, 0, 1),
  j = c(1, 2, 3, 2),
  k = c(2, 3, 1, 3),
  opacity = 0.5,
  contour = list(show = TRUE, color="#000", width=15),
  facecolor = toRGB(viridisLite::viridis(4))
)
fig

Beitragsleitfaden

Beitragsleitfaden öffnen

Erste Schritte

  1. Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
  3. Forke das Repository und arbeite in einem Branch.
  4. Öffne einen Pull Request, der die Issue-Nummer nennt.

Rechercherichtung

Beginne damit, die beiden bereitgestellten R plot_ly mesh3d-Beispiele aus dem Issue auszuführen, und vergleiche die Konturbewegung und Vertex-Koordinaten mit und ohne facecolor. Verfolge den 3D-tri-surf-Renderingpfad, um den Unterschied zu identifizieren, und betrachte das Issue als abgeschlossen, wenn facecolor keine falsche Positionierung der Kontur oder falsche Koordinaten mehr verursacht.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
r
Bereich
data-visualization
Issue-Typ
Bug
Schwierigkeit
3/5
Geschätzter Aufwand
1-2 Tage
Aktivitätsstatus
Veraltet
Klarheit
Größtenteils klar
Anfängerfreundlichkeit
45/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.