I want to shift my plot to the right by fixed value , I have npy file contain 7 columns, I plot the histogram for the column number 7 as below:

plt.figure()
plt.hist(x[7],bins=800,color='y',histtype='step',linewidth=2,stacked=True)
plt.show()

I am trying to shift my plot to the right with fix value but I could not find a correct way to do so. Any help I really appreciate it.

Any help please how to shift the plot to the right in the x-axis? I have tried put I did not find the right way to do so?

I solved it

plt.figure()
plt.hist(x[7]+ 1 ,bins=800,color='y',histtype='step',linewidth=2,stacked=True)
plt.show()

thanks for your help.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.