Answers for "plot.scatter size"

-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
-1

python scatterplot figsize

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

Browse Popular Code Answers by Language