mirror of
https://github.com/kubeshark/kubeshark.git
synced 2025-08-28 13:25:13 +00:00
tmp: Use constrained plot layout
This commit is contained in:
parent
26272c582b
commit
256ebfdbda
@ -1,5 +1,6 @@
|
||||
import matplotlib.pyplot as plt
|
||||
import numpy as np
|
||||
import os
|
||||
import pandas as pd
|
||||
import pathlib
|
||||
import re
|
||||
@ -142,6 +143,7 @@ if __name__ == '__main__':
|
||||
goroutines_samples_df = pd.concat(goroutines_samples_all_files, axis=1)
|
||||
|
||||
group_pattern = r'(\d+)[\w-]*\.\w+$'
|
||||
plt.subplots(constrained_layout=True)
|
||||
|
||||
cpu_plot = plt.subplot(8, 2, 1)
|
||||
plot(cpu_plot, cpu_samples_df, 'cpu', '', 'cpu (%)', group_pattern)
|
||||
|
Loading…
Reference in New Issue
Block a user