Answers for "scatter plot size python"

-1

python scatterplot figsize

plt.figure(figsize=(8, 8))
plt.scatter(x, y)
Posted by: Guest on June-10-2021
-1

matplotlib units of scatter size

star = MarkerStyle('*')
bbox = star.get_path().transformed(star.get_transform()).get_extents()
star_unit_width = bbox.width
star_unit_height = bbox.height
plt.scatter(0, -1, marker='s', s=(xscale*desired_data_width/star_unit_width)**2)
Posted by: Guest on April-09-2021

Code answers related to "scatter plot size python"

Python Answers by Framework

Browse Popular Code Answers by Language