Rich_S
January 5th, 2013, 10:24 PM
I'm working my way through the examples in the O'Reilly Python Data Analysis book.
The following code snippet is giving me an issue:
tz_counts[:10].plot(kind='barh', rot=0)
plt.show()
On Ubuntu 12.04, it displays a blank plot (axes are there but no data series). If I change the 'barh' to 'bar', it displays a regular bar chart correctly.
On WIndows 7, it works just fine.
I have tried a few different backends in matplotlibrc and have also tried having the code save to a file instead of displaying, with plt.savefig('figpath.svg') - I tried png as a format as well.
Same result every time - bar works fine, barh displays an empty plot.
Any ideas?
The following code snippet is giving me an issue:
tz_counts[:10].plot(kind='barh', rot=0)
plt.show()
On Ubuntu 12.04, it displays a blank plot (axes are there but no data series). If I change the 'barh' to 'bar', it displays a regular bar chart correctly.
On WIndows 7, it works just fine.
I have tried a few different backends in matplotlibrc and have also tried having the code save to a file instead of displaying, with plt.savefig('figpath.svg') - I tried png as a format as well.
Same result every time - bar works fine, barh displays an empty plot.
Any ideas?