Commit Graph
18 Commits
Author SHA1 Message Date
David Peter bc37eff924 Sort imports 2024-08-28 17:01:09 +02:00
David Peter cfae9cbdab Add PEP-723 inline metadata 2024-08-28 16:52:02 +02:00
David Peter 65dd84fb07 Update formatting, use f-strings 2024-08-28 16:41:58 +02:00
Serpent7776 51d056a3de Add --sort-by option 2024-03-14 08:26:35 +01:00
Serpent7776 836d1730b5 Fix long labels being cut off 2024-03-14 08:26:35 +01:00
Serpent7776 5c9d7a8b1e Nicer whiskers plot
- add missing encoding when opening input file
- add labels to x ticks, rotated by 45 deg
- sort data by median, ascending
2024-03-14 08:26:35 +01:00
Nicolas van Kempen 7684efdd2d Use plt.get_cmap instead of plt.colormaps 2023-04-17 21:54:23 +02:00
Nicolas van Kempen a3eee514ed Fix get_cmap MatplotlibDeprecationWarning 2023-04-17 21:54:23 +02:00
Benjamin Rosemann 49fcc4be37 Change parameter name in plotting scripts
Change the parameter `imagname` to `output` and provide `-o` shortcut.
2021-02-16 08:21:45 +01:00
Benjamin Rosemann b04a9ec6c4 Add parameters to plotting scripts
Add `imgname` parameter to be able to save a plot to a file instead of
showing it. Use-case: platforms without GUI like docker containers.

Add `labels` parameter to histogram plot. Use-case: replacing long
commands with human friendly labels.
2021-02-16 08:21:45 +01:00
David Peter 907d38aa18 Only show title if it is set 2020-11-03 13:46:16 +01:00
muxator 5a80a23bdc scripts: modify shebang to use "/usr/bin/env python"
Before this patch, executing directly one of these scripts, for example
`./plot_hystogram.py` in a unix-like environment meant that the default
system-level python would be used, regardless of an eventual activated
virtualenv.

This was due to the "#!/usr/bin/python" shebang.
Changing it to "/usr/bin/env python" is a fairly standard practice, keeps intact
the compatiblity with the system level python, and allows a user to run in a
virtualenv if he wants.
2020-10-13 12:49:36 +02:00
sharkdp 8fff8643e0 Auto-format Python scripts 2020-04-01 09:35:09 +02:00
sharkdp a870d4db3d Add --labels option for plot_whisker.py 2020-04-01 09:31:55 +02:00
sharkdp b702292505 Remove unnecessary imports 2020-03-21 09:23:42 +01:00
Eugene Obrezkov 9253e9f967 Update plot_whisker.py 2020-03-21 09:23:42 +01:00
Eugene Obrezkov e83e1f787c Update plot_whisker.py 2020-03-21 09:23:42 +01:00
sharkdp ef8a16622d Add a script to plot histograms 2019-10-15 17:49:59 +02:00