# Box-and-whisker plot and updated violin plot

**URL:** <https://racket.discourse.group/t/box-and-whisker-plot-and-updated-violin-plot/622>\
**Category:** General\
**Tags:** plot\
**Created:** [January 25, 2022, 12:59pm UTC](https://racket.discourse.group/t/box-and-whisker-plot-and-updated-violin-plot/622 "2022-01-25T12:59:52Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![alexh](https://yyz2.discourse-cdn.com/free1/user_avatar/racket.discourse.group/alexh/32/315_2.png) [@alexh](https://racket.discourse.group/u/alexh)\
**Post date:** [January 25, 2022, 12:59pm UTC](https://racket.discourse.group/t/box-and-whisker-plot-and-updated-violin-plot/622/1 "2022-01-25T12:59:52Z")

</div>

Hi Eveveryone,

I added support for `box-and-whisker` plots to the plot package and made some updates to the violin renderers that were added recently by Cameron Moy. I put up a pull request with the changes, and if you have time and are interested, you are welcome to review it and provide feedback.

Both the box-and-whisker and violin plots will be available in Racket 8.5 (i.e. it will skip the next Racket release).

> <https://github.com/racket/plot/pull/107>
>
> Add a new \`box-and-whisker\` renderer and update the \`violin\` renderer to use a
> …\`#:width\` parameter instead of the \`#:skip\` and \`#:gap\` arguments. Also
> violin renderer now uses a single set of line parameters (color, width and
> style) instead of two.
> 
> Updated tests and documentation to provide a more comprehensive example.
> 
> !\[pr107-a\](https://user-images.githubusercontent.com/11592690/150977732-a0d0e97b-9920-4800-a59b-cfc94557ebc4.png)
> 
> !\[pr107-d\](https://user-images.githubusercontent.com/11592690/150977760-8726b80d-6f53-4908-b680-9f2dff04e338.png)

Here is what the two plot renderers look like:

 ![pr107-a](https://global.discourse-cdn.com/free1/uploads/racket/original/1X/527c06e5961e142f5f3dfa0bb005f7b0d58be2b7.png)

 ![pr107-d](https://global.discourse-cdn.com/free1/uploads/racket/original/1X/e9978dff9cbc612fd9d54e31816e7f01cba4a2f0.png)

Alex.
