tyrwh commited on
Commit
8beb05b
·
1 Parent(s): 471a225

More plotting fixes

Browse files
Files changed (2) hide show
  1. app.py +5 -5
  2. static/script.js +2 -3
app.py CHANGED
@@ -1,24 +1,24 @@
1
  from flask import Flask, render_template, request, jsonify, send_from_directory, send_file, Response
2
  from multiprocessing import Pool, cpu_count
 
3
  from pathlib import Path
4
- import tempfile
 
5
  import os
 
6
  import uuid
7
  import pandas as pd
8
  from werkzeug.utils import secure_filename
9
  import traceback
10
  import sys
11
  import re
12
- from PIL import Image
13
  import io
14
  import threading
15
  import time
16
- from datetime import datetime
17
  import zipfile
18
  import cv2
19
- import numpy as np
20
  import csv
21
- from threading import Thread
22
 
23
  from yolo_utils import load_model, detect_image
24
 
 
1
  from flask import Flask, render_template, request, jsonify, send_from_directory, send_file, Response
2
  from multiprocessing import Pool, cpu_count
3
+ from threading import Thread
4
  from pathlib import Path
5
+ from PIL import Image
6
+ from datetime import datetime
7
  import os
8
+ import tempfile
9
  import uuid
10
  import pandas as pd
11
  from werkzeug.utils import secure_filename
12
  import traceback
13
  import sys
14
  import re
 
15
  import io
16
  import threading
17
  import time
 
18
  import zipfile
19
  import cv2
 
20
  import csv
21
+ import numpy as np
22
 
23
  from yolo_utils import load_model, detect_image
24
 
static/script.js CHANGED
@@ -1198,11 +1198,10 @@ document.addEventListener('DOMContentLoaded', () => {
1198
  showlegend: false
1199
  };
1200
 
1201
- // Remove the vertical line from layout.shapes
1202
  const layout = {
1203
  margin: {t: 20, r: 20, l: 40, b: 40},
1204
- xaxis: {title: 'Threshold', dtick: 0.1, range: [0, 1], title_standoff: 18},
1205
- yaxis: {title: 'Total Eggs Detected', rangemode: 'tozero', title_standoff: 18},
1206
  showlegend: false,
1207
  height: 320
1208
  };
 
1198
  showlegend: false
1199
  };
1200
 
 
1201
  const layout = {
1202
  margin: {t: 20, r: 20, l: 40, b: 40},
1203
+ xaxis: {title: 'Threshold', dtick: 0.1, range: [0, 1], automargin: true, title_standoff: 18},
1204
+ yaxis: {title: 'Total Eggs Detected', rangemode: 'tozero', automargin: true, title_standoff: 18},
1205
  showlegend: false,
1206
  height: 320
1207
  };