Python Forum

Full Version: Complex X Tick Interval
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi all

I was hoping someone could help me solve an issue regarding setting the x tick interval for a plot.

I have a very large data set, the x values are obtained from combining miles and yards columns to give me a single value distance value.

I then use this distance value as my x data and use Temp and Soil moisture as my Y data to plot against.

I am trying to make set the x tick interval so that the first tick is always the first value in my data set in this case 187/437.4.

The tick intervals is always 100 yards apart so the next tick would be at at 187/500 and thereafter it would be 100 yards after that.

I am not sure how I can implement this and could really use your help.

I have attached a screen shot of my data and how i would like the x ticks to look like on a set of axis.

Any help would be greatly appreciated.

Thank you.