Changeset 386 for experiments
- Timestamp:
- 05/22/15 18:46:17 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
experiments/frams/multi-threading/test-mt-plots.py
r116 r386 18 18 threads,capacity,slownik=wynik 19 19 if slownik['iter']==iteracja: 20 print threads,capacity,slownik[atrybut] if atrybut in slownik else np.nan20 print(threads,capacity,slownik[atrybut] if atrybut in slownik else np.nan) 21 21 threadsindex=threadsy.index(threads) 22 22 capacitiesindex=capacitiesy.index(capacity) 23 23 Z[capacitiesindex,threadsindex]=slownik[atrybut] if atrybut in slownik else np.nan 24 print Z24 print(Z) 25 25 ktore=len(kolory)-len(iteracje)+i 26 26 ax.plot_surface(X, Y, Z, rstride=1, cstride=1, color=kolory[ktore], linewidth=1, alpha=alfy[ktore],edgecolor=(0,0,0,alfy[ktore])) … … 57 57 for linia in plik: 58 58 linia=linia.strip() 59 if linia.startswith(" [INFO] Script::Message -iter="):59 if linia.startswith("Script.Message: iter="): 60 60 slownik={} 61 61 for pole in linia.split(' '): … … 64 64 pole=pole.split('=') 65 65 slownik[pole[0]]=float(pole[1]) 66 print slownik66 print(slownik) 67 67 slowniki.append(slownik) 68 68 wyniki.append((threads,capacity,slownik)) … … 71 71 threadsy=sorted(list(threadsy)) 72 72 capacitiesy=sorted(list(capacitiesy)) 73 print threadsy74 print capacitiesy73 print(threadsy) 74 print(capacitiesy) 75 75 76 76 wykres(threadsy,capacitiesy,wyniki,[3.0,6.0,9.0],'simsteps')
Note: See TracChangeset
for help on using the changeset viewer.