Answers for "seaborn set plot limits"

1

seaborn axis limits

# Basic syntax:
plt.set(ylim=(lower_bound, upper_bound)) # E.g.:
plt.set(ylim=(0, 100))

# Note, change ylim to xlim to control the range on the x-axis
# Note, use None on either bound to avoid having to specify it, e.g.:
plt.set(ylim=(0, None))
Posted by: Guest on May-12-2021

Python Answers by Framework

Browse Popular Code Answers by Language