diff options
author | Yann E. MORIN <yann.morin.1998@free.fr> | 2013-12-28 18:39:13 +0100 |
---|---|---|
committer | Thomas Petazzoni <thomas.petazzoni@free-electrons.com> | 2013-12-29 12:13:25 +0100 |
commit | f1fedbb246ae90bf30e4342202b11bc3030d9ca7 (patch) | |
tree | 93367bed426d13533a6ce51d9b3d60e15e99650d /support/scripts/graph-build-time | |
parent | 0cfe3ab88c6e1410ca719801147b1ba566c86d0d (diff) | |
download | buildroot-f1fedbb246ae90bf30e4342202b11bc3030d9ca7.tar.gz buildroot-f1fedbb246ae90bf30e4342202b11bc3030d9ca7.zip |
graphs: support generating png graphs
PDF files can not be easily embedded in other documents (eg. ODT, or HTML).
Add support for generating PNG graphs, by setting the GRAPH_OUT=pdf|png on
the command line:
make GRAPH_OUT=png graph-build graph-depends
The default is still to generate PDF graphs.
Signed-off-by: "Yann E. MORIN" <yann.morin.1998@free.fr>
Cc: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Diffstat (limited to 'support/scripts/graph-build-time')
-rwxr-xr-x | support/scripts/graph-build-time | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/support/scripts/graph-build-time b/support/scripts/graph-build-time index 2216db2b65..00c2349faf 100755 --- a/support/scripts/graph-build-time +++ b/support/scripts/graph-build-time @@ -51,7 +51,6 @@ import matplotlib import numpy -matplotlib.use('PDF') import matplotlib.pyplot as plt import matplotlib.font_manager as fm @@ -264,7 +263,7 @@ parser.add_argument("--alternate-colors", '-c', action="store_true", parser.add_argument("--input", '-i', metavar="OUTPUT", help="Input file (usually $(O)/build/build-time.log)") parser.add_argument("--output", '-o', metavar="OUTPUT", required=True, - help="Output file (PDF extension)") + help="Output file (.pdf or .png extension)") args = parser.parse_args() d = read_data(args.input) |