Skip to content

Commit d018733

Browse files
committed
fix: remove aux nodes, remove scatter3d
1 parent ef6b310 commit d018733

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/pynite_plotly/rendering.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -579,7 +579,7 @@ def plot_node(self, node, color=None):
579579
direction=(0, 0, -1),
580580
height=self.annotation_size * 0.6,
581581
radius=self.annotation_size * 0.3,
582-
color=self.colors["node"],
582+
color=self.colors["node"]
583583
))
584584

585585
)
@@ -1702,8 +1702,10 @@ def add_point_labels(
17021702
if render_points_as_spheres:
17031703
...
17041704
self.plotter.add_trace(
1705-
go.Scatter3d(
1706-
x=[x], y=[y], z=[z], marker=dict(color=point_color, size=self.annotation_size/30)
1705+
prims.sphere(
1706+
size=self.annotation_size/60,
1707+
center=(x, y, z),
1708+
color=point_color
17071709
)
17081710
)
17091711
# print(f"Annotation: {text_label=} | {point=}")

0 commit comments

Comments
 (0)