Answers for "plt scatter marker size"

6

python marker size

>>> plot(x, y, 'go--', linewidth=2, markersize=12)
>>> plot(x, y, color='green', marker='o', linestyle='dashed',
...      linewidth=2, markersize=12)
Posted by: Guest on July-16-2020
0

how to decrease size of graph in plt.scatter

fig, ax = plt.subplots(figsize=(10, 6))
Posted by: Guest on March-31-2021
0

how to decrease size of graph in plt.scatter

#In cmd
pip install scikit-learn

#Or in Conda
conda install scikit-learn

import sklearn
from sklearn import datasets
Posted by: Guest on March-31-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

Python Answers by Framework

Browse Popular Code Answers by Language