0

I'm using matplotlib, pyplot to draw some functions with plot.

I need y axis to be between (0.0001,0.1) and x axis to be between (100,10000), so I'm using axis([100, 10000, 0.0001, 0.1]).

But this does not work with my defined values.

I try:

plt.plot((100,10000),(0.0001,0.1))
plt.axis([100, 10000, 0.0001, 0.1]) 
plt.show()

and I get:

result of plot

tmdavison
  • 64,360
  • 12
  • 187
  • 165
Mike887
  • 1
  • 1
  • are you trying to use a logarithmic axis? You would need to `plt.xscale('log')` and `plt.yscale('log')` to do that. Or alternatively use `plt.loglog` instead of `plt.plot`. – tmdavison Dec 03 '22 at 11:06

0 Answers0