How to resize marker using pandas.plot ()

I have a chart created from df.plot(style="o")where the markers are otoo large. Can they be reduced?

import pandas as pd
df = pd.DataFrame(range(1, 10))
df.plot(style="o")

graph where the markers are too big

How can I squeeze them?

+4
source share
1 answer

After research, it looks like you can pass a msshort for markersize(which also works) argument directly to pandas.plot()that has:

import pandas as pd
df = pd.DataFrame(range(1, 10))
df.plot(style="o", ms=3)

enter image description here

+8
source

Source: https://habr.com/ru/post/1663546/


All Articles