Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
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
3 changes: 3 additions & 0 deletions doc/api/api_changes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ For new features that were added to matplotlib, please see
Changes in 1.2.x
================

* The ``classic`` option of the rc parameter ``toolbar`` is deprecated
and will be removed in the next release.

* The :meth:`~matplotlib.cbook.isvector` method has been removed since it
is no longer functional.

Expand Down
20 changes: 14 additions & 6 deletions doc/faq/troubleshooting_faq.rst
Original file line number Diff line number Diff line change
Expand Up @@ -62,14 +62,22 @@ environment variable -- see

.. _reporting-problems:

Report a problem
================
Getting help
============

If you are having a problem with matplotlib, search the mailing
lists first: there's a good chance someone else has already run into
your problem.
There are a number of good resources for getting help with matplotlib.
There is a good chance your question has already been asked:

If not, please provide the following information in your e-mail to the
- The `mailing list
<http://sourceforge.net/search/?group_id=80706&type_of_search=mlists>`_.

- `Github issues <https://github.com/matplotlib/matplotlib/issues>`_.

- Stackoverflow questions tagged `matplotlib
<http://stackoverflow.com/questions/tagged/matplotlib>`_.

If you are unable to find an answer to your question through search,
please provide the following information in your e-mail to the
`mailing list
<http://lists.sourceforge.net/mailman/listinfo/matplotlib-users>`_:

Expand Down
2 changes: 1 addition & 1 deletion lib/matplotlib/axes.py
Original file line number Diff line number Diff line change
Expand Up @@ -8072,7 +8072,7 @@ def hist(self, x, bins=10, range=None, normed=False, weights=None,
# so that each histogram uses the same bins
m, bins = np.histogram(x[i], bins, weights=w[i], **hist_kwargs)
if mlast is None:
mlast = np.zeros(len(bins)-1, np.int)
mlast = np.zeros(len(bins)-1, m.dtype)
if normed:
db = np.diff(bins)
m = (m.astype(float) / db) / m.sum()
Expand Down
2 changes: 2 additions & 0 deletions lib/matplotlib/backends/backend_svg.py
Original file line number Diff line number Diff line change
Expand Up @@ -1095,6 +1095,8 @@ def print_svg(self, filename, *args, **kwargs):
svgwriter = io.TextIOWrapper(filename, 'utf-8')
else:
svgwriter = codecs.getwriter('utf-8')(filename)
else:
svgwriter = filename
fh_to_close = None
else:
raise ValueError("filename must be a path or a file-like object")
Expand Down
2 changes: 1 addition & 1 deletion lib/matplotlib/pyplot.py
Original file line number Diff line number Diff line change
Expand Up @@ -2654,7 +2654,7 @@ def hist(x, bins=10, range=None, normed=False, weights=None, cumulative=False,
weights=weights, cumulative=cumulative, bottom=bottom,
histtype=histtype, align=align, orientation=orientation,
rwidth=rwidth, log=log, color=color, label=label,
**kwargs)
stacked=stacked, **kwargs)
draw_if_interactive()
finally:
ax.hold(washold)
Expand Down
14 changes: 11 additions & 3 deletions lib/matplotlib/rcsetup.py
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,17 @@ def validate_backend(s):

validate_qt4 = ValidateInStrings('backend.qt4', ['PyQt4', 'PySide'])

validate_toolbar = ValidateInStrings('toolbar',[
'None','classic','toolbar2',
], ignorecase=True)
def validate_toolbar(s):
validator = ValidateInStrings(
'toolbar',
['None','classic','toolbar2'],
ignorecase=True)
s = validator(s)
if s.lower == 'classic':
warnings.warn("'classic' Navigation Toolbar "
"is deprecated in v1.2.x and will be "
"removed in v1.3")
return s

def validate_maskedarray(v):
# 2008/12/12: start warning; later, remove all traces of maskedarray
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