Commit c4082c1
Fix: axis, ticks are set to defaults fontsize after ax.clear() (#21253)
* add: _reset_visual_defaults function in Text class
* retrigger checks
* refactor: Axis._init and Text.__init__
* bugfix: reset text to blank string in clear
* refactor: set_text to reset_visual_defaults
* refactor: delete unnecessary set_text in Axis.clear
Co-authored-by: tsumli <sample@example.com>
Co-authored-by: tsumli <example@example.com>1 parent 39c997e commit c4082c1
2 files changed
+52
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
895 | 895 | | |
896 | 896 | | |
897 | 897 | | |
| 898 | + | |
| 899 | + | |
| 900 | + | |
898 | 901 | | |
899 | | - | |
| 902 | + | |
900 | 903 | | |
901 | 904 | | |
902 | 905 | | |
| |||
2193 | 2196 | | |
2194 | 2197 | | |
2195 | 2198 | | |
| 2199 | + | |
| 2200 | + | |
| 2201 | + | |
| 2202 | + | |
| 2203 | + | |
| 2204 | + | |
| 2205 | + | |
2196 | 2206 | | |
2197 | 2207 | | |
2198 | 2208 | | |
| |||
2202 | 2212 | | |
2203 | 2213 | | |
2204 | 2214 | | |
| 2215 | + | |
2205 | 2216 | | |
2206 | 2217 | | |
2207 | 2218 | | |
| |||
2444 | 2455 | | |
2445 | 2456 | | |
2446 | 2457 | | |
| 2458 | + | |
| 2459 | + | |
| 2460 | + | |
| 2461 | + | |
| 2462 | + | |
| 2463 | + | |
| 2464 | + | |
2447 | 2465 | | |
2448 | 2466 | | |
2449 | 2467 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
164 | 164 | | |
165 | 165 | | |
166 | 166 | | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
167 | 200 | | |
168 | 201 | | |
169 | 202 | | |
| |||
183 | 216 | | |
184 | 217 | | |
185 | 218 | | |
186 | | - | |
187 | 219 | | |
188 | 220 | | |
189 | 221 | | |
| |||
0 commit comments