@@ -26,10 +26,10 @@ def _add_guide_kw(name, kwargs, **opts):
26
26
"""
27
27
Add to the `colorbar_kw` or `legend_kw` dict if there are no conflicts.
28
28
"""
29
- # NOTE: Here we *do not* want to overwrite properties in the dictionary.
30
- # Indicates e.g. calling colorbar(extend='both') after pcolor(extend='neither') .
29
+ # NOTE: Here we *do not* want to overwrite properties in dictionary. Indicates
30
+ # e.g. default locator inferred from levels or default title inferred from metadata .
31
31
kwargs = kwargs .setdefault (f'{ name } _kw' , {})
32
- _update_kw (kwargs , overwrite = True , ** opts )
32
+ _update_kw (kwargs , overwrite = False , ** opts )
33
33
34
34
35
35
def _cache_guide_kw (obj , name , kwargs ):
@@ -51,8 +51,8 @@ def _flush_guide_kw(obj, name, kwargs):
51
51
"""
52
52
Flux settings cached on the object into the keyword arguments.
53
53
"""
54
- # NOTE: Here we *do* want to overwrite properties in dictionary. Indicates
55
- # updating kwargs during parsing (probably only relevant for ax.parametric ).
54
+ # NOTE: Here we *do not* overwrite properties in the dictionary by default.
55
+ # Indicates e.g. calling colorbar(extend='both') after pcolor(extend='neither' ).
56
56
# NOTE: Previously had problems reusing same keyword arguments for more than one
57
57
# colorbar() because locator or formatter axis would get reset. Old solution was
58
58
# to delete the _guide_kw but that destroyed default behavior. New solution is
0 commit comments