10000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a1c64ab commit b807b37Copy full SHA for b807b37
lib/matplotlib/tests/test_text.py
@@ -890,7 +890,7 @@ def call(*args, **kwargs):
890
891
def test_set_antialiased():
892
txt = Text(.5, .5, "foo\nbar")
893
- assert txt._antialiased is None
+ assert txt._antialiased == mpl.rcParams['text.antialiased']
894
895
txt.set_antialiased(True)
896
assert txt._antialiased is True
lib/matplotlib/text.py
@@ -191,6 +191,8 @@ def _reset_visual_defaults(
191
linespacing = 1.2 # Maybe use rcParam later.
192
self.set_linespacing(linespacing)
193
self.set_rotation_mode(rotation_mode)
194
+ if antialiased is None:
195
+ antialiased = mpl.rcParams['text.antialiased']
196
self.set_antialiased(antialiased)
197
198
def update(self, kwargs):
0 commit comments