matplotlib2.0.0b4 compatibility fix (#5181)
matplotlib2.0.0b4 compatibility fix (#5181)

* matplotlib2.0.0b4 compatibility fix

* avoid use of LooseVersion

* simplify further by using hasttr method

jakirkham/bokeh,stonebig/bokeh,draperjames/bokeh,draperjames/bokeh,azjps/bokeh,draperjames/bokeh,stonebig/bokeh,Karel-van-de-Plassche/bokeh,stonebig/bokeh,rs2/bokeh,aiguofer/bokeh,dennisobrien/bokeh,schoolie/bokeh,dennisobrien/bokeh,mindriot101/bokeh,jakirkham/bokeh,Karel-van-de-Plassche/bokeh,schoolie/bokeh,aavanian/bokeh,dennisobrien/bokeh,bokeh/bokeh,azjps/bokeh,aiguofer/bokeh,draperjames/bokeh,bokeh/bokeh,aiguofer/bokeh,schoolie/bokeh,aavanian/bokeh,timsnyder/bokeh,ericmjl/bokeh,Karel-van-de-Plassche/bokeh,ericmjl/bokeh,jakirkham/bokeh,percyfal/bokeh,philippjfr/bokeh,dennisobrien/bokeh,mindriot101/bokeh,DuCorey/bokeh,philippjfr/bokeh,timsnyder/bokeh,azjps/bokeh,aavanian/bokeh,ericmjl/bokeh,stonebig/bokeh,philippjfr/bokeh,rs2/bokeh,rs2/bokeh,jakirkham/bokeh,ericmjl/bokeh,mindriot101/bokeh,philippjfr/bokeh,percyfal/bokeh,ericmjl/bokeh,rs2/bokeh,timsnyder/bokeh,schoolie/bokeh,aiguofer/bokeh,bokeh/bokeh,timsnyder/bokeh,jakirkham/bokeh,Karel-van-de-Plassche/bokeh,DuCorey/bokeh,bokeh/bokeh,azjps/bokeh,DuCorey/bokeh,azjps/bokeh,Karel-van-de-Plassche/bokeh,aiguofer/bokeh,draperjames/bokeh,DuCorey/bokeh,percyfal/bokeh,percyfal/bokeh,philippjfr/bokeh,schoolie/bokeh,percyfal/bokeh,timsnyder/bokeh,rs2/bokeh,mindriot101/bokeh,aavanian/bokeh,DuCorey/bokeh,aavanian/bokeh,bokeh/bokeh,dennisobrien/bokeh