Skip to content
Myr

Add --log-time and --log-x flags

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by sharkdp · committed by sharkdp · parent d441eef · Browse files · 1 file+16 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+16 added−1 removed

  • other:+16 added−1 removed

1 file+16 added−1 removed

modified:scripts/plot_parametrized.py+16 added-1 removed
13 unmodified lines
14 metavar="name",15 type=str,16 help="Name of the parameter / x-axis label",17)18parser.add_argument(19 "--log-x", help="Use a logarithmic x (parameter) axis", action="store_true"20)21parser.add_argument(22 "--log-time", help="Use a logarithmic time axis", action="store_true"23)2425args = parser.parse_args()2627for filename in args.file:28 with open(filename) as f:
6 unmodified lines
35 plt.errorbar(x=parameter_values, y=times_mean, yerr=times_stddev, capsize=2)3637plt.xlabel(args.parameter_name)38plt.ylabel("Time [s]")3940if args.log_time:41 plt.yscale("log")42else:32plt.ylim(0, None)43 plt.ylim(0, None)4445if args.log_x:46 plt.xscale("log")4748plt.show()