May-25-2021, 05:40 PM
(This post was last modified: May-25-2021, 05:40 PM by ju21878436312.)
Hi there,
Following some tipps I somehow changed some global settings in seaborn and I would like to reset everything concerning seaborn and matplotlib.
It seems I shifted the y-axis somehow.
Following some tipps I somehow changed some global settings in seaborn and I would like to reset everything concerning seaborn and matplotlib.
It seems I shifted the y-axis somehow.
import pandas as pd
import numpy as np
from random import * # random numbers
import matplotlib.pyplot as plt
import seaborn as sns
import importlib
importlib.reload(mpl); importlib.reload(plt); importlib.reload(sns)
df = pd.DataFrame(np.random.randint(0,100,size=(10, 2)), columns=list('AB'))
print(df)
a4_dims = (11.7, 8.27)
fig, ax = plt.subplots(figsize=a4_dims)
seaborn.violinplot(y=df["A"], data=df)
fig = ax.get_figure()
fig.savefig('minimal_violinplot.png', dpi=300)I have tried out something like: import matplotlib as mpl import matplotlib.pyplot as plt import seaborn as sns import importlib importlib.reload(mpl); importlib.reload(plt); importlib.reload(sns)in the preamble, which does not work. Neither:
sns.reset_orig()Any ideas? I would be vrey grateful!
