Browse Source

Matplotlib AGG backend (#1413)

5.0
Glenn Jocher GitHub 4 years ago
parent
commit
92c9b72832
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      utils/plots.py

+ 3
- 0
utils/plots.py View File

@@ -19,6 +19,9 @@ from scipy.signal import butter, filtfilt
from utils.general import xywh2xyxy, xyxy2xywh
from utils.metrics import fitness

# Settings
matplotlib.use('Agg') # for writing to files only


def color_list():
# Return first 10 plt colors as (r,g,b) https://stackoverflow.com/questions/51350872/python-from-color-name-to-rgb

Loading…
Cancel
Save