Skip to content

Commit cab6857

Browse files
committed
Update to use Sam's probeinterface refactoring suggestion
1 parent aa4c792 commit cab6857

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/spikeinterface/widgets/unit_waveforms.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -383,11 +383,11 @@ def plot_matplotlib(self, data_plot, **backend_kwargs):
383383

384384
# plot channels
385385
if dp.plot_channels:
386-
from probeinterface.plotting import plot_probe
386+
from probeinterface.plotting import create_probe_polygons
387387

388388
probe = dp.sorting_analyzer_or_templates.get_probe()
389-
poly, poly_contour = plot_probe(probe, contacts_colors="w", add_to_axis=False)
390-
ax.add_collection(poly)
389+
contacts, probe_outline = create_probe_polygons(probe, contacts_colors="w")
390+
ax.add_collection(contacts)
391391

392392
# Apply axis_equal setting
393393
if dp.axis_equal:

0 commit comments

Comments
 (0)