Skip to content

Commit e4ff080

Browse files
authored
Update matplotlib-violin_plots.md
1 parent 7c7752d commit e4ff080

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

contrib/plotting-visualization/matplotlib-violin_plots.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ plt.show()
3434
When executed, this would show the following pie chart:
3535

3636

37-
![Basic violin plot](images\violinplotnocolor.png)
37+
![Basic violin plot](images/violinplotnocolor.png)
3838

3939

4040
The `Violinplot` function in matplotlib.pyplot creates a violin plot, which is a graphical representation of the distribution of data across different levels of a categorical variable. Here's a breakdown of its usage:
@@ -96,7 +96,7 @@ plt.show()
9696
This code snippet creates a violin plot with custom colors assigned to each violin, enhancing the visual appeal and clarity of the plot.
9797

9898

99-
![Coloring violin](images\violenplotnormal.png)
99+
![Coloring violin](images/violenplotnormal.png)
100100

101101

102102
When customizing violin plots using `matplotlib.pyplot.subplots()`, you obtain a `Figure` object `fig` and an `Axes` object `ax`, allowing for extensive customization. Each `violin plot` consists of various components, including the `violin body`, `lines representing median and quartiles`, and `potential markers for mean and outliers`. You can customize these components using the appropriate methods and attributes of the Axes object.

0 commit comments

Comments
 (0)