Skip to content

Commit

Permalink
Add intersphinx links for matplotlib Figure to visualization docs (#1…
Browse files Browse the repository at this point in the history
…0389)

* Add intersphinx links for matplotlib.Figure to visualization docs

Signed-off-by: Paul S. Schweigert <paul@paulschweigert.com>

* lint

Signed-off-by: Paul S. Schweigert <paul@paulschweigert.com>

---------

Signed-off-by: Paul S. Schweigert <paul@paulschweigert.com>
  • Loading branch information
psschwei committed Jul 7, 2023
1 parent 534a7f0 commit a945502
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
1 change: 1 addition & 0 deletions docs/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@
"qiskit-ibm-runtime": ("https://qiskit.org/ecosystem/ibm-runtime/", None),
"qiskit-aer": ("https://qiskit.org/ecosystem/aer/", None),
"numpy": ("https://numpy.org/doc/stable/", None),
"matplotlib": ("https://matplotlib.org/stable/", None),
}

# -- Options for HTML output -------------------------------------------------
Expand Down
13 changes: 7 additions & 6 deletions qiskit/visualization/state_visualization.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def plot_state_hinton(
it is redundant.
Returns:
matplotlib.Figure:
:class:`matplotlib:matplotlib.figure.Figure` :
The matplotlib.Figure of the visualization if
neither ax_real or ax_imag is set.
Expand Down Expand Up @@ -209,7 +209,7 @@ def plot_bloch_vector(
font_size (float): Font size.
Returns:
Figure: A matplotlib figure instance if ``ax = None``.
:class:`matplotlib:matplotlib.figure.Figure` : A matplotlib figure instance if ``ax = None``.
Raises:
MissingOptionalLibraryError: Requires matplotlib.
Expand Down Expand Up @@ -285,7 +285,7 @@ def plot_bloch_multivector(
title_pad (float): Padding for the title (suptitle `y` position is `y=1+title_pad/100`).
Returns:
matplotlib.Figure:
:class:`matplotlib:matplotlib.figure.Figure` :
A matplotlib figure instance.
Raises:
Expand Down Expand Up @@ -401,7 +401,7 @@ def plot_state_city(
it is redundant.
Returns:
matplotlib.Figure:
:class:`matplotlib:matplotlib.figure.Figure` :
The matplotlib.Figure of the visualization if the
``ax_real`` and ``ax_imag`` kwargs are not set
Expand Down Expand Up @@ -643,7 +643,7 @@ def plot_state_paulivec(
will be no returned Figure since it is redundant.
Returns:
matplotlib.Figure:
:class:`matplotlib:matplotlib.figure.Figure` :
The matplotlib.Figure of the visualization if the
``ax`` kwarg is not set
Expand Down Expand Up @@ -823,7 +823,8 @@ def plot_state_qsphere(
radians or degrees for the phase values in the plot.
Returns:
Figure: A matplotlib figure instance if the ``ax`` kwarg is not set
:class:`matplotlib:matplotlib.figure.Figure` :
A matplotlib figure instance if the ``ax`` kwarg is not set
Raises:
MissingOptionalLibraryError: Requires matplotlib.
Expand Down

0 comments on commit a945502

Please sign in to comment.