5db9e24175b930604314f92ac46b3eec6275f960,examples/units/bar_demo2.py,,,#,19
Before Change
ax3.bar(cms, cms, bottom=bottom, width=width, xunits=inch, yunits=cm)
ax3.set_xlim(2, 6) // scalars are interpreted in current units
ax4 = fig.add_subplot(2, 2, 4)
ax4.bar(cms, cms, bottom=bottom, width=width, xunits=inch, yunits=inch)
// fig.savefig("simple_conversion_plot.png")
ax4.set_xlim(2*cm, 6*cm) // cm are converted to inches
After Change
bottom = 0 * cm
width = 0.8 * cm
fig, axs = plt.subplots(2, 2)
axs[0, 0].bar(cms, cms, bottom=bottom)
axs[0, 1].bar(cms, cms, bottom=bottom, width=width, xunits=cm, yunits=inch)
axs[1, 0].bar(cms, cms, bottom=bottom, width=width, xunits=inch, yunits=cm)
axs[1, 0].set_xlim(2, 6) // scalars are interpreted in current units
axs[1, 1].bar(cms, cms, bottom=bottom, width=width, xunits=inch, yunits=inch)
axs[1, 1].set_xlim(2 * cm, 6 * cm) // cm are converted to inches
fig.tight_layout()
plt.show()
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 4
Instances
Project Name: matplotlib/matplotlib
Commit Name: 5db9e24175b930604314f92ac46b3eec6275f960
Time: 2017-04-05
Author: dstansby@gmail.com
File Name: examples/units/bar_demo2.py
Class Name:
Method Name:
Project Name: matplotlib/matplotlib
Commit Name: 687bb9573e5926900e8c2bee15514de71700ea59
Time: 2018-03-15
Author: rmay31@gmail.com
File Name: lib/matplotlib/tests/test_offsetbox.py
Class Name:
Method Name: test_expand_with_tight_layout
Project Name: matplotlib/matplotlib
Commit Name: e9a5a2b119f7f76ffbfd0fe62fa9130c117d8dff
Time: 2017-04-23
Author: quantum.analyst@gmail.com
File Name: examples/units/bar_demo2.py
Class Name:
Method Name:
Project Name: matplotlib/matplotlib
Commit Name: c9e90b924f59c968746b244486fd112c4b39c9b9
Time: 2018-03-14
Author: vincent.adrien@gmail.com
File Name: lib/matplotlib/tests/test_offsetbox.py
Class Name:
Method Name: test_expand_with_tight_layout
Project Name: matplotlib/matplotlib
Commit Name: 5db9e24175b930604314f92ac46b3eec6275f960
Time: 2017-04-05
Author: dstansby@gmail.com
File Name: examples/units/bar_demo2.py
Class Name:
Method Name: