- Timestamp:
- Dec 1, 2014, 4:46:00 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/tools/drawing_tools.py
r194 r196 4492 4492 4493 4493 plt.rc('text', usetex=True) 4494 varTvv = [] 4495 varTdv = [] 4494 4496 4495 4497 if vaxis == 'x': 4496 4498 for il in range(Ntraj): 4497 4499 plt.plot(varvv[il], vardv[il], linekinds[N7lines], label= linesn[il]) 4500 varTvv = varTvv + varvv[:] 4501 varTdv = varTdv + vardv[:] 4498 4502 if il == 6: N7lines = N7lines + 1 4499 4503 4500 4504 plt.xlabel(vtit + ' (' + vunit + ')') 4501 4505 plt.ylabel(dtit) 4502 plt.xlim(np.min(var vv[:]),np.max(varvv[:]))4503 plt.ylim(np.min(var dv[:]),np.max(vardv[:]))4506 plt.xlim(np.min(varTvv[:]),np.max(varTvv[:])) 4507 plt.ylim(np.min(varTdv[:]),np.max(varTdv[:])) 4504 4508 plt.yticks(tpos, tlabs) 4505 4509 else: 4506 4510 for il in range(Ntraj): 4507 4511 plt.plot(vardv[il], varvv[il], linekinds[N7lines], label= linesn[il]) 4512 varTvv = varTvv + varvv[:] 4513 varTdv = varTdv + vardv[:] 4508 4514 if il == 6: N7lines = N7lines + 1 4509 4515 4510 4516 plt.xlabel(dtit) 4511 4517 plt.ylabel(vtit + ' (' + vunit + ')') 4512 plt.xlim(np.min(var dv[:]),np.max(vardv[:]))4513 plt.ylim(np.min(var vv[:]),np.max(varvv[:]))4518 plt.xlim(np.min(varTdv[:]),np.max(varTdv[:])) 4519 plt.ylim(np.min(varTvv[:]),np.max(varTvv[:])) 4514 4520 plt.xticks(tpos, tlabs) 4515 4521
Note: See TracChangeset
for help on using the changeset viewer.