Improved legend update
Merge branch 'develop' into gh-pages