Revert "Revert "Updated getData function in Axis class""

This reverts commit 7a1916553f2726fbd7f02006b5b5ddc62df7457b.