fixed a problem indexing the axis array when processing plot callbacks