@@ -120,16 +120,18 @@ def plot_example1():
120120 ax1 .plot (x , t0_pigiron_difficulty0_y , label = "low" )
121121 ax1 .plot (x , t0_pigiron_difficulty1_y , label = "normal" )
122122 ax1 .plot (x , t0_pigiron_difficulty2_y , label = "high" )
123- # """
123+
124124 ax1 .axvline (SAMPLE_THRESHOLDS [0 ])
125- ax1 .text ( SAMPLE_THRESHOLDS [0 ], 0 , "$t_0$" , va = "bottom" )
125+ ax1 .annotate ( "$t_0$" , xy = ( SAMPLE_THRESHOLDS [0 ], ax1 . get_ylim ()[ 1 ]), xycoords = 'data' , xytext = ( 2 , - 10 ), textcoords = 'offset points' )
126126 ax1 .axvline (SAMPLE_THRESHOLDS [1 ])
127- ax1 .text ( SAMPLE_THRESHOLDS [1 ], 0 , "$t_1$" , va = "bottom" )
127+ ax1 .annotate ( "$t_1$" , xy = ( SAMPLE_THRESHOLDS [1 ], ax1 . get_ylim ()[ 1 ]), xycoords = 'data' , xytext = ( 2 , - 10 ), textcoords = 'offset points' )
128128 ax1 .axvline (SAMPLE_THRESHOLDS [2 ])
129- ax1 .text ( SAMPLE_THRESHOLDS [2 ], 0 , "$t_2$" , va = "bottom" )
129+ ax1 .annotate ( "$t_2$" , xy = ( SAMPLE_THRESHOLDS [2 ], ax1 . get_ylim ()[ 1 ]), xycoords = 'data' , xytext = ( 2 , - 10 ), textcoords = 'offset points' )
130130 ax1 .axvline (SAMPLE_THRESHOLDS [3 ])
131- ax1 .text (SAMPLE_THRESHOLDS [3 ], 0 , "$t_3$" , va = "bottom" )
132- # """
131+ ax1 .annotate ("$t_3$" , xy = (SAMPLE_THRESHOLDS [3 ], ax1 .get_ylim ()[1 ]), xycoords = 'data' , xytext = (2 , - 10 ), textcoords = 'offset points' )
132+
133+ ax1 .axhline (PIG_IRON_BASE_PRICE * 2000 )
134+ ax1 .annotate ("Base Price" , xy = (0 , PIG_IRON_BASE_PRICE * 2000 ), xycoords = 'data' , xytext = (2 , - 10 ), textcoords = 'offset points' )
133135
134136 ax1 .set_title ("Selling Price of 1 Pigiron Bundle per Difficulty" )
135137 ax1 .set_xlabel ("Stock" )
0 commit comments