<?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 arcpy.mp to reverse classes order sybmology graduated colors in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/arcpy-mp-to-reverse-classes-order-sybmology/m-p/147158#M11457</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does anyone have some sample code using arcpy.mp that will reverse the values for the classes order using a graduatedcolorrender?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I am trying to do is automate this step using arc.mp. in ArcGIS pro the functionality or step is in the symbology window using graduated colors, natural breaks (method) in the classes tab there is a more pull down where you can reverse values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;Tyson&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 05 Dec 2019 16:08:41 GMT</pubDate>
    <dc:creator>TysonTaylor</dc:creator>
    <dc:date>2019-12-05T16:08:41Z</dc:date>
    <item>
      <title>arcpy.mp to reverse classes order sybmology graduated colors</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-mp-to-reverse-classes-order-sybmology/m-p/147158#M11457</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does anyone have some sample code using arcpy.mp that will reverse the values for the classes order using a graduatedcolorrender?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I am trying to do is automate this step using arc.mp. in ArcGIS pro the functionality or step is in the symbology window using graduated colors, natural breaks (method) in the classes tab there is a more pull down where you can reverse values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;Tyson&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Dec 2019 16:08:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-mp-to-reverse-classes-order-sybmology/m-p/147158#M11457</guid>
      <dc:creator>TysonTaylor</dc:creator>
      <dc:date>2019-12-05T16:08:41Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy.mp to reverse classes order sybmology graduated colors</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-mp-to-reverse-classes-order-sybmology/m-p/147159#M11458</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This level of granularity/detail requires .NET programming, arcpy.mp is higher level - it doesn't have every bit of functionality like the pulldown you mention implemented as a method applicable to the layer object.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, you can set up a symbology&amp;nbsp;interactively, save to a lyrx file and use arcpy.mp to apply the .lyrx symbology to a layer.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 08 Dec 2019 00:44:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-mp-to-reverse-classes-order-sybmology/m-p/147159#M11458</guid>
      <dc:creator>curtvprice</dc:creator>
      <dc:date>2019-12-08T00:44:42Z</dc:date>
    </item>
    <item>
      <title>Re: arcpy.mp to reverse classes order sybmology graduated colors</title>
      <link>https://community.esri.com/t5/python-questions/arcpy-mp-to-reverse-classes-order-sybmology/m-p/1091698#M62170</link>
      <description>&lt;P&gt;Just curious whether there were any updates to arcpy.mp that allow you to reverse the color ramp?&lt;/P&gt;&lt;P&gt;Funny thing is, I can set, for example, Yellow to Red but not Red to Yellow.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This works:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;sym.renderer.colorRamp = p.listColorRamps('Yellow to Red')[0]&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This produces an error:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;sym.renderer.colorRamp = p.listColorRamps('Red to Yellow')[0]&lt;/LI-CODE&gt;&lt;LI-CODE lang="python"&gt;---------------------------------------------------------------------------
IndexError                                Traceback (most recent call last)
In  [40]:
Line 15:    sym.renderer.colorRamp = p.listColorRamps('Red to Yellow')[0]

IndexError: list index out of range
---------------------------------------------------------------------------&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Aug 2021 13:52:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/arcpy-mp-to-reverse-classes-order-sybmology/m-p/1091698#M62170</guid>
      <dc:creator>JaredPilbeam2</dc:creator>
      <dc:date>2021-08-24T13:52:04Z</dc:date>
    </item>
  </channel>
</rss>

