all AI news
Seaborn-High Level Graphical Representation
Aug. 15, 2023, 9:54 a.m. | muradalhasan
DEV Community dev.to
Data visualization library based on Matplotlib. Provides High Level Graphical Interface.
import seaborn as sns
import matplotlib.pyplot as plt
loading dataset,# draw lineplot,# setting the x limit of the plot# # changing the theme to dark
data = sns.load_dataset("iris")
sns.lineplot(x="sepal_length", y="sepal_width", data=data)
plt.xlim(5)
sns.set_style("dark")
plt.show()
figure() method.
data = sns.load_dataset("iris")
plt.figure(figsize = (4, 4))
sns.lineplot(x="sepal_length", y="sepal_width", data=data)
sns.despine()
plt.show()
set_context() method
Syntax:
set_context(context=None, font_scale=1, rc=None)
data = sns.load_dataset("iris")
sns.lineplot(x="sepal_length", y="sepal_width", data=data)
sns.set_context("poster")
plt.show()
*Subplot Already Discued in Matplotlib
Relational Plots-->Relational …
dark data data dataset data visualization figure import library loading matplotlib plot representation seaborn show visualization
More from dev.to / DEV Community
Jobs in AI, ML, Big Data
AI Research Scientist
@ Vara | Berlin, Germany and Remote
Data Architect
@ University of Texas at Austin | Austin, TX
Data ETL Engineer
@ University of Texas at Austin | Austin, TX
Lead GNSS Data Scientist
@ Lurra Systems | Melbourne
Senior Machine Learning Engineer (MLOps)
@ Promaton | Remote, Europe
Senior Software Engineer, Generative AI (C++)
@ SoundHound Inc. | Toronto, Canada