jeudi 21 mai 2020

Graphs on Python as plt.plot wont show

Hello i've been stuck on this for a while now. My graph wont show i'm unsure if its because of my while loop:

while True:
   temperature = input("Temperature in Kelvin. Type stop to finish")

   if temperature == "stop":
    break

   else:
     tempy = float(temperature)

   print (tempy)

and my plot:

  intensities=rad(lambda_range_metres,root_mean_square_dev)
# Plot the intensity values against the wavelength in millimetres
  plt.plot(lambda_range,intensities)
  plt.title('i')
  plt.xlabel('i /i ')
  plt.ylabel('i / i')
  plt.show()

I'm not sure where i'm going wrong with this. Thank you

Aucun commentaire:

Enregistrer un commentaire