def show_plot(grid,excursi): excursi.reshape(flex.grid(grid, grid)) from matplotlib import pyplot as plt plt.figure() CS = plt.contour([i*0.2 for i in range(grid)],[i*0.2 for i in range(grid)], excursi.as_numpy_array()) plt.clabel(CS, inline=1, fontsize=10, fmt="%6.3f") plt.title("Score as to beam likelihood") plt.scatter([0.1*(grid-1)],[0.1*(grid-1)],color='g',marker='o') plt.scatter([0.1*(grid-1)+0.2*MIN.x[0]] , [0.1*(grid-1)+0.2*MIN.x[1]],color='r',marker='*') plt.axes().set_aspect("equal") plt.show()
def show_plot(grid,excursi): excursi.reshape(flex.grid(grid, grid)) from matplotlib import pyplot as plt plt.figure() CS = plt.contour([i*0.2 for i in xrange(grid)],[i*0.2 for i in xrange(grid)], excursi.as_numpy_array()) plt.clabel(CS, inline=1, fontsize=10, fmt="%6.3f") plt.title("Score as to beam likelihood") plt.scatter([0.1*(grid-1)],[0.1*(grid-1)],color='g',marker='o') plt.scatter([0.1*(grid-1)+0.2*MIN.x[0]] , [0.1*(grid-1)+0.2*MIN.x[1]],color='r',marker='*') plt.axes().set_aspect("equal") plt.show()
def show_plot(widegrid,excursi): excursi.reshape(flex.grid(widegrid, widegrid)) def igrid(x): return x - (widegrid//2) from matplotlib import pyplot as plt plt.figure() CS = plt.contour([igrid(i)*plot_px_sz for i in range(widegrid)], [igrid(i)*plot_px_sz for i in range(widegrid)], excursi.as_numpy_array()) plt.clabel(CS, inline=1, fontsize=10, fmt="%6.3f") plt.title("Wide scope search for detector origin offset") plt.scatter([0.0],[0.0],color='g',marker='o') plt.scatter([0.2*MIN.x[0]] , [0.2*MIN.x[1]],color='r',marker='*') plt.axes().set_aspect("equal") plt.xlabel("offset (mm) along beamr1 vector") plt.ylabel("offset (mm) along beamr2 vector") plt.show()
def show_plot(widegrid,excursi): excursi.reshape(flex.grid(widegrid, widegrid)) def igrid(x): return x - (widegrid//2) from matplotlib import pyplot as plt plt.figure() CS = plt.contour([igrid(i)*plot_px_sz for i in xrange(widegrid)], [igrid(i)*plot_px_sz for i in xrange(widegrid)], excursi.as_numpy_array()) plt.clabel(CS, inline=1, fontsize=10, fmt="%6.3f") plt.title("Wide scope search for detector origin offset") plt.scatter([0.0],[0.0],color='g',marker='o') plt.scatter([0.2*MIN.x[0]] , [0.2*MIN.x[1]],color='r',marker='*') plt.axes().set_aspect("equal") plt.xlabel("offset (mm) along beamr1 vector") plt.ylabel("offset (mm) along beamr2 vector") plt.show()