File tree 3 files changed +17
-6
lines changed 3 files changed +17
-6
lines changed Original file line number Diff line number Diff line change 1
- Made the emit property of set_xlim and set_ylim true by default;
2
- removed the Axes custom callback handling into a 'callbacks'
3
- attribute which is a cbook.CallbackRegistry instance. This now
4
- supports the xlim_changed and ylim_changed Axes events.
1
+ Changed default kwarg in colors.Normalize.__init__ to clip=False;
2
+ clipping silently defeats the purpose of the special over, under,
3
+ and bad values in the colormap, thereby leading to unexpected
4
+ behavior. The new default should reduce such surprises.
5
+
6
+ Made the emit property of set_xlim and set_ylim true by default;
7
+ removed the Axes custom callback handling into a 'callbacks'
8
+ attribute which is a cbook.CallbackRegistry instance. This now
9
+ supports the xlim_changed and ylim_changed Axes events.
5
10
6
11
0.90.1 released
7
12
Original file line number Diff line number Diff line change
1
+ 2007-06-25 Changed default to clip=False in colors.Normalize;
2
+ modified ColorbarBase for easier colormap display - EF
3
+
1
4
2007-06-13 Added maskedarray option to rc, numerix - EF
2
5
3
6
2007-06-11 Python 2.5 compatibility fix for mlab.py - EF
Original file line number Diff line number Diff line change @@ -561,15 +561,18 @@ class Normalize:
561
561
"""
562
562
Normalize a given value to the 0-1 range
563
563
"""
564
- def __init__ (self , vmin = None , vmax = None , clip = True ):
564
+ def __init__ (self , vmin = None , vmax = None , clip = False ):
565
565
"""
566
566
If vmin or vmax is not given, they are taken from the input's
567
567
minimum and maximum value respectively. If clip is True and
568
568
the given value falls outside the range, the returned value
569
569
will be 0 or 1, whichever is closer. Returns 0 if vmin==vmax.
570
570
Works with scalars or arrays, including masked arrays. If
571
571
clip is True, masked values are set to 1; otherwise they
572
- remain masked.
572
+ remain masked. Clipping silently defeats the purpose of setting
573
+ the over, under, and masked colors in the colormap, so it is
574
+ likely to lead to surprises; therefore the default is
575
+ clip=False.
573
576
"""
574
577
self .vmin = vmin
575
578
self .vmax = vmax
You can’t perform that action at this time.
0 commit comments