File tree Expand file tree Collapse file tree 2 files changed +8
-10
lines changed Expand file tree Collapse file tree 2 files changed +8
-10
lines changed Original file line number Diff line number Diff line change @@ -710,10 +710,8 @@ def __repr__(self):
710
710
for k in ["left" , "center" , "right" ]:
711
711
if hasattr (self , 'get_title' ):
712
712
title = self .get_title (loc = k )
713
- else :
714
- title = ""
715
- if title :
716
- titles .append (f"{ k !r} :{ title !r} " )
713
+ if title :
714
+ titles .append (f"{ k !r} :{ title !r} " )
717
715
if titles :
718
716
fields += ["title={" + "," .join (titles ) + "}" ]
719
717
if self .get_xlabel ():
Original file line number Diff line number Diff line change @@ -490,18 +490,18 @@ def test_autoscale_tight():
490
490
assert_allclose (ax .get_ylim (), (1.0 , 4.0 ))
491
491
492
492
# Check that autoscale is on
493
- assert ax .get_autoscalex_on () is True
494
- assert ax .get_autoscaley_on () is True
495
- assert ax .get_autoscale_on () is True
493
+ assert ax .get_autoscalex_on ()
494
+ assert ax .get_autoscaley_on ()
495
+ assert ax .get_autoscale_on ()
496
496
# Set enable to None
497
497
ax .autoscale (enable = None )
498
498
# Same limits
499
499
assert_allclose (ax .get_xlim (), (- 0.15 , 3.15 ))
500
500
assert_allclose (ax .get_ylim (), (1.0 , 4.0 ))
501
501
# autoscale still on
502
- assert ax .get_autoscalex_on () is True
503
- assert ax .get_autoscaley_on () is True
504
- assert ax .get_autoscale_on () is True
502
+ assert ax .get_autoscalex_on ()
503
+ assert ax .get_autoscaley_on ()
504
+ assert ax .get_autoscale_on ()
505
505
506
506
507
507
@mpl .style .context ('default' )
You can’t perform that action at this time.
0 commit comments