<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Seaborn plot display in Databricks in Data Engineering</title>
    <link>https://community.databricks.com/t5/data-engineering/seaborn-plot-display-in-databricks/m-p/28376#M20196</link>
    <description>&lt;P&gt;Try changing the last line in your code:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;display(plt.show())&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;to&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;display(g.fig)&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;My results doing that:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.databricks.com/s/contentdocument/0693f000007PIymAAG" alt="https://community.databricks.com/s/contentdocument/0693f000007PIymAAG" target="_blank"&gt;help-databircks.png&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
    <pubDate>Fri, 05 Apr 2019 19:18:41 GMT</pubDate>
    <dc:creator>migueldhr</dc:creator>
    <dc:date>2019-04-05T19:18:41Z</dc:date>
    <item>
      <title>Seaborn plot display in Databricks</title>
      <link>https://community.databricks.com/t5/data-engineering/seaborn-plot-display-in-databricks/m-p/28374#M20194</link>
      <description>&lt;P&gt;&lt;/P&gt;
&lt;P&gt;I am using Seaborn version 0.7.1 and matplotlib version 1.5.3 &lt;/P&gt;
&lt;P&gt;The following code does not display a graph in the end. Any idea how to resolve ? (works in Python CLI on my local computer)&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;import seaborn as sns
sns.set(style="darkgrid")
tips = sns.load_dataset("tips")
color = sns.color_palette()[2]
g = sns.jointplot("total_bill", "tip", data=tips, kind="reg",
                  xlim=(0, 60), ylim=(0, 12), color=color, size=7)
import matplotlib.pyplot as plt
display(plt.show())
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Instead of an image, I get the words "None" shown&lt;/P&gt; 
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Nov 2018 22:06:02 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/seaborn-plot-display-in-databricks/m-p/28374#M20194</guid>
      <dc:creator>SergeyIvanchuk</dc:creator>
      <dc:date>2018-11-16T22:06:02Z</dc:date>
    </item>
    <item>
      <title>Re: Seaborn plot display in Databricks</title>
      <link>https://community.databricks.com/t5/data-engineering/seaborn-plot-display-in-databricks/m-p/28375#M20195</link>
      <description>&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Duplicate of &lt;A href="https://forums.databricks.com/questions/13369/databricks-wont-display-new-plot-seaborn.html" target="test_blank"&gt;https://forums.databricks.com/questions/13369/databricks-wont-display-new-plot-seaborn.html&lt;/A&gt;. This confused me for a bit as well. &lt;/P&gt;
&lt;P&gt;If you create the figure and axes in matplotlib then seaborn will automatically add the plot to it. The figure can then be displayed in the databricks notebook.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;fig, ax = plt.subplots()
sns.jointplot("total_bill", "tip", data=tips, kind="reg", xlim=(0, 60), ylim=(0, 12),
          color=color, size=7)
display(fig)
&lt;/CODE&gt;&lt;/PRE&gt; 
&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Mar 2019 10:01:56 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/seaborn-plot-display-in-databricks/m-p/28375#M20195</guid>
      <dc:creator>chrislill</dc:creator>
      <dc:date>2019-03-11T10:01:56Z</dc:date>
    </item>
    <item>
      <title>Re: Seaborn plot display in Databricks</title>
      <link>https://community.databricks.com/t5/data-engineering/seaborn-plot-display-in-databricks/m-p/28376#M20196</link>
      <description>&lt;P&gt;Try changing the last line in your code:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;display(plt.show())&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;to&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;display(g.fig)&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;My results doing that:&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.databricks.com/s/contentdocument/0693f000007PIymAAG" alt="https://community.databricks.com/s/contentdocument/0693f000007PIymAAG" target="_blank"&gt;help-databircks.png&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 05 Apr 2019 19:18:41 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/seaborn-plot-display-in-databricks/m-p/28376#M20196</guid>
      <dc:creator>migueldhr</dc:creator>
      <dc:date>2019-04-05T19:18:41Z</dc:date>
    </item>
    <item>
      <title>Re: Seaborn plot display in Databricks</title>
      <link>https://community.databricks.com/t5/data-engineering/seaborn-plot-display-in-databricks/m-p/28377#M20197</link>
      <description>&lt;P&gt;As of DBR 6.4&lt;A href="https://" alt="https://" target="_blank"&gt;+&lt;/A&gt;, %matplotlib inline is supported, and you no longer need to call display().&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 23 Apr 2020 18:15:40 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/seaborn-plot-display-in-databricks/m-p/28377#M20197</guid>
      <dc:creator>DavidLin</dc:creator>
      <dc:date>2020-04-23T18:15:40Z</dc:date>
    </item>
    <item>
      <title>Re: Seaborn plot display in Databricks</title>
      <link>https://community.databricks.com/t5/data-engineering/seaborn-plot-display-in-databricks/m-p/28378#M20198</link>
      <description>&lt;P&gt;I found that you create a similar comparison plot as what you get from seaborn by using the display(sparkdf) and adding multiple columns to the 'Values' section while creating a 'Scatter plot'. You get to the 'Customize Plot' by clicking on the icon of the bar chart, then the 'Plot Options...' button will show up.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="displaydf.png"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/2521i897E21AD5B7D31D8/image-size/large?v=v2&amp;amp;px=999" role="button" title="displaydf.png" alt="displaydf.png" /&gt;&lt;/span&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="plotoptions.png"&gt;&lt;img src="https://community.databricks.com/t5/image/serverpage/image-id/2516i602420821B5A5191/image-size/large?v=v2&amp;amp;px=999" role="button" title="plotoptions.png" alt="plotoptions.png" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;B&gt;&amp;nbsp;&lt;/B&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 04 Aug 2020 21:58:33 GMT</pubDate>
      <guid>https://community.databricks.com/t5/data-engineering/seaborn-plot-display-in-databricks/m-p/28378#M20198</guid>
      <dc:creator>AbbyLemon</dc:creator>
      <dc:date>2020-08-04T21:58:33Z</dc:date>
    </item>
  </channel>
</rss>

