Exemplo n.º 1
0
# APS-U
# Qxmin = 94.85
# Qxmax = 96.15
# Qymin = 35.85
# Qymax = 37.15
#AR
#Qxmin = 16.0-0.05
#Qxmax = 16.5+0.05
#Qymin = 8.0-0.05
#Qymax = 8.5+0.05
#ALS-U AR
Qxmin = 41.0 - 0.05
Qxmax = 42.0 + 0.05
Qymin = 20.0 - 0.05
Qymax = 21.0 + 0.05
pylab.xlim(Qxmin, Qxmax)
pylab.ylim(Qymin, Qymax)
print(Qxmin, Qxmax, Qymin, Qymax)
atp_str = analytic_tune_plane.analyticTunePlane(
    fig, ax, Qxmin, Qxmax, Qymin, Qymax,
    periodicity=periodicity)  #Plot an overlay of an analytic tune plane
additionalItemsToPlot(ax)  #Plot additional items specified at top of this file

#legCro = matplotlib.lines.Line2D([],[],color='blue',marker='o',label='Chromatic Footprint')
#matplotlib.pyplot.legend()

pylab.title('Tune Footprints and Systematic Resonances\nPeriodicity = ' +
            str(periodicity))
#pylab.show()
pylab.savefig('pretty.footprints.eps', format='eps')
              c=metric,
              s=10,
              edgecolors='none',
              cmap='jet')
af1 = AnnoteFinder(Qx, Qy, Annotes, xtol=0.0005, ytol=0.0005, axis=ax_QxQy)
pylab.connect('button_press_event', af1)
pylab.xlabel('Qx')
pylab.ylabel('Qy')
pylab.title('Frequency Map')
pylab.xlim(Qxmin + intx, Qxmax + intx)
pylab.ylim(Qymin + inty, Qymax + inty)
pylab.clim(metricMin, metricMax)
atp_str = analytic_tune_plane.analyticTunePlane(fig,
                                                ax_QxQy,
                                                Qxmin + intx,
                                                Qxmax + intx,
                                                Qymin + inty,
                                                Qymax + inty,
                                                periodicity=periodicity)

#make x-y plot
ax_xy = fig.add_subplot(122)

Zgridded = numpy.ma.masked_where(numpy.isnan(gridded), gridded)
pylab.pcolor(meshx, meshy, Zgridded, cmap='jet')
#print midx
af2 = AnnoteFinder(flatmidx, flatmidy, Annotes, xtol=0.1, ytol=0.1, axis=ax_xy)
pylab.connect('button_press_event', af2)

pylab.colorbar()
pylab.xlabel('x (mm)')