5757
5858def doall ():
5959 # Colors used in Matplotlib online documentation.
60- mpl_blue_rvb = (191. / 255. , 209. / 256. , 212. / 255. )
61- mpl_orange_rvb = (202. / 255. , 121. / 256. , 0. / 255. )
62- mpl_grey_rvb = (51. / 255. , 51. / 255. , 51. / 255. )
60+ mpl_grey_rgb = (51 / 255 , 51 / 255 , 51 / 255 )
6361
6462 # Creating figure and axis.
6563 fig = plt .figure (figsize = (6 , 7 ))
@@ -68,7 +66,7 @@ def doall():
6866 ax .set_xlim (0 , 1 )
6967 ax .set_ylim (0 , 1 )
7068 ax .set_title ("Matplotlib's math rendering engine" ,
71- color = mpl_grey_rvb , fontsize = 14 , weight = 'bold' )
69+ color = mpl_grey_rgb , fontsize = 14 , weight = 'bold' )
7270 ax .set_xticklabels ([])
7371 ax .set_yticklabels ([])
7472
@@ -79,24 +77,24 @@ def doall():
7977 full_demo = mathext_demos [0 ]
8078 ax .annotate (full_demo ,
8179 xy = (0.5 , 1. - 0.59 * line_axesfrac ),
82- color = mpl_orange_rvb , ha = 'center' , fontsize = 20 )
80+ color = 'tab:orange' , ha = 'center' , fontsize = 20 )
8381
8482 # Plotting features demonstration formulae
8583 for i_line in range (1 , n_lines ):
8684 baseline = 1 - i_line * line_axesfrac
8785 baseline_next = baseline - line_axesfrac
8886 title = mathtext_titles [i_line ] + ":"
89- fill_color = ['white' , mpl_blue_rvb ][i_line % 2 ]
87+ fill_color = ['white' , 'tab:blue' ][i_line % 2 ]
9088 ax .fill_between ([0 , 1 ], [baseline , baseline ],
9189 [baseline_next , baseline_next ],
92- color = fill_color , alpha = 0.5 )
90+ color = fill_color , alpha = 0.2 )
9391 ax .annotate (title ,
9492 xy = (0.07 , baseline - 0.3 * line_axesfrac ),
95- color = mpl_grey_rvb , weight = 'bold' )
93+ color = mpl_grey_rgb , weight = 'bold' )
9694 demo = mathext_demos [i_line ]
9795 ax .annotate (demo ,
9896 xy = (0.05 , baseline - 0.75 * line_axesfrac ),
99- color = mpl_grey_rvb , fontsize = 16 )
97+ color = mpl_grey_rgb , fontsize = 16 )
10098
10199 for i in range (n_lines ):
102100 s = mathext_demos [i ]
0 commit comments