added code to generate horizontal axes