Reputation: 16856
What is the best way of displaying a matplotlib plot in the console within Foundry Code Workbook?
Upvotes: 0
Views: 378
Reputation: 594
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