[PYTHON] Pharmaceutical company researchers summarized Seaborn

Introduction

Here, we will explain the basic usage of Seaborn. It is supposed to use Python3 series.

import

By convention, it is often imported as sns.

Seaborn_1.py


import seaborn as sns

Application of Seaborn

You can change the appearance of the figure created by matplotlib by using the seaborn.set () method.

Seaborn_2.py


%matplotlib inline
import matplotlib.pyplot as plt
import seaborn as sns

sns.set()

x = [1, 2, 3]
y = [3, 1, 2]
plt.title('Line-chart') #Graph title
plt.xlabel('X-axis') #x-axis label
plt.ylabel('Y-axis') #y-axis label

plt.plot(x, y) #Create a graph
plt.savefig('seaborn_2.png') #Save the graph as an image file

seaborn_2.png

Summary

Here, I explained the basic usage of Seaborn. If you want to change the appearance of the figure created by Matplotlib, you should use it.

Reference materials / links

What is the programming language Python? Can it be used for AI and machine learning?

Recommended Posts

Pharmaceutical company researchers summarized Seaborn
Pharmaceutical company researchers summarized SciPy
Pharmaceutical company researchers summarized RDKit
Pharmaceutical company researchers summarized scikit-learn
Pharmaceutical company researchers summarized Pandas
Pharmaceutical company researchers summarized NumPy
Pharmaceutical company researchers summarized Matplotlib
Pharmaceutical company researchers summarized Python's comprehensions
Pharmaceutical company researchers summarized Python control statements
Pharmaceutical company researchers summarized Python's data structures
Pharmaceutical company researchers summarized Python unit tests
Pharmaceutical company researchers summarized functions in Python
Pharmaceutical company researchers summarized Python exception handling
Pharmaceutical company researchers summarized Python coding standards
Pharmaceutical company researchers summarized variables in Python
Pharmaceutical company researchers summarized regular expressions in Python
Pharmaceutical company researchers summarized web scraping using Python
Pharmaceutical company researchers summarized file scanning in Python
Pharmaceutical company researchers summarized database operations using Python
Pharmaceutical company researchers have summarized the operators used in Python
A pharmaceutical company researcher summarized the basic description rules of Python