Adil B
Adil B

Reputation: 16778

How do I display a matplotlib plot in the console in Foundry Code Workbook?

What is the best way of displaying a matplotlib plot in the console within Foundry Code Workbook?

Upvotes: 0

Views: 375

Answers (1)

Andrew St P
Andrew St P

Reputation: 584

To display a matplotlib plot in the console in code workbook, you need to run the command to create the plot and show the plot in the same command. You can attempt this using the example below:

>>> import matplotlib.pyplot as plt
... plt.scatter([1,2,3,4], [1,2,3,4])
... plt.show()

Upvotes: 1

Related Questions