Commit 96da9418 authored by OP's avatar OP
Browse files

cosmetic, compliant (?) with cc backend

parent 84320006
......@@ -88,7 +88,7 @@ def viewtfmap(folder,num,mvmin=0.,mvmax=0.,save=False, raplot=False,timeplot=F
if (not noplo) :
im = ax1.imshow(img,aspect='auto' ,extent=(timin,timax,frmax,frmin), interpolation='none',vmin=vmin,vmax=vmax)
if (yrcm) :
im.set_cmap('YlOrBr')
im.set_cmap('YlOrBr_r')
cbar = plt.colorbar( im ) #,fraction=0.021,pad=.05)
cbar.set_norm(mynorm.MyNormalize(vmin=vmin,vmax=vmax,stretch='linear'))
cm_cycle = sorted([i for i in dir(plt.cm) if hasattr(getattr(plt.cm,i),'N')])
......@@ -121,10 +121,10 @@ def viewtfmap(folder,num,mvmin=0.,mvmax=0.,save=False, raplot=False,timeplot=F
plt.savefig(filename+"_"+ names[num]+"_rawTFM.png")
axcolor = 'lightgoldenrodyellow'
axmin = fig.add_axes([0.075, 0.05, 0.35, 0.03], axisbg = axcolor )
axmax = fig.add_axes([0.075, 0.02, 0.35, 0.03], axisbg = axcolor)
# axrange = fig.add_axes([0.6, 0.05, 0.35, 0.03], axisbg = axcolor)
# axcent = fig.add_axes([0.6, 0.02, 0.35, 0.03], axisbg = axcolor)
axmin = fig.add_axes([0.075, 0.05, 0.35, 0.03], facecolor = axcolor )
axmax = fig.add_axes([0.075, 0.02, 0.35, 0.03], facecolor = axcolor)
# axrange = fig.add_axes([0.6, 0.05, 0.35, 0.03], facecolor = axcolor)
# axcent = fig.add_axes([0.6, 0.02, 0.35, 0.03], facecolor = axcolor)
smin = Slider(axmin, 'Min', vmin,vmax, valinit=vmin)
smax = Slider(axmax, 'Max', vmin,vmax, valinit=vmax)
......@@ -181,7 +181,7 @@ def viewtfmap(folder,num,mvmin=0.,mvmax=0.,save=False, raplot=False,timeplot=F
cm_index = cm_index-1
if cm_index < 0 :
cm_index=len(cm_cycle)
cm_index=len(cm_cycle)-1
change_cm(cm_index)
#print cm_index
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment