Skip to content

Commit 5bfaca0

Browse files
authored
Merge pull request #10210 from satijalab/fix-imageplotwarnings
Fix size deprecation warnings in ImageDimPlot and ImageFeaturePlot
2 parents d49e46d + a44d0dd commit 5bfaca0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

R/visualization.R

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6407,7 +6407,7 @@ CenterTitle <- function(...) {
64076407
DarkTheme <- function(...) {
64086408
# Some constants for easier changing in the future
64096409
black.background <- element_rect(fill = 'black')
6410-
black.background.no.border <- element_rect(fill = 'black', size = 0)
6410+
black.background.no.border <- element_rect(fill = 'black', linewidth = 0)
64116411
font.margin <- 4
64126412
white.text <- element_text(
64136413
colour = 'white',
@@ -6418,8 +6418,8 @@ DarkTheme <- function(...) {
64186418
l = font.margin
64196419
)
64206420
)
6421-
white.line <- element_line(colour = 'white', size = 1)
6422-
no.line <- element_line(size = 0)
6421+
white.line <- element_line(colour = 'white', linewidth = 1)
6422+
no.line <- element_line(linewidth = 0)
64236423
# Create the dark theme
64246424
dark.theme <- theme(
64256425
# Set background colors
@@ -9203,7 +9203,7 @@ SingleImagePlot <- function(
92039203
geom_polygon(
92049204
mapping = aes(group = .data[['cell']]),
92059205
color = border.color,
9206-
size = border.size
9206+
linewidth = border.size
92079207
)
92089208
} else {
92099209
# Default to no borders when plotting centroids

0 commit comments

Comments
 (0)