mirror of
https://github.com/macaodha/batdetect2.git
synced 2026-01-10 17:19:34 +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))
|
||||
|
||||
for index, match in enumerate(true_positives):
|
||||
for index, match in enumerate(true_positives[:n_examples]):
|
||||
ax = plt.subplot(4, n_examples, index + 1)
|
||||
try:
|
||||
plotting.plot_true_positive_match(
|
||||
@ -103,7 +103,7 @@ def plot_class_examples(
|
||||
except ValueError:
|
||||
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)
|
||||
try:
|
||||
plotting.plot_false_positive_match(
|
||||
@ -115,7 +115,7 @@ def plot_class_examples(
|
||||
except ValueError:
|
||||
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)
|
||||
try:
|
||||
plotting.plot_false_negative_match(
|
||||
@ -127,7 +127,7 @@ def plot_class_examples(
|
||||
except ValueError:
|
||||
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)
|
||||
try:
|
||||
plotting.plot_cross_trigger_match(
|
||||
|
||||
Loading…
Reference in New Issue
Block a user