pulse2percept.viz.argus¶
plot_argus_phosphenes
, plot_argus_simulated_phosphenes
Functions
plot_argus_phosphenes (data[, argus, scale, …]) |
Plots phosphenes centered over the corresponding electrodes |
plot_argus_simulated_phosphenes (percepts, argus) |
Plots simulated phosphenes centered over the corresponding electrodes |
-
pulse2percept.viz.argus.
plot_argus_phosphenes
(data, argus=None, scale=1.0, axon_map=None, show_fovea=True, ax=None)[source]¶ Plots phosphenes centered over the corresponding electrodes
New in version 0.7.
Parameters: - data (pd.DataFrame) – The Beyeler2019 dataset, a subset thereof, or a DataFrame with identical organization (i.e., must contain columns ‘subject’, ‘image’, ‘xrange’, and ‘yrange’).
- argus (
ArgusI
orArgusII
) – Either an Argus I or Argus II implant. If None, the data is expected to contain additional columns: “implant_type_str”, “implant_x”, “implant_y”, and “implant_rot”, which together define the type and position of the implant. “implant_type_str” must be either “ArgusI” or “ArgusII”. - scale (float) – Scaling factor to apply to the phosphenes
- axon_map (
AxonMapModel
) – An instance of the axon map model to use for visualization. - show_fovea (bool) – Whether to indicate the location of the fovea with a square
- ax (axis) – Matplotlib axis
-
pulse2percept.viz.argus.
plot_argus_simulated_phosphenes
(percepts, argus, scale=1.0, axon_map=None, show_fovea=True, ax=None)[source]¶ Plots simulated phosphenes centered over the corresponding electrodes
New in version 0.7.
Parameters: - percepts (
Percept
) – A Percept object containing multiple frames, where each frame is the percept produced by activating a single electrode. - argus (
ArgusI
orArgusII
) – Either an Argus I or Argus II implant - scale (float) – Scaling factor to apply to the phosphenes
- axon_map (
AxonMapModel
) – An instance of the axon map model to use for visualization. - show_fovea (bool) – Whether to indicate the location of the fovea with a square
- ax (axis) – Matplotlib axis
- percepts (