Re: [Tutor] How to plot amount of lines but the amount is a input

2015-12-30 Thread Tom Xu
Dear Pythoneers, sorry for bothering. I want to draw several curves in one graph, but the amount of curves is not a fixed number. My homework is below: --- import matplotlib.pyplot as plt import math if __name__=='__main__': try:

[Tutor] How to plot amount of lines but the amount is a input

2015-12-30 Thread Tom Xu
Dear Pythoneers, I want to draw several curves in one graph, but the amount of curves is not a fixed number. My homework is below: --- import matplotlib.pyplot as plt import math if __name__=='__main__': try: n=int(input('how many curves? ')) ulist=[] thetalist=[]