Bugfix/xyaxis broken

Fixes #1010 reported on mailing list.