ac10acb627df7db3eb661bf4bafdd75854b3051a,tutorials/intermediate/imshow_extent.py,,generate_imshow_demo_grid,#Any#Any#Any#,135
Before Change
plot_imshow_with_labels(ax, data, extent, origin, xlim, ylim)
for ax, extent in zip(columns["label"], extents):
text_kwargs = {"ha": "right",
"va": "center",
"xycoords": "axes fraction",
"xy": (1, .5)}
if extent is None:
ax.annotate("None", **text_kwargs)
ax.set_title("extent=")
else:
After Change
columns["label"][0].set_title("extent=")
for ax, extent in zip(columns["label"], extents):
if extent is None:
text = "None"
else:
left, right, bottom, top = extent
text = (f"left: {left:0.1f}\nright: {right:0.1f}\n"
f"bottom: {bottom:0.1f}\ntop: {top:0.1f}\n")
ax.text(1., .5, text, transform=ax.transAxes, ha="right", va="center")
ax.axis("off")
return columns
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
Project Name: matplotlib/matplotlib
Commit Name: ac10acb627df7db3eb661bf4bafdd75854b3051a
Time: 2020-04-02
Author: anntzer.lee@gmail.com
File Name: tutorials/intermediate/imshow_extent.py
Class Name:
Method Name: generate_imshow_demo_grid
Project Name: MIC-DKFZ/trixi
Commit Name: f04c2384c98e80b37ac442f5e0fb6152d4ee059e
Time: 2019-03-01
Author: t.adler@dkfz-heidelberg.de
File Name: trixi/logger/visdom/numpyvisdomlogger.py
Class Name: NumpyVisdomLogger
Method Name: show_text
Project Name: matplotlib/matplotlib
Commit Name: 285c8d2190054b4929f5f2d343ff584293ff3f6d
Time: 2018-04-26
Author: 2836374+timhoffm@users.noreply.github.com
File Name: tutorials/intermediate/imshow_extent.py
Class Name:
Method Name: generate_imshow_demo_grid