Changeset 2977 for trunk/python
- Timestamp:
- 07/25/14 19:21:04 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/python/asapplotter.py
r2953 r2977 1354 1354 wspace=wsp,hspace=hsp) 1355 1355 1356 tdel = max(t) - min(t) 1356 tdel = max(t) - min(t) # interval in day 1357 1357 ax = PL.subplot(2,1,1) 1358 1358 el = ma.masked_array(array(self._data.get_elevation())*180./pi, mask) 1359 1359 PL.ylabel('El [deg.]') 1360 1360 dstr = dates[0].strftime('%Y/%m/%d') 1361 if tdel > 1.0: 1361 if tdel > 1.0: # >1day 1362 1362 dstr2 = dates[len(dates)-1].strftime('%Y/%m/%d') 1363 1363 dstr = dstr + " - " + dstr2 … … 1365 1365 minloc = HourLocator(range(0,23,12)) 1366 1366 timefmt = DateFormatter("%b%d") 1367 elif tdel > 24./60.: 1367 elif tdel > 24./60.: # 9.6h - 1day 1368 1368 timefmt = DateFormatter('%H:%M') 1369 1369 majloc = HourLocator() 1370 minloc = MinuteLocator( 30)1371 el se:1370 minloc = MinuteLocator(range(0,60,30)) 1371 elif tdel > 2./24.: # 2h-9.6h 1372 1372 timefmt = DateFormatter('%H:%M') 1373 majloc = MinuteLocator(interval=5) 1373 majloc = HourLocator() 1374 minloc = MinuteLocator(range(0,60,10)) 1375 elif tdel> 10./24./60.: # 10min-2h 1376 timefmt = DateFormatter('%H:%M') 1377 majloc = MinuteLocator(range(0,60,10)) 1378 minloc = MinuteLocator() 1379 else: # <10min 1380 timefmt = DateFormatter('%H:%M') 1381 majloc = MinuteLocator() 1374 1382 minloc = SecondLocator(30) 1375 1383
Note:
See TracChangeset
for help on using the changeset viewer.