How to set the ticks of a plot in python?



I am currently studying about plotting in Ipython notebook .I have plot one figure using function ax.plotbut in figure I get the xticks randomly .I want to know how to set the xticks of a plot in Ipython notebook.


Here the xticks at [0,200,400,600,800,1000].Iwant to set the ticks at [0,250,500,750,1000]


@sid100158 - You can use the function set_xticks for creating the ticks in X axis.

for this problem

ax.set_xticks([0, 250, 500, 750, 1000])

Hope this helps!