Skip to content

Commit 671615c

Browse files
khanhlvgTF Object Detection Team
authored andcommitted
Change TF ODT API tests to run on Python 3.7.
PiperOrigin-RevId: 421046167
1 parent ba8a7c1 commit 671615c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

research/object_detection/utils/visualization_utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1294,7 +1294,7 @@ def cdf_plot(values):
12941294
fraction_of_examples = (np.arange(cumulative_values.size, dtype=np.float32)
12951295
/ cumulative_values.size)
12961296
fig = plt.figure(frameon=False)
1297-
ax = fig.add_subplot('111')
1297+
ax = fig.add_subplot(1, 1, 1)
12981298
ax.plot(fraction_of_examples, cumulative_values)
12991299
ax.set_ylabel('cumulative normalized values')
13001300
ax.set_xlabel('fraction of examples')
@@ -1321,7 +1321,7 @@ def add_hist_image_summary(values, bins, name):
13211321
def hist_plot(values, bins):
13221322
"""Numpy function to plot hist."""
13231323
fig = plt.figure(frameon=False)
1324-
ax = fig.add_subplot('111')
1324+
ax = fig.add_subplot(1, 1, 1)
13251325
y, x = np.histogram(values, bins=bins)
13261326
ax.plot(x[:-1], y)
13271327
ax.set_ylabel('count')

0 commit comments

Comments
 (0)