Cómo establecer 'auto' para el límite superior, pero mantenga un límite inferior fijo con matplotlib.pyplot
Quiero establecer el límite superior del eje y en 'automático', pero quiero mantener el límite inferior del eje y para que siempre sea cero. Intenté 'auto' y 'autorange', pero esos no parecen funcionar. Gracias de antemano.
Aquí está mi código:
import matplotlib.pyplot as plt
def plot(results_plt,title,filename):
############################
# Plot results
# mirror result table such that each parameter forms an own data array
plt.cla()
#print results_plt
XY_results = []
XY_results = zip( *results_plt)
plt.plot(XY_results[0], XY_results[2], marker = ".")
plt.title('%s' % (title) )
plt.xlabel('Input Voltage [V]')
plt.ylabel('Input Current [mA]')
plt.grid(True)
plt.xlim(3.0, 4.2) #***I want to keep these values fixed"
plt.ylim([0, 80]) #****CHANGE**** I want to change '80' to auto, but still keep 0 as the lower limit
plt.savefig(path+filename+'.png')