Guest User

Untitled

a guest
Oct 16th, 2017
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. def Brightness(Lumens, b1, l1):
  2. l2 = 10200.0
  3. b2 = 255.0
  4. a2 = (b1 * l2 - b2 * l1) / (l1 * l1 * l2 - l2 * l2 * l1)
  5. a1 = (b1 - a2 * l1 * l1) / l1
  6. return a1 * Lumens + a2 * Lumens * Lumens
  7.  
  8. from pylab import plot, show, xlabel, ylabel, title
  9.  
  10. b1 = 100.0
  11. l1 = 5000.0
  12.  
  13. xx = range(0, 10200)
  14. yy = [Brightness(L, b1, l1) for L in xx]
  15.  
  16. plot(xx, yy)
  17. plot([0, l1, 10200], [0, b1, 255], 'o')
  18. show()
Add Comment
Please, Sign In to add comment