<jupyter_start><jupyter_text>[Matplotlib](https://python-graph-gallery.com/matplotlib/) allows you to make absolutely any type of chart. However the chart **style** of matplotlib library is not as fancy as seaborn style. It is possible to benefit from [seaborn](https://python-graph-gallery.com/seaborn/) library style when plotting charts in matplotlib. You just need to load the seaborn library and use seaborn `set_theme()` function!<jupyter_code># library and dataset
from matplotlib import pyplot as plt
import pandas as pd
import numpy as np
 
# Create data
df=pd.DataFrame({'x_axis': range(1,101), 'y_axis': np.random.randn(100)*15+range(1,101), 'z': (np.random.randn(100)*15+range(1,101))*2 })
 
# plot with matplotlib
plt.plot( 'x_axis', 'y_axis', data=df, marker='o', color='mediumvioletred')
plt.show()
# library and dataset
from matplotlib import pyplot as plt
import pandas as pd
import numpy as np
 
# Create data
df=pd.DataFrame({'x_axis': range(1,101), 'y_axis': np.random.randn(100)*15+range(1,101), 'z': (np.random.randn(100)*15+range(1,101))*2 })

# Just load seaborn & set theme and the chart looks better:
import seaborn as sns
sns.set_theme()

# Plot
plt.plot( 'x_axis', 'y_axis', data=df, marker='o', color='mediumvioletred')
plt.show()<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.14119472459270752, 'fraction_numerical': 0.035686578743211794, 'mean_word_length': 6.049180327868853, 'pattern_counts': {'":': 0, '<': 5, '<?xml version=': 0, '>': 5, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '1', 'dir': 'jupyter-structured-clean-dedup', 'id': '625821', 'license': '0BSD', 'n_tokens_mistral': 484, 'n_tokens_neox': 445, 'n_words': 134, 'path': 'src/notebooks/106-seaborn-style-on-matplotlib-plot.ipynb', 'repo_name': 's-lasch/The-Python-Graph-Gallery', 'size': '1289'}