<?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: how to plot shapefile in Jupyter  notebook in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/how-to-plot-shapefile-in-jupyter-notebook/m-p/1027229#M37465</link>
    <description>&lt;P&gt;If you're talking the built-in notebooks in Pro, check out &lt;A href="https://developers.arcgis.com/python/api-reference/arcgis.features.toc.html#arcgis.features.GeoAccessor.from_featureclass" target="_self"&gt;arcgis.features.GeoAccessor().from_featureclass()&lt;/A&gt; to create a Spatially Enabled DataFrame of your shapefiles. Then it's as simple as calling &lt;A href="https://developers.arcgis.com/python/api-reference/arcgis.features.toc.html#arcgis.features.GeoAccessor.plot" target="_self"&gt;&lt;STRONG&gt;plot&lt;/STRONG&gt; &lt;/A&gt;on that object.&lt;/P&gt;&lt;P&gt;By creating a separate &lt;STRONG&gt;MapView&lt;/STRONG&gt; first, you can plot your shapefiles onto the same map.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;from arcgis.features import GeoAccessor
from arcgis.widgets import MapView

map1 = MapView()

df1 = GeoAccessor().from_featureclass('C:/path-to-file/your-file.shp')
df2 = GeoAccessor().from_featureclass('C:/path-to-file/your-file-2.shp')

df1.spatial.plot(map1)
df2.spatial.plot(map2)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now, if you're not working in the default Pro python environment, I would be remiss if I didn't also mention &lt;A href="https://geopandas.org/" target="_self"&gt;GeoPandas&lt;/A&gt;, which is an excellent tool for making &lt;EM&gt;static&lt;/EM&gt; maps that integrate cleanly with MatPlotLib, and is just as capable of reading shapefiles.&lt;/P&gt;&lt;P&gt;If I don't need my notebook maps to be interactive, I personally prefer to use it over the Spatially Enabled DataFrame. (Related: the SEDF has a &lt;EM&gt;from_geodataframe&lt;/EM&gt; method to convert a GeoPandas GeoDataFrame into a SEDF, so if you need to get your data back into an Esri-friendly format, it's very easy to do so.)&lt;/P&gt;</description>
    <pubDate>Tue, 16 Feb 2021 17:40:12 GMT</pubDate>
    <dc:creator>jcarlson</dc:creator>
    <dc:date>2021-02-16T17:40:12Z</dc:date>
    <item>
      <title>how to plot shapefile in Jupyter  notebook</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/how-to-plot-shapefile-in-jupyter-notebook/m-p/1027211#M37459</link>
      <description>&lt;P&gt;Hi Everyone&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; Here&amp;nbsp; is a simple question, how to plot several shapefiles in Jupyter notebook?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Ming&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Feb 2021 17:11:51 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/how-to-plot-shapefile-in-jupyter-notebook/m-p/1027211#M37459</guid>
      <dc:creator>MingHan</dc:creator>
      <dc:date>2021-02-16T17:11:51Z</dc:date>
    </item>
    <item>
      <title>Re: how to plot shapefile in Jupyter  notebook</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/how-to-plot-shapefile-in-jupyter-notebook/m-p/1027219#M37463</link>
      <description>&lt;P&gt;&lt;A href="https://community.esri.com/t5/python-documents/arcgis-notebooks-in-arcgis-pro-2-7/ta-p/1013977" target="_blank"&gt;ArcGIS Notebooks in ArcGIS Pro (2.7) - GeoNet, The Esri Community&lt;/A&gt;&amp;nbsp;has some tips&lt;/P&gt;</description>
      <pubDate>Tue, 16 Feb 2021 17:18:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/how-to-plot-shapefile-in-jupyter-notebook/m-p/1027219#M37463</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2021-02-16T17:18:35Z</dc:date>
    </item>
    <item>
      <title>Re: how to plot shapefile in Jupyter  notebook</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/how-to-plot-shapefile-in-jupyter-notebook/m-p/1027229#M37465</link>
      <description>&lt;P&gt;If you're talking the built-in notebooks in Pro, check out &lt;A href="https://developers.arcgis.com/python/api-reference/arcgis.features.toc.html#arcgis.features.GeoAccessor.from_featureclass" target="_self"&gt;arcgis.features.GeoAccessor().from_featureclass()&lt;/A&gt; to create a Spatially Enabled DataFrame of your shapefiles. Then it's as simple as calling &lt;A href="https://developers.arcgis.com/python/api-reference/arcgis.features.toc.html#arcgis.features.GeoAccessor.plot" target="_self"&gt;&lt;STRONG&gt;plot&lt;/STRONG&gt; &lt;/A&gt;on that object.&lt;/P&gt;&lt;P&gt;By creating a separate &lt;STRONG&gt;MapView&lt;/STRONG&gt; first, you can plot your shapefiles onto the same map.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;from arcgis.features import GeoAccessor
