Skip to content

Commit 31bef1c

Browse files
authored
default-cmap-resolution (#1200)
* Update _colors.py * Update CHANGELOG.md
1 parent 191716c commit 31bef1c

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/).
55

66
## [Unreleased]
77

8+
### Changed
9+
- default colorbar is sampled at 4096 points (was 256)
10+
811
## [3.5.5]
912

1013
### Fixed

WrightTools/artists/_colors.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -424,7 +424,7 @@ def __getitem__(self, key):
424424
colormaps = cmapdict()
425425

426426
colormaps["cubehelix"] = copy.copy(plt.get_cmap("cubehelix_r"))
427-
colormaps["default"] = cubehelix
427+
colormaps["default"] = cubehelix.resampled(2**12)
428428
colormaps["signed"] = copy.copy(plt.get_cmap("bwr"))
429429
colormaps["greenscale"] = mplcolors.LinearSegmentedColormap.from_list("greenscale", greenscale)
430430
colormaps["greyscale"] = mplcolors.LinearSegmentedColormap.from_list("greyscale", greyscale)

0 commit comments

Comments
 (0)