79410704

Date: 2025-02-04 06:06:37
Score: 1
Natty:
Report link

On top of JohanC's answer, I personally prefer this way:

import matplotlib.pyplot as plt

box = plt.boxplot([[1,5,6,7,6,10],[1,4,5,5,6,10]],patch_artist=True)

widths = [1,3]
styles = ['*','D']

for n,f in enumerate(box['fliers']):
    f.set(markeredgewidth=widths[n],marker=styles[n])

It will give you the results below:

enter image description here

Reasons:
  • Probably link only (1):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: Dawei Wang