File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -16,6 +16,9 @@ title: Changelog
16
16
- Fixed [ ] ( :class:`~plotnine.geom_text` ) to work better with
17
17
[ adjustText] ( https://pypi.org/project/adjustText/ ) ` v1.0.0 ` and above.
18
18
19
+ - Fixed images generated in quarto so that they have the dimensions
20
+ (taking the dpi into account) that are specified in theme. ({{< issue 773 >}})
21
+
19
22
### Enhancements
20
23
21
24
- Added _ palmerpenguins_ dataset.
Original file line number Diff line number Diff line change @@ -170,6 +170,13 @@ class mpl_save_view:
170
170
figure : Figure
171
171
kwargs : dict [str , Any ]
172
172
173
+ def __post_init__ (self ):
174
+ # If savefig.dpi rcparam has been set, it will override
175
+ # the figure dpi which is set in the theme. We make sure
176
+ # our call to savefig will contain the figure dpi.
177
+ if "dpi" not in self .kwargs :
178
+ self .kwargs ["dpi" ] = self .figure .get_dpi ()
179
+
173
180
174
181
@dataclass
175
182
class layout_details :
You can’t perform that action at this time.
0 commit comments