Skip to content

Style changes omnibus PR #5774

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 33 commits into from
Feb 8, 2016
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
33 commits
Select commit Hold shift + click to select a range
14281fd
Change default image interpolation to nearest
jenshnielsen Jul 10, 2015
76c70be
Change docstring to reflect new default interpolation
jenshnielsen Jul 10, 2015
bba003f
fix typo
jenshnielsen Nov 6, 2015
86b7a59
fix #4854: set default numpoints of legend entries to 1
gauteh Sep 24, 2015
d2f6bea
Fix #5419: Set default figure background to white
mdboom Dec 14, 2015
87ba8b0
Don't plot errorbar caps by default
mdboom Dec 14, 2015
38d4e31
Grey solid tick lines
mdboom Nov 8, 2015
5317d35
API: use 'best' for default legend location
tacaswell Nov 9, 2015
5695389
Outward ticks (Fix #4502)
mdboom Nov 16, 2015
3e7471a
Use "new" blue by default
mdboom Nov 16, 2015
28c632f
Change default color map (Fix #875)
mdboom Nov 16, 2015
4472125
Use Vega collection10 colors instead
mdboom Nov 17, 2015
f45e9bc
Rounded corners on legend box
mdboom Dec 14, 2015
4513182
Fix #4700: Use overlay by default
mdboom Nov 17, 2015
09b29d8
Simplify examples to use defaults more often
mdboom Nov 25, 2015
3abcb95
Add what's new
mdboom Dec 14, 2015
f2ac1bb
Document Xtick.minor.visible
mdboom Dec 14, 2015
318a044
Use image.resample == True
mdboom Dec 31, 2015
417db2f
Update test images
mdboom Dec 31, 2015
82558ee
Revert some changes caught by @QuLogic in review
mdboom Jan 21, 2016
c5864ce
Fix typo
mdboom Jan 22, 2016
30b4341
Update test images
mdboom Dec 31, 2015
0f4e3a6
Improve what's new
mdboom Jan 25, 2016
c44bd3d
Fix formatting
mdboom Jan 25, 2016
fa4c56e
Change figure background for real
mdboom Jan 25, 2016
caa711b
More detail in what's new
mdboom Jan 26, 2016
c2580a5
Remove info about Blues colormap -- we're punting
mdboom Jan 26, 2016
f0e98fa
USe tight_layout rather than hardcoded space
mdboom Jan 26, 2016
7718b15
Don't use jet
mdboom Jan 26, 2016
0aae0f0
Don't hardcode linewidth
mdboom Jan 26, 2016
f21d5cf
Fix comment
mdboom Jan 26, 2016
31f28bc
Fix comment
mdboom Jan 26, 2016
b394ae7
Add missing test file
mdboom Jan 27, 2016
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix #4700: Use overlay by default
  • Loading branch information
mdboom committed Jan 25, 2016
commit 451318277b8d8948fa038e93fcffe50f5898a8f6
19 changes: 10 additions & 9 deletions lib/matplotlib/colors.py
Original file line number Diff line number Diff line change
Expand Up @@ -1598,7 +1598,7 @@ def hillshade(self, elevation, vert_exag=1, dx=1, dy=1, fraction=1.):

return intensity

def shade(self, data, cmap, norm=None, blend_mode='hsv', vmin=None,
def shade(self, data, cmap, norm=None, blend_mode='overlay', vmin=None,
vmax=None, vert_exag=1, dx=1, dy=1, fraction=1, **kwargs):
"""
Combine colormapped data values with an illumination intensity map
Expand All @@ -1618,15 +1618,16 @@ def shade(self, data, cmap, norm=None, blend_mode='hsv', vmin=None,
The normalization used to scale values before colormapping. If
None, the input will be linearly scaled between its min and max.
blend_mode : {'hsv', 'overlay', 'soft'} or callable, optional
The type of blending used to combine the colormapped data values
with the illumination intensity. For backwards compatibility, this
defaults to "hsv". Note that for most topographic surfaces,
The type of blending used to combine the colormapped data
values with the illumination intensity. Default is
"overlay". Note that for most topographic surfaces,
"overlay" or "soft" appear more visually realistic. If a
user-defined function is supplied, it is expected to combine an
MxNx3 RGB array of floats (ranging 0 to 1) with an MxNx1 hillshade
array (also 0 to 1). (Call signature `func(rgb, illum, **kwargs)`)
Additional kwargs supplied to this function will be passed on to
the *blend_mode* function.
user-defined function is supplied, it is expected to
combine an MxNx3 RGB array of floats (ranging 0 to 1) with
an MxNx1 hillshade array (also 0 to 1). (Call signature
`func(rgb, illum, **kwargs)`) Additional kwargs supplied
to this function will be passed on to the *blend_mode*
function.
vmin : scalar or None, optional
The minimum value used in colormapping *data*. If *None* the
minimum value in *data* is used. If *norm* is specified, then this
Expand Down
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading