This is the mail archive of the libc-alpha@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [RFC] Add script for plotting string benchmark results


On 18/10/2019 15:47, Krzysztof Koch wrote:
> +import matplotlib as mpl
> +mpl.use("Agg")      # Remove this line to use (default) GUI backend
> +
> +import argparse
> +from collections import defaultdict
> +import json
> +import matplotlib.pyplot as plt

i think it should be possible to move this import into
main after arg parsing, then set a global plt.

then you can have a --backend command line option that
changes mpl.use("Agg") to something else.

> +import numpy as np
> +import os
> +


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]