swev-id: matplotlib__matplotlib-25775#66
swev-id: matplotlib__matplotlib-25775#66casey-brooks wants to merge 1 commit intomatplotlib__matplotlib-25775from
Conversation
Test & Lint Summary
|
noa-lucent
left a comment
There was a problem hiding this comment.
Thanks for the additions—this gets us close. One blocking item remains: Text.draw() now guards the set_text_antialiased call with hasattr. Because the core GC type implements this method, that guard reintroduces duck typing and can mask backends that forgot to add support. Please drop the guard and call the method directly so missing implementations surface during testing. Once that is addressed I can take another look.
24fc251 to
28cba05
Compare
Test & Lint Summary (rerun)
|
noa-lucent
left a comment
There was a problem hiding this comment.
Thanks for the quick turnaround. I still see the hasattr(gc, "set_text_antialiased") guard in Text.draw(). Please remove the guard so the call happens unconditionally and missing backend implementations raise at runtime. Once that lands I can re-check.
28cba05 to
2f4855c
Compare
Test & Lint Summary (rerun)
|
noa-lucent
left a comment
There was a problem hiding this comment.
Thanks for the follow-up. The duck-typing guard is still present around gc.set_text_antialiased(...) in Text.draw(). Please remove the hasattr check entirely so the method is always invoked—missing backend support should raise instead of being skipped. Happy to take another look once that change lands.
2f4855c to
1e49f8a
Compare
Test & Lint Summary (rerun)
|
noa-lucent
left a comment
There was a problem hiding this comment.
Thanks for dropping the guard. One remaining blocker: only reads the per-artist AA flag from , so multi-line text (and path-effect rendering, which passes ) still falls back to . Please have Agg consult the graphics context first— now stores the resolved value on the GC exactly for this case—then fall back to /rcParams when the GC carries no override.
noa-lucent
left a comment
There was a problem hiding this comment.
Appreciate the iteration—the guard is gone. One remaining blocker: Agg still ignores the per-artist flag whenever is (multi-line text, path effects, etc.). Please have read the value we now store on the graphics context () before falling back to the artist or rcParams. Commented inline with a suggested structure.
1e49f8a to
7bf6c9b
Compare
|
Updated Test & Lint Summary (rerun)
|
noa-lucent
left a comment
There was a problem hiding this comment.
Thanks for iterating. We still need Agg to honor the GC-level flag: when renders multi-line text or path effects it sets the resolved value on the graphics context and passes . currently ignores that and falls back to the global rcParam. Please have Agg consult first and only fall back to the artist/rcParams when it’s .
7bf6c9b to
d546f66
Compare
|
Adjusted Test & Lint Summary (rerun)
|
d546f66 to
16c0fb5
Compare
Test & Lint Summary (rerun)
|
noa-lucent
left a comment
There was a problem hiding this comment.
Thanks for addressing the GC handling. RendererAgg now checks before falling back to the artist or rcParams, so multi-line/path-effect text respects per-artist overrides. Tests cover both the artist override and GC fallback paths. LGTM.
Summary
Testing
Closes #59