from arcgis.widgets import MapView

map1 = MapView()

df1 = GeoAccessor().from_featureclass('C:/path-to-file/your-file.shp')
df2 = GeoAccessor().from_featureclass('C:/path-to-file/your-file-2.shp')

df1.spatial.plot(map1)
df2.spatial.plot(map2)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now, if you're not working in the default Pro python environment, I would be remiss if I didn't also mention &lt;A href="https://geopandas.org/" target="_self"&gt;GeoPandas&lt;/A&gt;, which is an excellent tool for making &lt;EM&gt;static&lt;/EM&gt; maps that integrate cleanly with MatPlotLib, and is just as capable of reading shapefiles.&lt;/P&gt;&lt;P&gt;If I don't need my notebook maps to be interactive, I personally prefer to use it over the Spatially Enabled DataFrame. (Related: the SEDF has a &lt;EM&gt;from_geodataframe&lt;/EM&gt; method to convert a GeoPandas GeoDataFrame into a SEDF, so if you need to get your data back into an Esri-friendly format, it's very easy to do so.)&lt;/P&gt;</description>
      <pubDate>Tue, 16 Feb 2021 17:40:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/how-to-plot-shapefile-in-jupyter-notebook/m-p/1027229#M37465</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2021-02-16T17:40:12Z</dc:date>
    </item>
    <item>
      <title>Re: how to plot shapefile in Jupyter  notebook</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/how-to-plot-shapefile-in-jupyter-notebook/m-p/1027244#M37467</link>
      <description>&lt;P&gt;Thanks, It works for me.&amp;nbsp;&lt;/P&gt;&lt;P&gt;How to only plot the outline of the polygon, without fill any colors?&amp;nbsp;&lt;/P&gt;&lt;P&gt;I checked the options in here [&lt;A href="https://developers.arcgis.com/python/api-reference/arcgis.features.toc.html#arcgis.features.SpatialDataFrame.plot" target="_blank"&gt;https://developers.arcgis.com/python/api-reference/arcgis.features.toc.html#arcgis.features.SpatialDataFrame.plot&lt;/A&gt;], seems no options are exist&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ming&lt;/P&gt;</description>
      <pubDate>Tue, 16 Feb 2021 18:28:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/how-to-plot-shapefile-in-jupyter-notebook/m-p/1027244#M37467</guid>
      <dc:creator>MingHan</dc:creator>
      <dc:date>2021-02-16T18:28:39Z</dc:date>
    </item>
    <item>
      <title>Re: how to plot shapefile in Jupyter  notebook</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/how-to-plot-shapefile-in-jupyter-notebook/m-p/1027266#M37469</link>
      <description>&lt;P&gt;It gets a bit more complex, but take a look at the &lt;A href="https://developers.arcgis.com/python/api-reference/arcgis.mapping.toc.html#arcgis.mapping.symbol.create_symbol" target="_self"&gt;symbology&lt;/A&gt; section. You should be able to apply some of this to your map layer. I've a little less experience with that, however.&lt;/P&gt;</description>
      <pubDate>Tue, 16 Feb 2021 18:59:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/how-to-plot-shapefile-in-jupyter-notebook/m-p/1027266#M37469</guid>
      <dc:creator>jcarlson</dc:creator>
      <dc:date>2021-02-16T18:59:19Z</dc:date>
    </item>
    <item>
      <title>Re: how to plot shapefile in Jupyter  notebook</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/how-to-plot-shapefile-in-jupyter-notebook/m-p/1027272#M37470</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="dissolve_v_0.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/6157i665BFC8C0C1EF91C/image-size/medium?v=v2&amp;amp;px=400" role="button" title="dissolve_v_0.png" alt="dissolve_v_0.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;You don't even need a jupyter notebook either&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.esri.com/t5/python-blog/arcpy-shapes-viewing-in-spyder/ba-p/902750" target="_blank"&gt;Arcpy shapes... viewing in Spyder - GeoNet, The Esri Community&lt;/A&gt;&lt;/P&gt;&lt;P&gt;It always seemed redundant to view spatial data in a notebook within Pro when you can just look at it in Pro if you have it already&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 16 Feb 2021 19:17:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/how-to-plot-shapefile-in-jupyter-notebook/m-p/1027272#M37470</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2021-02-16T19:17:15Z</dc:date>
    </item>
  </channel>
</rss>

