def show_G_distribution(data):
Xs, t = fitting.preprocess_data(data)  <EOL>Theta, Phi = np.meshgrid(np.linspace(<NUM_LIT:0>, np.pi, <NUM_LIT:50>), np.linspace(<NUM_LIT:0>, <NUM_LIT:2> * np.pi, <NUM_LIT:50>))<EOL>G = []<EOL>for i in range(len(Theta)):<EOL><INDENT>G.append([])<EOL>for j in range(len(Theta[i])):<EOL><INDENT>w = fitting.direction(Theta[i][j], Phi[i][j])<EOL>G[-<NUM_LIT:1>].append(fitting.G(w, Xs))<EOL><DEDENT><DEDENT>plt.imshow(G, extent=[<NUM_LIT:0>, np.pi, <NUM_LIT:0>, <NUM_LIT:2> * np.pi], origin='<STR_LIT>')<EOL>plt.show()<EOL>
Show the distribution of the G function.