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

Before Change


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

// log x axis
plt.subplot(222)

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: 4

Non-data size: 6

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: b2a2dccef7052753b8e2c1d99cf0183a03494c17
Time: 2017-07-16
Author: dmgt@users.noreply.github.com
File Name: examples/pylab_examples/simple_plot.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: 8e2a74583e11fe77f116ee1f1b186f0875d8ce66
Time: 2019-07-30
Author: mbussonnier@ucmerced.edu
File Name: examples/subplots_axes_and_figures/invert_axes.py
Class Name:
Method Name: