Skip to content

Commit

Permalink
Increase the default nbin of colourbar (#3521)
Browse files Browse the repository at this point in the history
* Increase the default nbin of colourbar to 300
  • Loading branch information
yutannihilation authored Oct 13, 2019
1 parent f16f16f commit 115c396
Show file tree
Hide file tree
Showing 25 changed files with 315 additions and 313 deletions.
2 changes: 2 additions & 0 deletions NEWS.md
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,8 @@

* Fix a bug when `show.legend` is a named logical vector (#3461, @yutannihilation).

* Increase the default `nbin` of `guide_colourbar()` to place the ticks more precisely (#3508, @yutannihilation).

# ggplot2 3.2.1

This is a patch release fixing a few regressions introduced in 3.2.0 as well as
Expand Down
2 changes: 1 addition & 1 deletion R/guide-colorbar.r
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ guide_colourbar <- function(
# bar
barwidth = NULL,
barheight = NULL,
nbin = 20,
nbin = 300,
raster = TRUE,

# frame
Expand Down
4 changes: 2 additions & 2 deletions man/guide_colourbar.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

26 changes: 13 additions & 13 deletions tests/figs/geom-raster/1-x-3-just-0-0.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
26 changes: 13 additions & 13 deletions tests/figs/geom-raster/1-x-3-set-limits.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit 115c396

Please sign in to comment.