39fb7b5b96ea46aca94099d166106365eaf0647e,lib/matplotlib/tests/test_backend_ps.py,,test_savefig_to_stringio,#Any#Any#Any#,49
Before Change
matplotlib.rcParams.update(rcParams)
fig, ax = plt.subplots()
buffers = [
six.moves.StringIO(),
io.StringIO(),
io.BytesIO()]
if use_log:
ax.set_yscale("log")
ax.plot([1, 2], [1, 2])
ax.set_title(u"Déjà vu")
for buffer in buffers:
fig.savefig(buffer, format=format)
values = [x.getvalue() for x in buffers]
if six.PY3:
values = [
After Change
ax.plot([1, 2], [1, 2])
ax.set_title("Déjà vu")
fig.savefig(s_buf, format=format)
fig.savefig(b_buf, format=format)
s_val = s_buf.getvalue().encode("ascii")
b_val = b_buf.getvalue()
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 4
Instances
Project Name: matplotlib/matplotlib
Commit Name: 39fb7b5b96ea46aca94099d166106365eaf0647e
Time: 2018-03-08
Author: anntzer.lee@gmail.com
File Name: lib/matplotlib/tests/test_backend_ps.py
Class Name:
Method Name: test_savefig_to_stringio
Project Name: brian-team/brian2
Commit Name: f1341aadc81819ed2bb3223a9fa878ec7b25f547
Time: 2015-12-01
Author: dg.github@thesamovar.net
File Name: dev/benchmarks/compare_to_brian1.py
Class Name:
Method Name:
Project Name: tgsmith61591/pmdarima
Commit Name: 1695474f2c38c008638a2540e715876ec29fb0f2
Time: 2018-12-02
Author: drotarcharles@yahoo.com
File Name: pmdarima/arima/tests/test_arima.py
Class Name:
Method Name: test_plot_diagnostics
Project Name: has2k1/plotnine
Commit Name: 55107185fbb36dda8069409173fb570ea9094c73
Time: 2020-11-30
Author: has2k1@gmail.com
File Name: plotnine/ggplot.py
Class Name:
Method Name: save_as_pdf_pages