plotting
This commit is contained in:
@@ -45,11 +45,7 @@ class FactoryMonitor:
|
||||
def to_pd_dataframe(self):
|
||||
import pandas as pd
|
||||
df = pd.DataFrame.from_dict(self.to_dict())
|
||||
try:
|
||||
df.loc[0] = df.iloc[0].fillna(0)
|
||||
except IndexError:
|
||||
return None
|
||||
df = df.fillna(method='ffill')
|
||||
df.fillna(0)
|
||||
return df
|
||||
|
||||
def reset(self):
|
||||
|
@@ -15,7 +15,7 @@ def plot(filepath, ext='png', tag='monitor', **kwargs):
|
||||
def prepare_plot(filepath, results_df, ext='png', tag=''):
|
||||
# %%
|
||||
|
||||
_ = sns.lineplot(data=results_df)
|
||||
_ = sns.lineplot(data=results_df, ci='sd', x='step')
|
||||
|
||||
# %%
|
||||
sns.set_theme(palette='husl', style='whitegrid')
|
||||
|
Reference in New Issue
Block a user