simplify
fixed axis detection code

an axis name containing \ is considered to be the last, instead of taking "all non strings" (which break for string ticks like "2001Q1")
added comments for what needs to be done