fb022d48bb1194dec44af9bbb7c4fd7f66f27ced,examples/pylab_examples/log_demo.py,,,#,12

Before Change


t = np.arange(0.01, 20.0, 0.01)

// log y axis
plt.subplot(221)
plt.semilogy(t, np.exp(-t/5.0))
plt.title("semilogy")
plt.grid(True)

After Change


t = np.arange(0.01, 20.0, 0.01)

// Create figure
fig, ((ax1, ax2), (ax3, ax4)) = plt.subplots(2, 2)

// Note hspace is the amount of height reserved for white space between subplots
// expressed as a fraction of the average axis height
fig.subplots_adjust(hspace=0.5)

// log y axis
ax1.semilogy(t, np.exp(-t/5.0))
ax1.set(title="semilogy")
ax1.grid()

// log x axis
ax2.semilogx(t, np.sin(2*np.pi*t))
ax2.set(title="semilogx")
ax2.grid()

// log x and y axis
ax3.loglog(t, 20*np.exp(-t/10.0), basex=2)
ax3.set(title="loglog base 2 on x")
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 7

Instances


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: 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/scales/symlog_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: