I am getting a TypeError like this for the following code.
TypeError: ufunc 'isfinite' not supported for the input types, and the inputs could not be safely coerced to any supported types according to the casting rule ''safe''
import numpy as np
import matplotlib.pyplot as plt
import math
plt.axis([1,5000,100,10**20])
plt.xscale('log')
plt.yscale('log')
plt.savefig('test.png')
plt.close()
When I set the maximum value for y-axis as 10^19, there is no error. But from 10^20, I start getting the TypeError described above.
Could you help me understand this error and set the y-axis range from 1 to 10^20?