I was wondering if there is a way to constrain the distribution shown on a violin plot to be within the bounds of the data that is being plotted. What I am looking for is something like seaborns ‘cut’. Basically, I want to constrain the distribution curve generated by the violin plot to have the same max and min value as my data.
Hi @purpleboy
You can restrict plotting the pdf to a given range, using the attributes span, and spanmode.
span is a list of two values span =[start, end] and spanmode = 'manual'