original_docstring: adjust ax2 ylimit so that v2 in ax2 is aligned to v1 in ax1
docstring: adjust ax2 ylimit so that v2 in ax2 is aligned to v1 in ax1
docstring_tokens: adjust ax2 ylimit so that v2 in ax2 is aligned to v1 in ax1
code: def align_yaxis(ax1, v1, ax2, v2):
      """adjust ax2 ylimit so that v2 in ax2 is aligned to v1 in ax1"""
      _, y1 = ax1.transData.transform((0, v1))
      _, y2 = ax2.transData.transform((0, v2))
      adjust_yaxis(ax2,(y1-y2)/2,v2)
      adjust_yaxis(ax1,(y2-y1)/2,v1)
code_tokens: def align_yaxis ( ax1 , v1 , ax2 , v2 ) : _ , y1 = ax1 . transData . transform ( ( 0 , v1 ) ) _ , y2 = ax2 . transData . transform ( ( 0 , v2 ) ) adjust_yaxis ( ax2 , ( y1 - y2 ) / 2 , v2 ) adjust_yaxis ( ax1 , ( y2 - y1 ) / 2 , v1 )
short_docstring: adjust ax2 ylimit so that v2 in ax2 is aligned to v1 in ax1
short_docstring_tokens: adjust ax2 ylimit so that v2 in ax2 is aligned to v1 in ax1
comment: """adjust ax2 ylimit so that v2 in ax2 is aligned to v1 in ax1"""