0

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.

Edited by Reverend Jim: Moved to programming forum

1
Contributor
2
Replies
15
Views
2 Weeks
Discussion Span
Last Post by ALosh99
0

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?

Edited by ALosh99

0

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.

Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.