07aa92b15195381e9c3ee07f62ba7602caa5a46f,examples/scales/symlog_demo.py,,,#,11

Before Change


plt.plot(x, y)
plt.xscale("symlog")
plt.ylabel("symlogx")
plt.grid(True)
plt.gca().xaxis.grid(True, which="minor")  // minor grid on too

plt.subplot(312)
plt.plot(y, x)

After Change


x = np.arange(-50.0, 50.0, dt)
y = np.arange(0, 100.0, dt)

fig, (ax0, ax1, ax2) = plt.subplots(nrows=3)

ax0.plot(x, y)
ax0.set_xscale("symlog")
ax0.set_ylabel("symlogx")
ax0.grid()
ax0.xaxis.grid(which="minor")  // minor grid on too

ax1.plot(y, x)
ax1.set_yscale("symlog")
ax1.set_ylabel("symlogy")

ax2.plot(x, np.sin(x / 3.0))
ax2.set_xscale("symlog")
ax2.set_yscale("symlog", linthresh=0.015)
ax2.grid()
ax2.set_ylabel("symlog both")

fig.tight_layout()
plt.show()
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 7

Instances


Project Name: matplotlib/matplotlib
Commit Name: 07aa92b15195381e9c3ee07f62ba7602caa5a46f
Time: 2021-01-25
Author: ianthomas23@gmail.com
File Name: examples/scales/symlog_demo.py
Class Name:
Method Name:


Project Name: matplotlib/matplotlib
Commit Name: fb022d48bb1194dec44af9bbb7c4fd7f66f27ced
Time: 2017-07-21
Author: dmgt@users.noreply.github.com
File Name: examples/pylab_examples/log_demo.py
Class Name:
Method Name:


Project Name: matplotlib/matplotlib
Commit Name: 07aa92b15195381e9c3ee07f62ba7602caa5a46f
Time: 2021-01-25
Author: ianthomas23@gmail.com
File Name: examples/text_labels_and_annotations/multiline.py
Class Name:
Method Name:


Project Name: matplotlib/matplotlib
Commit Name: 07aa92b15195381e9c3ee07f62ba7602caa5a46f
Time: 2021-01-25
Author: ianthomas23@gmail.com
File Name: examples/scales/symlog_demo.py
Class Name:
Method Name: