diff --git a/plotly/matplotlylib/renderer.py b/plotly/matplotlylib/renderer.py index d55f86ef3c2..71f5b207db0 100644 --- a/plotly/matplotlylib/renderer.py +++ b/plotly/matplotlylib/renderer.py @@ -14,14 +14,6 @@ from plotly.matplotlylib import mpltools -# Warning format -def warning_on_one_line(msg, category, filename, lineno, file=None, line=None): - return "%s:%s: %s:\n\n%s\n\n" % (filename, lineno, category.__name__, msg) - - -warnings.formatwarning = warning_on_one_line - - class PlotlyRenderer(Renderer): """A renderer class inheriting from base for rendering mpl plots in plotly. diff --git a/plotly/tools.py b/plotly/tools.py index 67f828204d7..b0875507439 100644 --- a/plotly/tools.py +++ b/plotly/tools.py @@ -55,14 +55,6 @@ ALTERNATIVE_HISTNORM = "probability" -# Warning format -def warning_on_one_line(message, category, filename, lineno, file=None, line=None): - return "%s:%s: %s:\n\n%s\n\n" % (filename, lineno, category.__name__, message) - - -warnings.formatwarning = warning_on_one_line - - ### mpl-related tools ### def mpl_to_plotly(fig, resize=False, strip_style=False, verbose=False): """Convert a matplotlib figure to plotly dictionary and send.