Update _barh.py

Bug fixes and legend support.