| 
1 | 1 | from probeinterface import Probe, ProbeGroup  | 
2 | 2 | from probeinterface import generate_dummy_probe, generate_dummy_probe_group  | 
3 |  | -from probeinterface.plotting import plot_probe, plot_probe_group  | 
 | 3 | +from probeinterface.plotting import plot_probe, plot_probegroup  | 
 | 4 | + | 
 | 5 | +# remove once plot_probe_group is removed  | 
 | 6 | +from probeinterface.plotting import plot_probe_group  | 
4 | 7 | 
 
  | 
5 | 8 | import matplotlib.pyplot as plt  | 
6 | 9 | import numpy as np  | 
@@ -29,18 +32,21 @@ def test_plot_probe():  | 
29 | 32 |     plot_probe(probe, show_channel_on_click=True)  | 
30 | 33 | 
 
  | 
31 | 34 | 
 
  | 
32 |  | -def test_plot_probe_group():  | 
 | 35 | +def test_plot_probegroup():  | 
33 | 36 |     probegroup = generate_dummy_probe_group()  | 
34 | 37 | 
 
  | 
35 |  | -    plot_probe_group(probegroup, same_axes=True, with_contact_id=True)  | 
36 |  | -    plot_probe_group(probegroup, same_axes=False)  | 
 | 38 | +    plot_probegroup(probegroup, same_axes=True, with_contact_id=True)  | 
 | 39 | +    plot_probegroup(probegroup, same_axes=False)  | 
 | 40 | + | 
 | 41 | +    # remove when plot_probe_group has been removed  | 
 | 42 | +    plot_probe_group(probegroup)  | 
37 | 43 | 
 
  | 
38 | 44 |     # 3d  | 
39 | 45 |     probegroup_3d = ProbeGroup()  | 
40 | 46 |     for probe in probegroup.probes:  | 
41 | 47 |         probegroup_3d.add_probe(probe.to_3d())  | 
42 | 48 |     probegroup_3d.probes[-1].move([0, 150, -50])  | 
43 |  | -    plot_probe_group(probegroup_3d, same_axes=True)  | 
 | 49 | +    plot_probegroup(probegroup_3d, same_axes=True)  | 
44 | 50 | 
 
  | 
45 | 51 | 
 
  | 
46 | 52 | if __name__ == "__main__":  | 
 | 
0 commit comments