Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
fixes graphic constructor
  • Loading branch information
apasarkar committed Apr 16, 2026
commit 903acb566102abe75a715865701471225e6738f5
4 changes: 2 additions & 2 deletions fastplotlib/widgets/nd_widget/_nd_vectors.py
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ def graphic(
return self._graphic

@start_coroutine
def _create_graphic(self, **kwargs):
def _create_graphic(self):
# Creates an ``ImageGraphic`` or ``ImageVolumeGraphic`` based on the number of spatial dims,
# adds it to the subplot, and resets the camera and histogram.

Expand All @@ -299,7 +299,7 @@ def _create_graphic(self, **kwargs):
self._subplot.delete_graphic(old_graphic)

# create the new graphic
self._graphic = self._subplot.add_vectors(
self._graphic = VectorsGraphic(
positions=data_slice[:, 0],
directions=data_slice[:, 1],
**self._graphic_kwargs
Expand Down