<p dir="auto">penguins = sns.load_dataset("penguins")<br>
sns.displot(data=penguins, x="flipper_length_mm", col='species', facet_kws=dict(sharex=False, sharey=False))</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/3391614/218545874-ff5a5360-3310-4cc7-b410-878fa7e266a6.png"><img src="https://user-images.githubusercontent.com/3391614/218545874-ff5a5360-3310-4cc7-b410-878fa7e266a6.png" alt="image" style="max-width: 100%;"></a></p>
<p dir="auto">The x-axis should not be shared.</p>
<p dir="auto">I am trying to use <code class="notranslate">displot</code> to plot distributions of different variables in the same figure. I might be using <code class="notranslate">displot</code> incorrectly, but it seems to me that the <code class="notranslate">sharex</code> option passed to <code class="notranslate">facet_kws</code> is not working correctly (while <code class="notranslate">sharey</code> does work as expected).</p>
<p dir="auto">Simple code snippet to reproduce:</p>
<div class="highlight highlight-source-python notranslate position-relative overflow-auto" dir="auto" data-snippet-clipboard-copy-content="import pandas as pd

import seaborn as sns
from matplotlib import pyplot as plt

titanic = sns.load_dataset(&quot;titanic&quot;)
df = pd.melt(titanic, id_vars=[&quot;sex&quot;, &quot;class&quot;], value_vars=[&quot;fare&quot;, &quot;age&quot;])
sns.displot(
    data=df,
    x=&quot;value&quot;,
    col=&quot;variable&quot;,
    hue=&quot;sex&quot;,
    facet_kws={&quot;sharex&quot;: False, &quot;sharey&quot;: False},
)
plt.savefig(&quot;test.png&quot;)"><pre class="notranslate"><span class="pl-k">import</span> <span class="pl-s1">pandas</span> <span class="pl-k">as</span> <span class="pl-s1">pd</span>

<span class="pl-k">import</span> <span class="pl-s1">seaborn</span> <span class="pl-k">as</span> <span class="pl-s1">sns</span>
<span class="pl-k">from</span> <span class="pl-s1">matplotlib</span> <span class="pl-k">import</span> <span class="pl-s1">pyplot</span> <span class="pl-k">as</span> <span class="pl-s1">plt</span>

<span class="pl-s1">titanic</span> <span class="pl-c1">=</span> <span class="pl-s1">sns</span>.<span class="pl-en">load_dataset</span>(<span class="pl-s">"titanic"</span>)
<span class="pl-s1">df</span> <span class="pl-c1">=</span> <span class="pl-s1">pd</span>.<span class="pl-en">melt</span>(<span class="pl-s1">titanic</span>, <span class="pl-s1">id_vars</span><span class="pl-c1">=</span>[<span class="pl-s">"sex"</span>, <span class="pl-s">"class"</span>], <span class="pl-s1">value_vars</span><span class="pl-c1">=</span>[<span class="pl-s">"fare"</span>, <span class="pl-s">"age"</span>])
<span class="pl-s1">sns</span>.<span class="pl-en">displot</span>(
    <span class="pl-s1">data</span><span class="pl-c1">=</span><span class="pl-s1">df</span>,
    <span class="pl-s1">x</span><span class="pl-c1">=</span><span class="pl-s">"value"</span>,
    <span class="pl-s1">col</span><span class="pl-c1">=</span><span class="pl-s">"variable"</span>,
    <span class="pl-s1">hue</span><span class="pl-c1">=</span><span class="pl-s">"sex"</span>,
    <span class="pl-s1">facet_kws</span><span class="pl-c1">=</span>{<span class="pl-s">"sharex"</span>: <span class="pl-c1">False</span>, <span class="pl-s">"sharey"</span>: <span class="pl-c1">False</span>},
)
<span class="pl-s1">plt</span>.<span class="pl-en">savefig</span>(<span class="pl-s">"test.png"</span>)</pre></div>
<p dir="auto">The result is the following:</p>
<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/11348981/115027257-c6706c80-9ec3-11eb-95c1-19b27e0b0e46.png"><img src="https://user-images.githubusercontent.com/11348981/115027257-c6706c80-9ec3-11eb-95c1-19b27e0b0e46.png" alt="test" style="max-width: 100%;"></a></p>
<p dir="auto">As you can see, the <code class="notranslate">y</code> axes have different values, while the <code class="notranslate">x</code> axes seem to be shared despite the <code class="notranslate">"sharex": False</code> keyword.</p>