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

328 Views Asked by At

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

1

There are 1 best solutions below

0
On

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()