I use gprof2dot.py. The result looks like this. I use those commands:
python -m cProfile -o profile.dat my_program.py
gprof2dot.py -f pstats profile.dat | dot -Tpng -o profile.png
You need graphviz and gprof2dot.py installed. You might like a convenience shell script.