@@ -8511,6 +8511,8 @@ def test_empty_line_plots():
85118511 (":-" , r"':-' is not a valid format string \(two linestyle symbols\)" ),
85128512 ("rk" , r"'rk' is not a valid format string \(two color symbols\)" ),
85138513 (":o-r" , r"':o-r' is not a valid format string \(two linestyle symbols\)" ),
8514+ ("C" , r"'C' is not a valid format string \('C' must be followed by a number\)" ),
8515+ (".C" , r"'.C' is not a valid format string \('C' must be followed by a number\)" ),
85148516))
85158517@pytest .mark .parametrize ("data" , [None , {"string" : range (3 )}])
85168518def test_plot_format_errors (fmt , match , data ):
@@ -8543,6 +8545,11 @@ def test_plot_format():
85438545 line = ax .plot ([1 , 2 , 3 ], 'k3' )
85448546 assert line [0 ].get_marker () == '3'
85458547 assert line [0 ].get_color () == 'k'
8548+ fig , ax = plt .subplots ()
8549+ line = ax .plot ([1 , 2 , 3 ], '.C12:' )
8550+ assert line [0 ].get_marker () == '.'
8551+ assert line [0 ].get_color () == mcolors .to_rgba ('C12' )
8552+ assert line [0 ].get_linestyle () == ':'
85468553
85478554
85488555def test_automatic_legend ():
0 commit comments