Pregunta

Given a matplotlib axis, how do I find its current min and max limits; e.g., as might have been previously set in ax.set(xscale='log', xlim=...)?

¿Fue útil?

Solución

xmin,xmax = ax.get_xlim()

ymin,ymax = ax.get_ylim()

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top