Adding configurable max ticks for x-axis
Merge pull request #24 from stephenarmstrong/limit-xaxis-ticks

Adding configurable max ticks for x-axis.
merged with master