I’ve been playing around with some of the matplotlib demos recently and discovered that simply copying one of the examples didn’t actually work for me.
I was following the bar chart example and had the following code:
When I execute this script from the command line it just hangs and I don’t see anything at all.
If I run this script a Python window pops up and contains the following image which is what I expected to happen in the first place!
The thing to notice is that we’ve had to change the backend in order to use matplotlib from the shell:
With the TkAgg backend, which uses the Tkinter user interface toolkit, you can use matplotlib from an arbitrary non-gui python shell.
Current state: Wishing for ggplot!