Skip to content

Missing import matplotlib.pyplot as plt line #4437

@rturrado

Description

@rturrado

URL to the relevant course

Section 3. Visualize your results of Quickstart page: https://quantum.cloud.ibm.com/docs/en/guides/quick-start#3-visualize-your-results

Select all that apply

  • new content request
  • typo
  • code bug
  • out-of-date content
  • broken link
  • other

Describe the fix or the content request.

Where it is said:

from qiskit.visualization import plot_histogram
 
counts = result[0].data.meas.get_counts()
plot_histogram(counts)
 
# Include the next line if you are not using Python in a Jupyter notebook
# plt.show()

It should better be said:

# Include the two commented-out lines if you are not using Python in a Jupyter notebook
# import matplotlib.pyplot as plt
from qiskit.visualization import plot_histogram
 
counts = result[0].data.meas.get_counts()
plot_histogram(counts)
 
# plt.show()

For new content requests - if the request is accepted, do you want to write the content?

I will write (or already have written) a draft of the proposed content

Metadata

Metadata

Type

No type

Projects

Status

No status

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions