Commit bc4df3fae5598d0528ac9cdf63505e8eb3018e0a

Authored by Paul Nicot
1 parent c0cb8ae6
Exists in master and in 2 other branches mingan, simon

maj

Showing 1 changed file with 2 additions and 3 deletions   Show diff stats
tr_snake.py
... ... @@ -39,7 +39,7 @@ nametime = datetime.datetime.fromtimestamp(int(timestamp)).strftime('%Y%m%d%H%M
39 39  
40 40 # Golfe du Saint-Laurent ---------------------------
41 41 # traces des x derniers jours dans l'estuaire
42   -GSL = df[(df.FLAG == "OCN")& (df.TIME <= timestamp)
  42 +GSL = df[(df.FLAG == "OCN") & (df.TIME <= timestamp)
43 43 & (df.TIME > timestamp - shour*snake)]
44 44  
45 45 plt.clf()
... ... @@ -65,8 +65,7 @@ for spot, group in GSL.groupby([&#39;SPOT&#39;]):
65 65 longitude = group.LON.values
66 66 t = (group.TIME.values - dt) / diff
67 67 x,y = m(longitude, latitude)
68   - cax = plt.scatter(x,y,c=t, s=
69   - 35, cmap=cmap,linewidth=0,vmin=0, vmax=1)
  68 + cax = plt.scatter(x,y,c=t, s=35, cmap=cmap,linewidth=0,vmin=0, vmax=1)
70 69 plt.plot(x,y,'k-',linewidth=0.5)
71 70  
72 71 # colorbar
... ...