Skip to content

Commit d309fff

Browse files
Internal change
PiperOrigin-RevId: 481405783
1 parent e7027fe commit d309fff

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

official/vision/utils/object_detection/visualization_utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -679,7 +679,7 @@ def cdf_plot(values):
679679
np.arange(cumulative_values.size, dtype=np.float32) /
680680
cumulative_values.size)
681681
fig = plt.figure(frameon=False)
682-
ax = fig.add_subplot('111')
682+
ax = fig.add_subplot(1, 1, 1)
683683
ax.plot(fraction_of_examples, cumulative_values)
684684
ax.set_ylabel('cumulative normalized values')
685685
ax.set_xlabel('fraction of examples')
@@ -708,7 +708,7 @@ def add_hist_image_summary(values, bins, name):
708708
def hist_plot(values, bins):
709709
"""Numpy function to plot hist."""
710710
fig = plt.figure(frameon=False)
711-
ax = fig.add_subplot('111')
711+
ax = fig.add_subplot(1, 1, 1)
712712
y, x = np.histogram(values, bins=bins)
713713
ax.plot(x[:-1], y)
714714
ax.set_ylabel('count')

0 commit comments

Comments
 (0)