title: Density plot for truncated data
body: <p>I need to draw the density of a truncated variable. The data can be either bounded from below or from both sides.
  For example,</p>
  
  <pre><code>import numpy as np
  import seaborn as sns
  
  data = np.random.normal(size=1000000)
  data[data &lt; 0] = 0
  data[data &gt; 1] = 1
  sns.kdeplot(data)
  </code></pre>
  
  <p>How can I draw the density such that there is no probability mass outside the boundaries?</p>