def __scale_axes(axes, ax_type, which):
kwargs = dict()<EOL>if which == '<STR_LIT:x>':<EOL><INDENT>thresh = '<STR_LIT>'<EOL>base = '<STR_LIT>'<EOL>scale = '<STR_LIT>'<EOL>scaler = axes.set_xscale<EOL>limit = axes.set_xlim<EOL><DEDENT>else:<EOL><INDENT>thresh = '<STR_LIT>'<EOL>base = '<STR_LIT>'<EOL>scale = '<STR_LIT>'<EOL>scaler = axes.set_yscale<EOL>limit = axes.set_ylim<EOL><DEDENT>if ax_type == '<STR_LIT>':<EOL><INDENT>mode = '<STR_LIT>'<EOL>kwargs[thresh] = <NUM_LIT><EOL>kwargs[base] = <NUM_LIT:2><EOL><DEDENT>elif ax_type == '<STR_LIT>':<EOL><INDENT>mode = '<STR_LIT>'<EOL>kwargs[base] = <NUM_LIT:2><EOL>kwargs[thresh] = core.note_to_hz('<STR_LIT>')<EOL>kwargs[scale] = <NUM_LIT:0.5><EOL><DEDENT>elif ax_type in ['<STR_LIT>', '<STR_LIT>', '<STR_LIT>']:<EOL><INDENT>mode = '<STR_LIT>'<EOL>kwargs[base] = <NUM_LIT:2><EOL><DEDENT>elif ax_type == '<STR_LIT>':<EOL><INDENT>mode = '<STR_LIT>'<EOL>kwargs[base] = <NUM_LIT:2><EOL>limit(<NUM_LIT:16>, <NUM_LIT>)<EOL><DEDENT>else:<EOL><INDENT>return<EOL><DEDENT>scaler(mode, **kwargs)<EOL>
Set the axis scaling