<s> import math <EOL> import numpy as np <EOL> import matplotlib . pyplot as plt <EOL> def plot_convergence ( ) : <EOL> data = np . loadtxt ( "<STR_LIT>" ) <EOL> nx = data [ : , <NUM_LIT:0> ] <EOL> errlim = data [ : , <NUM_LIT:1> ] <EOL> ax = plt . subplot ( <NUM_LIT> ) <EOL> ax . set_xscale ( '<STR_LIT>' ) <EOL> ax . set_yscale ( '<STR_LIT>' ) <EOL> plt . scatter ( nx , errlim , marker = "<STR_LIT:x>" , color = "<STR_LIT:r>" , label = "<STR_LIT>" ) <EOL> plt . plot ( nx , errlim [ <NUM_LIT:0> ] * ( nx [ <NUM_LIT:0> ] / nx ) ** <NUM_LIT:2> , "<STR_LIT>" , color = "<STR_LIT:k>" ) <EOL> plt . xlabel ( "<STR_LIT>" ) <EOL> plt . ylabel ( "<STR_LIT>" ) <EOL> plt . title ( r"<STR_LIT>" , fontsize = <NUM_LIT:11> ) <EOL> f = plt . gcf ( ) <EOL> f . set_size_inches ( <NUM_LIT> , <NUM_LIT> ) <EOL> plt . xlim ( <NUM_LIT:16> , <NUM_LIT> ) <EOL> plt . ylim ( <NUM_LIT> , <NUM_LIT> ) <EOL> plt . savefig ( "<STR_LIT>" , bbox_inches = "<STR_LIT>" ) <EOL> plt . savefig ( "<STR_LIT>" , bbox_inches = "<STR_LIT>" ) <EOL> if __name__ == "<STR_LIT:__main__>" : <EOL> plot_convergence ( ) </s>
