Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- plt.plot(x,indiff2(x4,28.35))
- import matplotlib.lines as mlines
- from matplotlib.legend_handler import HandlerLine2D
- import matplotlib.pyplot as plt
- #plt.style.available
- plt.style.use("bmh")
- %matplotlib inline
- Ax=1
- x3 = np.linspace(0.1,30, 1000)
- x4 = np.linspace(1,60, 30)
- a=b=1
- def indiff1(x3,ubar):
- return ubar-x
- def indiff2(x4,ubar):
- return ubar-x
- plt.figure(figsize=(6,6))
- plt.plot(x, ppf(x,1), color="blue")
- plt.plot(x,indiff2(x4,28.35))
- plt.plot(x2,ppf(x2,2),color="green")
- plt.plot(x,indiff1(x3,14.14))
- plt.xlabel("Coconuts",fontsize="20")
- plt.ylabel("Fish", fontsize="20")
- plt.xlim(0,20)
- plt.ylim(0,np.sqrt(198))
- plt.plot(x,indiff(x,100))
- plt.tight_layout()
- plt.gcf()
- plt.tick_params(labelsize="20")
- plt.show()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement