SpikeInterface/probeinterface

plot_probe() requires xlims and ylims to be defined for either to work

Opened this issue · 1 comments

if xlims is None or ylims is None or (zlims is None and probe.ndim == 3):
xlims, ylims, zlims = get_auto_lims(probe)

It's unclear that both xlims and ylims are both needed for plotting to be limited in either of these dimensions individually. Perhaps this is unintended consequence, and we should be able to set an automatic limit for the non-specified direction if only one were specified.

Thanks @D1o0g9s

I agree it should be allowed to just pass lims in one axis. Note that you can always generate an external ax and pass it to the plot_probe. Then you can set lims for x and y axis as you will ;)