Skip to content
Snippets Groups Projects
Commit 7c60c793 authored by Beerwerth, Randolf's avatar Beerwerth, Randolf
Browse files

Make example Python 2.7 compatible

parent 40f9c83a
No related branches found
No related tags found
No related merge requests found
...@@ -66,8 +66,10 @@ def plot(sim_result_1, sim_result_2): ...@@ -66,8 +66,10 @@ def plot(sim_result_1, sim_result_2):
Plots results from two different simulations Plots results from two different simulations
""" """
plt.semilogy(*get_plot_data(sim_result_1), *get_plot_data(sim_result_2)) x1, y1 = get_plot_data(sim_result_1)
x2, y2 = get_plot_data(sim_result_2)
plt.semilogy(x1, y1, x2, y2)
plt.xlabel(r'$\alpha_i \; (deg)$', fontsize=16) plt.xlabel(r'$\alpha_i \; (deg)$', fontsize=16)
plt.ylabel(r'Intensity', fontsize=16) plt.ylabel(r'Intensity', fontsize=16)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment