1

My x axis are x =[0.0001,0.001,0.01,0.1,1] When I create a graph it looks like this enter image description here

I want to make a graph that ignores the scale in x-axis and puts the points equidistance from one another

1 Answer 1

1

Plot with semilogx function to set log scale of x axis:

import matplotlib.pyplot as plt
import numpy as np

x =np.array([0.0001,0.001,0.01,0.1,1.])
plt.semilogx(x, np.sin(x*x))
plt.grid(True)

plt.show()

In common case to put the points equidistance from one another you have to reorganize your data because you may change labels of axis ticks but not points value.

enter image description here

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.