Short for Seaborn, matplotlib.pyplot

Asked 2 years ago, Updated 2 years ago, 94 views

Why is seaborn abbreviated as sns?
Also, I see that matplotlib is abbreviated as plt or mpl, which one is more common?

matplotlib

2022-09-30 19:35

1 Answers

·sns
You can trace the link here, but sns is the initial of the character named Seaborn.
Samuel Norman"Sam"Seaborn

·plt and mpl
I think matplotlib.pyplot is plt, matplot is mpl.

import matplotlib.pyplot as plt
import matplotlib as mpl


2022-09-30 19:35

If you have any answers or tips


© 2024 OneMinuteCode. All rights reserved.