<?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 get the symbology colors? in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/how-to-get-the-symbology-colors/m-p/475171#M37228</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you! I'll look into it&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 09 Jun 2020 05:18:08 GMT</pubDate>
    <dc:creator>MarceloRosensaft</dc:creator>
    <dc:date>2020-06-09T05:18:08Z</dc:date>
    <item>
      <title>How to get the symbology colors?</title>
      <link>https://community.esri.com/t5/python-questions/how-to-get-the-symbology-colors/m-p/475163#M37220</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a layer for which the symbology is Unique Values. Is there any way I can access&amp;nbsp;the colors for each value using python? I would like to get the colors so that I can make a pie chart&amp;nbsp;using matplotlib that matches the symbol colors. How would I go about this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Dec 2017 18:33:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-get-the-symbology-colors/m-p/475163#M37220</guid>
      <dc:creator>RobertIancu</dc:creator>
      <dc:date>2017-12-05T18:33:39Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the symbology colors?</title>
      <link>https://community.esri.com/t5/python-questions/how-to-get-the-symbology-colors/m-p/475164#M37221</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;via python... no&lt;/P&gt;&lt;P&gt;manually recording them via the symbolizer, or free color pickers that work independently&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Dec 2017 18:50:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-get-the-symbology-colors/m-p/475164#M37221</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2017-12-05T18:50:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the symbology colors?</title>
      <link>https://community.esri.com/t5/python-questions/how-to-get-the-symbology-colors/m-p/475165#M37222</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you are using ArcGIS Pro, it is possible to retrieve the color values since they have added more renderer classes, including &lt;A class="link-titled" href="http://pro.arcgis.com/en/pro-app/arcpy/mapping/uniquevaluerenderer-class.htm" title="http://pro.arcgis.com/en/pro-app/arcpy/mapping/uniquevaluerenderer-class.htm"&gt;UniqueValueRenderer—ArcPy | ArcGIS Desktop&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you are using ArcMap/ArcCatalog, and don't mind using undocumented ArcPy methods, you can use &lt;SPAN style="font-family: courier new, courier, monospace;"&gt;lyr._arc_object.getsymbology()&lt;/SPAN&gt; to dump a JSON definition of the symbology that will include color codes.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Dec 2017 19:50:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-get-the-symbology-colors/m-p/475165#M37222</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2017-12-05T19:50:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the symbology colors?</title>
      <link>https://community.esri.com/t5/python-questions/how-to-get-the-symbology-colors/m-p/475166#M37223</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Nice trick &lt;A href="https://community.esri.com/migrated-users/3420"&gt;Joshua Bixby&lt;/A&gt;‌.&amp;nbsp; I tried the &lt;SPAN style="font-family: courier new, courier, monospace;"&gt;lyr._arc_object.getsymbology()&lt;/SPAN&gt;&amp;nbsp;in&amp;nbsp; version 10.2.1.&amp;nbsp; Looks like it gives RGB and a transparency? value.&amp;nbsp; (Additional note:&amp;nbsp; This isn't a perfect way as it sometimes gets the wrong style and no colors&amp;nbsp; -- which is probably why it is undocumented.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I created a copy of&amp;nbsp;ArcMap's standard color selections as an Excel spreadsheet (attached).&amp;nbsp; It displays a color swatch along with RGB values and a gray-scale value.&amp;nbsp; I will print the sheet to see what the colors will look like when printed on different printers.&amp;nbsp; For custom colors, you will need to note the RGB value.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Dec 2017 00:16:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-get-the-symbology-colors/m-p/475166#M37223</guid>
      <dc:creator>RandyBurton</dc:creator>
      <dc:date>2017-12-06T00:16:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the symbology colors?</title>
      <link>https://community.esri.com/t5/python-questions/how-to-get-the-symbology-colors/m-p/475167#M37224</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you! You saved my project!&amp;nbsp;&lt;SPAN style="background-color: #ffffff;"&gt;lyr._arc_object.getsymbology() is certainly a nice trick though I am confused as to why&amp;nbsp;this is the only way of achieving this issue&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Dec 2017 18:15:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-get-the-symbology-colors/m-p/475167#M37224</guid>
      <dc:creator>RobertIancu</dc:creator>
      <dc:date>2017-12-06T18:15:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the symbology colors?</title>
      <link>https://community.esri.com/t5/python-questions/how-to-get-the-symbology-colors/m-p/475168#M37225</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Glad it works for you.&amp;nbsp; I would say it has been address, in ArcGIS Pro.&amp;nbsp; More and more, Esri Development is focusing on addressing issues in Pro and backporting them if it isn't too much work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Dec 2017 18:53:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-get-the-symbology-colors/m-p/475168#M37225</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2017-12-06T18:53:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the symbology colors?</title>
      <link>https://community.esri.com/t5/python-questions/how-to-get-the-symbology-colors/m-p/475169#M37226</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've just seen your comment that refers to the UniqueValueRenderer in arcpy.mp, which I'm trying not to use because most of my users still need MXds.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you think it's possible to create a symbology from another symbology? I mean that I have a unique values symbology&amp;nbsp; - a layer file - applied to a certain value field and I need to prepare a parallel symbology for another value field, meaning that everything will be the same - labels, descriptions and mainly the polygons color and pattern - but for a different set of values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If there were examples, more than the two shown in the ESRI page, I'd appreciate getting links to them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks much,&lt;/P&gt;&lt;P&gt;Marcelo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 06 Jun 2020 18:17:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-get-the-symbology-colors/m-p/475169#M37226</guid>
      <dc:creator>MarceloRosensaft</dc:creator>
      <dc:date>2020-06-06T18:17:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the symbology colors?</title>
      <link>https://community.esri.com/t5/python-questions/how-to-get-the-symbology-colors/m-p/475170#M37227</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See updateLayerFromJSON from &lt;A class="link-titled" href="https://desktop.arcgis.com/en/arcmap/latest/analyze/arcpy-mapping/layer-class.htm" title="https://desktop.arcgis.com/en/arcmap/latest/analyze/arcpy-mapping/layer-class.htm"&gt;Layer—Help | Documentation&lt;/A&gt; , and there is a good example at &lt;A class="link-titled" href="https://gist.github.com/steveoh/1c5d4215180c299e63ee9492fc849dac" title="https://gist.github.com/steveoh/1c5d4215180c299e63ee9492fc849dac"&gt;Update layer symbology with arcpy · GitHub&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 07 Jun 2020 19:05:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-get-the-symbology-colors/m-p/475170#M37227</guid>
      <dc:creator>JoshuaBixby</dc:creator>
      <dc:date>2020-06-07T19:05:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the symbology colors?</title>
      <link>https://community.esri.com/t5/python-questions/how-to-get-the-symbology-colors/m-p/475171#M37228</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you! I'll look into it&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 09 Jun 2020 05:18:08 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-get-the-symbology-colors/m-p/475171#M37228</guid>
      <dc:creator>MarceloRosensaft</dc:creator>
      <dc:date>2020-06-09T05:18:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to get the symbology colors?</title>
      <link>https://community.esri.com/t5/python-questions/how-to-get-the-symbology-colors/m-p/475172#M37229</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you so much,&amp;nbsp;&lt;A href="https://community.esri.com/migrated-users/3420"&gt;Joshua Bixby&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It worked perfectly!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 10 Jun 2020 15:54:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-get-the-symbology-colors/m-p/475172#M37229</guid>
      <dc:creator>MarceloRosensaft</dc:creator>
      <dc:date>2020-06-10T15:54:42Z</dc:date>
    </item>
  </channel>
</rss>

