Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # n wird im voraus gesetzt, abhängig von der input-datei
- # n bezeichnet, wv plots am ende nebeneinander existieren sollen
- f, axarr = plt.subplots(2,n)
- for i, outputNum in enumerate(range(1,n+1)):
- # mache rechnung
- # ...
- axarr[0,i].plot(x[i],y[i])
- axarr[1,i].plot(x_norm[i],y_norm[i])
- plt.show()
- # dieser code funktioniert nicht für n=1, da die notation dann
- # axarr[0], axarr[1], ... wäre. wie kann ich das verbessern?
Add Comment
Please, Sign In to add comment