<?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 Documentation fix in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/documentation-fix/m-p/47468#M3779</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Just a quick one, in the web help for arcpy.mapping.GraduatedColorsSymbology (&lt;/SPAN&gt;&lt;A href="http://resourcesbeta.arcgis.com/en/help/main/10.1/index.html#/GraduatedColorsSymbology/00s30000005z000000/" rel="nofollow noopener noreferrer" target="_blank"&gt;http://resourcesbeta.arcgis.com/en/help/main/10.1/index.html#/GraduatedColorsSymbology/00s30000005z000000/&lt;/A&gt;&lt;SPAN&gt;) the code sample 1 claims to "save the map document" but the code snippet doesn't (assuming there's no funky .save() method call in the destructor of the mxd class...?).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Just a minor touch-up but thought I'd point it out.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Code Sample&lt;BR /&gt;GraduatedColorsSymbology example 1&lt;BR /&gt;The following script modifies the symbology for all graduated colors layers in a map document. It iterates through each layer, changes the value field and the number of classes, and &lt;STRONG&gt;saves the map document.&lt;/STRONG&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;import arcpy
mxd = arcpy.mapping.MapDocument(r"C:\Project\Project.mxd")
for lyr in arcpy.mapping.ListLayers(mxd):
&amp;nbsp; if lyr.symbologyType == "GRADUATED_COLORS":
&amp;nbsp;&amp;nbsp;&amp;nbsp; lyr.symbology.valueField = "POP2007"
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;lyr.symbology.numClasses = 5
del mxd&lt;/STRONG&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 10 Dec 2021 21:50:19 GMT</pubDate>
    <dc:creator>ThomMackey</dc:creator>
    <dc:date>2021-12-10T21:50:19Z</dc:date>
    <item>
      <title>Documentation fix</title>
      <link>https://community.esri.com/t5/python-questions/documentation-fix/m-p/47468#M3779</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Just a quick one, in the web help for arcpy.mapping.GraduatedColorsSymbology (&lt;/SPAN&gt;&lt;A href="http://resourcesbeta.arcgis.com/en/help/main/10.1/index.html#/GraduatedColorsSymbology/00s30000005z000000/" rel="nofollow noopener noreferrer" target="_blank"&gt;http://resourcesbeta.arcgis.com/en/help/main/10.1/index.html#/GraduatedColorsSymbology/00s30000005z000000/&lt;/A&gt;&lt;SPAN&gt;) the code sample 1 claims to "save the map document" but the code snippet doesn't (assuming there's no funky .save() method call in the destructor of the mxd class...?).&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Just a minor touch-up but thought I'd point it out.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Code Sample&lt;BR /&gt;GraduatedColorsSymbology example 1&lt;BR /&gt;The following script modifies the symbology for all graduated colors layers in a map document. It iterates through each layer, changes the value field and the number of classes, and &lt;STRONG&gt;saves the map document.&lt;/STRONG&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;import arcpy
mxd = arcpy.mapping.MapDocument(r"C:\Project\Project.mxd")
for lyr in arcpy.mapping.ListLayers(mxd):
&amp;nbsp; if lyr.symbologyType == "GRADUATED_COLORS":
&amp;nbsp;&amp;nbsp;&amp;nbsp; lyr.symbology.valueField = "POP2007"
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;lyr.symbology.numClasses = 5
del mxd&lt;/STRONG&gt;&lt;/PRE&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Dec 2021 21:50:19 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/documentation-fix/m-p/47468#M3779</guid>
      <dc:creator>ThomMackey</dc:creator>
      <dc:date>2021-12-10T21:50:19Z</dc:date>
    </item>
    <item>
      <title>Re: Documentation fix</title>
      <link>https://community.esri.com/t5/python-questions/documentation-fix/m-p/47469#M3780</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks for pointing that out. I just fixed it.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Sep 2011 15:37:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/documentation-fix/m-p/47469#M3780</guid>
      <dc:creator>JeffMoulds</dc:creator>
      <dc:date>2011-09-23T15:37:56Z</dc:date>
    </item>
  </channel>
</rss>

