Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/v1.2.x'
Browse files Browse the repository at this point in the history
  • Loading branch information
mdboom committed Oct 15, 2012
2 parents ee2d7f7 + 02c1d41 commit e2a29a4
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 9 deletions.
16 changes: 12 additions & 4 deletions lib/matplotlib/__init__.py
Expand Up @@ -214,8 +214,14 @@ class Verbose:
_commandLineVerbose = None

for arg in sys.argv[1:]:
if not arg.startswith('--verbose-'): continue
_commandLineVerbose = arg[10:]
if not arg.startswith('--verbose-'):
continue
level_str = arg[10:]
# If it doesn't match one of ours, then don't even
# bother noting it, we are just a 3rd-party library
# to somebody else's script.
if level_str in levels:
_commandLineVerbose = level_str

def __init__(self):
self.set_level('silent')
Expand All @@ -227,8 +233,10 @@ def set_level(self, level):
if self._commandLineVerbose is not None:
level = self._commandLineVerbose
if level not in self.levels:
raise ValueError('Illegal verbose string "%s". Legal values are %s'%(level, self.levels))
self.level = level
warnings.warn('matplotlib: unrecognized --verbose-* string "%s".'
' Legal values are %s' % (level, self.levels))
else:
self.level = level

def set_fileo(self, fname):
std = {
Expand Down
2 changes: 1 addition & 1 deletion lib/matplotlib/axes.py
Expand Up @@ -8141,7 +8141,7 @@ def hist(self, x, bins=10, range=None, normed=False, weights=None,

x[0::2], x[1::2] = bins, bins

minimum = min(bins)
minimum = np.min(n)

if align == 'left' or align == 'center':
x -= 0.5*(bins[1]-bins[0])
Expand Down
4 changes: 0 additions & 4 deletions lib/matplotlib/rcsetup.py
Expand Up @@ -114,10 +114,6 @@ def validate_backend(s):
'None','classic','toolbar2',
], ignorecase=True)

def validate_autolayout(v):
if v:
warnings.warn("figure.autolayout is not currently supported")

def validate_maskedarray(v):
# 2008/12/12: start warning; later, remove all traces of maskedarray
try:
Expand Down

0 comments on commit e2a29a4

Please sign in to comment.