File tree Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Expand file tree Collapse file tree 2 files changed +14
-0
lines changed Original file line number Diff line number Diff line change
1
+ Axis offset label now responds to `labelcolor `
2
+ ----------------------------------------------
3
+
4
+ Axis offset labels are now colored the same as axis tick markers when `labelcolor ` is altered.
Original file line number Diff line number Diff line change @@ -4477,6 +4477,16 @@ def test_axisbelow():
4477
4477
ax .set_axisbelow (setting )
4478
4478
4479
4479
4480
+ @cleanup
4481
+ def test_offset_label_color ():
4482
+ # Tests issue 6440
4483
+ fig = plt .figure ()
4484
+ ax = fig .add_subplot (1 , 1 , 1 )
4485
+ ax .plot ([1.01e9 , 1.02e9 , 1.03e9 ])
4486
+ ax .yaxis .set_tick_params (labelcolor = 'red' )
4487
+ assert ax .yaxis .get_offset_text ().get_color () == 'red'
4488
+
4489
+
4480
4490
@cleanup
4481
4491
def test_large_offset ():
4482
4492
fig , ax = plt .subplots ()
You can’t perform that action at this time.
0 commit comments