To make scatter points smaller and add axhline centered at y=0 in python using matplotlib library, we can adjust the s parameter of the scatter plot to make the points smaller, and use the axhline function.
Here is an example code:
main.py277 chars17 lines
In this example, s=20 adjusts the scatter plot point size, and ax.axhline(y=0, color='black') adds a horizontal line at y=0.
Adjust the values of s and y based on your preference.
gistlibby LogSnag