mirror of
https://github.com/macaodha/batdetect2.git
synced 2026-01-11 09:29:33 +01:00
Add plot limits
This commit is contained in:
parent
2308ea83a3
commit
2cc0bd59d4
@ -91,7 +91,7 @@ def plot_class_examples(
|
|||||||
):
|
):
|
||||||
fig = plt.figure(figsize=(20, 20))
|
fig = plt.figure(figsize=(20, 20))
|
||||||
|
|
||||||
for index, match in enumerate(true_positives):
|
for index, match in enumerate(true_positives[:n_examples]):
|
||||||
ax = plt.subplot(4, n_examples, index + 1)
|
ax = plt.subplot(4, n_examples, index + 1)
|
||||||
try:
|
try:
|
||||||
plotting.plot_true_positive_match(
|
plotting.plot_true_positive_match(
|
||||||
@ -103,7 +103,7 @@ def plot_class_examples(
|
|||||||
except ValueError:
|
except ValueError:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
for index, match in enumerate(false_positives):
|
for index, match in enumerate(false_positives[:n_examples]):
|
||||||
ax = plt.subplot(4, n_examples, n_examples + index + 1)
|
ax = plt.subplot(4, n_examples, n_examples + index + 1)
|
||||||
try:
|
try:
|
||||||
plotting.plot_false_positive_match(
|
plotting.plot_false_positive_match(
|
||||||
@ -115,7 +115,7 @@ def plot_class_examples(
|
|||||||
except ValueError:
|
except ValueError:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
for index, match in enumerate(false_negatives):
|
for index, match in enumerate(false_negatives[:n_examples]):
|
||||||
ax = plt.subplot(4, n_examples, 2 * n_examples + index + 1)
|
ax = plt.subplot(4, n_examples, 2 * n_examples + index + 1)
|
||||||
try:
|
try:
|
||||||
plotting.plot_false_negative_match(
|
plotting.plot_false_negative_match(
|
||||||
@ -127,7 +127,7 @@ def plot_class_examples(
|
|||||||
except ValueError:
|
except ValueError:
|
||||||
continue
|
continue
|
||||||
|
|
||||||
for index, match in enumerate(cross_triggers):
|
for index, match in enumerate(cross_triggers[:n_examples]):
|
||||||
ax = plt.subplot(4, n_examples, 4 * n_examples + index + 1)
|
ax = plt.subplot(4, n_examples, 4 * n_examples + index + 1)
|
||||||
try:
|
try:
|
||||||
plotting.plot_cross_trigger_match(
|
plotting.plot_cross_trigger_match(
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user