Skip to content

Commit 113e594

Browse files
Add cex as explicit argument to tinytheme (#482)
* Add `cex` as explicit argument to tinytheme * news
1 parent c21a235 commit 113e594

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

NEWS.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,10 @@ where the formatting is also better._
4040
plot type internally coerces it to factor (e.g., `"boxplot"`)
4141
- `type_text()` can now also deal with factor `x`/`y` variables by converting
4242
them to numeric which helps to add text to barplots etc. (#470 @zeileis)
43-
- Fix bug where sourced (non-interactive) scripts with `tinytheme()` calls were
44-
not inheriting the correct parameters and spacing. (#475, #481 @grantmcdermott)
43+
- Fixed some `tinytheme()` bugs.
44+
- Sourced (non-interactive) scripts with `tinytheme()` calls now inherit the
45+
correct parameters and spacing. (#475, #481 @grantmcdermott)
46+
- Custom `cex` theme settings are now reset correctly. (#482 @grantmcdermott)
4547

4648

4749
### Internals

R/tinytheme.R

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -183,6 +183,7 @@ theme_default = list(
183183
adj.sub = par("adj"), # 0.5,
184184
bg = "white", # par("bg") # "white"
185185
bty = par("bty"), #"o",
186+
cex = par("cex"), #1,
186187
cex.axis = par("cex.axis"), #1,
187188
cex.main = par("cex.main"), #1.2,
188189
cex.xlab = par("cex.axis"), #1,

0 commit comments

Comments
 (0)