How do I get the current limits of a matplotlib axis?
-
21-12-2019 - |
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=...)
?
Solución
xmin,xmax = ax.get_xlim()
ymin,ymax = ax.get_ylim()
Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow