diff --git a/Examples/python/simulation/ex05_BeamAndDetector/RectangularDetector.py b/Examples/python/simulation/ex05_BeamAndDetector/RectangularDetector.py index 431e13e7817d1afd6aea5c8f843d8ecdc1508c93..975f29e103e26eef223f311b7ea23cb4689d4641 100644 --- a/Examples/python/simulation/ex05_BeamAndDetector/RectangularDetector.py +++ b/Examples/python/simulation/ex05_BeamAndDetector/RectangularDetector.py @@ -86,12 +86,12 @@ def plot(results): plt.subplot(1, 3, 1) ba.plot_colormap(results['spherical'], title="Spherical detector", xlabel=r'$\phi_f ^{\circ}$', ylabel=r'$\alpha_f ^{\circ}$', - zlabel=None) + zlabel="") # showing result of rectangular detector simulation plt.subplot(1, 3, 2) ba.plot_colormap(results['rectangular'], title="Rectangular detector", - xlabel='X, mm', ylabel='Y, mm', zlabel=None) + xlabel='X, mm', ylabel='Y, mm', zlabel="") # show relative difference between two plots (sph[i]-rect[i])/rect[i] # for every detector pixel @@ -105,7 +105,8 @@ def plot(results): plt.ylabel('Y, bins', fontsize=14) plt.title("Relative difference") - plt.subplots_adjust(left=0.05, right=0.95, top=0.88, bottom=0.12) + plt.subplots_adjust(left=0.05, right=0.92, top=0.88, bottom=0.12) + plt.tight_layout() plt.show()