[Python] Adding a scatter of points to a boxplot using matplotlib

Discussão em 'Python' iniciado por Stack, Maio 1, 2025.

  1. Stack

    Stack Membro Participativo

    I have seen this wonderful boxplot in this article (Fig.2).

    [​IMG]

    As you can see, this is a boxplot on which are superimposed a scatter of black points: x indexes the black points (in a random order), y is the variable of interest. I would like to do something similar using Matplotlib, but I have no idea where to start. So far, the boxplots which I have found online are way less cool and look like this:

    [​IMG]

    Documentation of matplotlib: http://matplotlib.org/api/pyplot_api.html#matplotlib.pyplot.boxplot

    Ways to colorize boxplots: https://github.com/jbmouret/matplotlib_for_papers#colored-boxes

    Continue reading...

Compartilhe esta Página