This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import matplotlib as mpl | |
def draw_loglog_slope(fig, ax, origin, width_inches, slope, inverted=False, color=None, polygon_kwargs=None, label=True, labelcolor=None, label_kwargs=None, zorder=None): | |
""" | |
This function draws slopes or "convergence triangles" into loglog plots. | |
@param fig: The figure | |
@param ax: The axes object to draw to | |
@param origin: The 2D origin (usually lower-left corner) coordinate of the triangle | |
@param width_inches: The width in inches of the triangle |