Commit 246c1965 authored by Petr Špaček's avatar Petr Špaček
Browse files

Merge branch 'plot-img-format' into 'main'

Support other image formats

See merge request !6
parents 7f8cd493 e99e97c8
Pipeline #110759 passed with stage
in 1 minute and 26 seconds
......@@ -294,6 +294,7 @@ def parse_args() -> argparse.Namespace:
action="store_true",
help="plot values with absolute timestamps instead of using Shotgun datafile",
)
parser.add_argument("--img-format", default="png", help="output image format")
args = parser.parse_args()
if not args.group and not args.result_dirs:
......@@ -367,7 +368,7 @@ def main():
ax.legend()
fig.tight_layout()
logging.info("saving %s", chart_id)
fig.savefig(f"{args.prefix}{chart_id}.png")
fig.savefig(f"{args.prefix}{chart_id}.{args.img_format}")
if __name__ == "__main__":
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment