# HG changeset patch # User Amine Sehili # Date 1570655928 -3600 # Node ID ce60e2ec33b0663a2c6cedbafed0021eb0bf2cf5 # Parent 398eab3c377c30b806f6b61b0c03fe809fa1e4a9 Update call to plotting code in main diff -r 398eab3c377c -r ce60e2ec33b0 auditok/cmdline.py --- a/auditok/cmdline.py Wed Oct 09 22:10:13 2019 +0100 +++ b/auditok/cmdline.py Wed Oct 09 22:18:48 2019 +0100 @@ -399,7 +399,7 @@ print(str(ae_warn), file=sys.stderr) if args.plot or args.save_image is not None: - from .plotting import plot_detections + from .plotting import plot reader.rewind() record = AudioRegion( @@ -408,10 +408,9 @@ detections = ( (det.start, det.end) for det in tokenizer_worker.detections ) - plot_detections( + plot( record, - record.sr, - detections, + detections=detections, show=True, save_as=args.save_image, )