Commit 1004326
RoomWithOutRoof
Fix legend settings not preserved when regenerating in Qt figure options
When '(Re)-generate automatic legend' is checked in the Figure Options
dialog, the regenerated legend previously only preserved 'ncols' and
'draggable' settings. Other important legend properties like
'bbox_to_anchor', 'loc', 'mode', and 'borderaxespad' were discarded.
Now the code captures these additional properties from the existing
legend (if present) and passes them to axes.legend(), preserving the
user's intended legend appearance.
Fixes #177751 parent b1683be commit 1004326
1 file changed
Lines changed: 20 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
248 | 248 | | |
249 | 249 | | |
250 | 250 | | |
| 251 | + | |
| 252 | + | |
251 | 253 | | |
252 | 254 | | |
253 | 255 | | |
254 | 256 | | |
255 | | - | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
256 | 275 | | |
257 | 276 | | |
258 | 277 | | |
| |||
0 commit comments