In [1]:
from __future__ import division
%matplotlib inline
import numpy as np
import matplotlib.pyplot as plt

In [2]:
# 0. Preliminaries

# 0.1 general plot settings

font = {'weight' : 'bold',
        'size'   : 15}
axes={'labelweight' : 'bold'}
plt.rc('font', **font)
plt.rc('axes', **axes)
plt.rcParams['xtick.major.pad']='8'
plt.rcParams['ytick.major.pad']='8'

In [3]:
fig = plt.figure(figsize=(7.5, 4.5))

x = np.arange(0,13,0.001)

ax1 = fig.add_subplot(1, 1, 1)
ax1.plot(x,0.5*x,lw=3,color='b',alpha=0.6)
ax1.plot(x,4/3*x,lw=3,color='r',alpha=0.6)
ax1.plot(x,4*np.log(x+1) - 4*np.log(4/0.5)+0.5*(4/0.5-1),lw=3,color='b',alpha=0.6)
ax1.plot(x,4*np.log(x+1) - 4*np.log(4/(4/3))+(4/3)*(4/(4/3)-1),lw=3,color='r',alpha=0.6)

ax1.plot([2],[2.66666666667],'ro',lw=3,markeredgecolor='none')
ax1.plot([7],[3.5],'bo',lw=3,markeredgecolor='none')

ax1.set_xlim([0,12])
ax1.set_ylim([0,6])



ax1.set_xticklabels([])
ax1.set_yticklabels([])



ax1.grid()

# ax1.spines['right'].set_visible(False)
# ax1.spines['top'].set_visible(False)
# Only show ticks on the left and bottom spines
ax1.yaxis.set_ticks_position('left')
ax1.xaxis.set_ticks_position('bottom')

ax1.annotate('$(q_2^*,t_2^*)$', xy=(7, 3.5), xytext=(7.25,3.25))
ax1.annotate('$(q_1^*,t_1^*)$', xy=(2, 2.66666666667), xytext=(2.25,2.416666666666667))

ax1.set_xlabel('$q$')
ax1.set_ylabel('$t$')

plt.savefig('econ107Img.png',bbox_inches='tight',dpi=120)