Advertisement
Guest User

Untitled

a guest
Sep 21st, 2017
49
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  1. plt.plot(x,indiff2(x4,28.35))
  2.  
  3. import matplotlib.lines as mlines
  4. from matplotlib.legend_handler import HandlerLine2D
  5. import matplotlib.pyplot as plt
  6. #plt.style.available
  7. plt.style.use("bmh")
  8. %matplotlib inline
  9. Ax=1
  10.  
  11. x3 = np.linspace(0.1,30, 1000)
  12. x4 = np.linspace(1,60, 30)
  13. a=b=1
  14.  
  15. def indiff1(x3,ubar):
  16.  
  17. return ubar-x
  18.  
  19. def indiff2(x4,ubar):
  20. return ubar-x
  21. plt.figure(figsize=(6,6))
  22. plt.plot(x, ppf(x,1), color="blue")
  23. plt.plot(x,indiff2(x4,28.35))
  24. plt.plot(x2,ppf(x2,2),color="green")
  25. plt.plot(x,indiff1(x3,14.14))
  26. plt.xlabel("Coconuts",fontsize="20")
  27. plt.ylabel("Fish", fontsize="20")
  28. plt.xlim(0,20)
  29. plt.ylim(0,np.sqrt(198))
  30. plt.plot(x,indiff(x,100))
  31.  
  32. plt.tight_layout()
  33. plt.gcf()
  34. plt.tick_params(labelsize="20")
  35. plt.show()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement