PageRenderTime 27ms CodeModel.GetById 0ms RepoModel.GetById 0ms app.codeStats 0ms

/docs/1.1/generated/cf.Domain.insert_axis.html

https://bitbucket.org/cfpython/cfpython.bitbucket.org
HTML | 212 lines | 168 code | 14 blank | 30 comment | 0 complexity | 48fa6b73e3e59013edaeeb7d2acdaafa MD5 | raw file
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  2. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml">
  4. <head>
  5. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  6. <title>cf.Domain.insert_axis &mdash; Documentation</title>
  7. <link rel="stylesheet" href="../_static/default.css" type="text/css" />
  8. <link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
  9. <script type="text/javascript">
  10. var DOCUMENTATION_OPTIONS = {
  11. URL_ROOT: '../',
  12. VERSION: '1.1',
  13. COLLAPSE_INDEX: false,
  14. FILE_SUFFIX: '.html',
  15. HAS_SOURCE: true
  16. };
  17. </script>
  18. <script type="text/javascript" src="../_static/jquery.js"></script>
  19. <script type="text/javascript" src="../_static/underscore.js"></script>
  20. <script type="text/javascript" src="../_static/doctools.js"></script>
  21. <script type="text/javascript" src="../_static/copybutton.js"></script>
  22. <script type="text/javascript" src="http://cdn.mathjax.org/mathjax/latest/MathJax.js?config=TeX-AMS-MML_HTMLorMML"></script>
  23. <link rel="top" title="Documentation" href="../index.html" />
  24. <link rel="up" title="cf.Domain" href="../classes/cf.Domain.html" />
  25. <link rel="next" title="cf.Domain.insert_coord" href="cf.Domain.insert_coord.html" />
  26. <link rel="prev" title="cf.Domain.insert_aux" href="cf.Domain.insert_aux.html" />
  27. </head>
  28. <body>
  29. <div class="related">
  30. <h3>Navigation</h3>
  31. <ul>
  32. <li class="right" style="margin-right: 10px">
  33. <a href="../genindex.html" title="General Index"
  34. accesskey="I">index</a></li>
  35. <li class="right" >
  36. <a href="cf.Domain.insert_coord.html" title="cf.Domain.insert_coord"
  37. accesskey="N">next</a> |</li>
  38. <li class="right" >
  39. <a href="cf.Domain.insert_aux.html" title="cf.Domain.insert_aux"
  40. accesskey="P">previous</a> |</li>
  41. <li><a target="_blank" href="http://cfpython.bitbucket.org">cf-python 1.1</a> &raquo;</li>
  42. <!--
  43. <li><a target="_blank" href="http://cfpython.bitbucket.org">cf-python</a> &raquo;</li>
  44. <li><select onchange="location = this.options[this.selectedIndex].value;">
  45. <option value="../../1.0/index.html">1.0
  46. <option value="../../0.9.9/index.html">0.9.9
  47. <option value="../../0.9.8.3/index.html">0.9.8.3
  48. <option value="../../archive.html">Archive
  49. </select>
  50. </li>
  51. -->
  52. <li><a href="../index.html">Documentation</a> &raquo;</li>
  53. <li><a href="../reference.html" >Reference manual</a> &raquo;</li>
  54. <li><a href="../class.html" >Classes of the <tt class="docutils literal"><span class="pre">cf</span></tt> module</a> &raquo;</li>
  55. <li><a href="../classes/cf.Domain.html" accesskey="U">cf.Domain</a> &raquo;</li>
  56. </ul>
  57. </div>
  58. <div class="document">
  59. <div class="documentwrapper">
  60. <div class="bodywrapper">
  61. <div class="body">
  62. <div class="section" id="cf-domain-insert-axis">
  63. <h1>cf.Domain.insert_axis<a class="headerlink" href="#cf-domain-insert-axis" title="Permalink to this headline">Âś</a></h1>
  64. <dl class="method">
  65. <dt id="cf.Domain.insert_axis">
  66. <tt class="descclassname">Domain.</tt><tt class="descname">insert_axis</tt><big>(</big><em>size</em>, <em>key=None</em>, <em>replace=True</em><big>)</big><a class="reference external" href="https://bitbucket.org/cfpython/cf-python/src/v1.1/cf/domain.py#cl-1500"><span class="viewcode-link">[source]</span></a><a class="headerlink" href="#cf.Domain.insert_axis" title="Permalink to this definition">Âś</a></dt>
  67. <dd><p>Insert an axis into the domain in place.</p>
  68. <p>This method has exactly the same interface, functionality and outputs
  69. as <a class="reference internal" href="cf.Field.insert_axis.html#cf.Field.insert_axis" title="cf.Field.insert_axis"><tt class="xref py py-obj docutils literal"><span class="pre">cf.Field.insert_axis</span></tt></a>. Therefore see <a class="reference internal" href="cf.Field.insert_axis.html#cf.Field.insert_axis" title="cf.Field.insert_axis"><tt class="xref py py-obj docutils literal"><span class="pre">cf.Field.insert_axis</span></tt></a> for
  70. the full documentation details.</p>
  71. <div class="admonition seealso">
  72. <p class="first admonition-title">See also</p>
  73. <p class="last"><a class="reference internal" href="cf.Domain.insert_aux.html#cf.Domain.insert_aux" title="cf.Domain.insert_aux"><tt class="xref py py-obj docutils literal"><span class="pre">insert_aux</span></tt></a>, insert_measure`, insert_dim`, insert_ref`</p>
  74. </div>
  75. <table class="docutils field-list" frame="void" rules="none">
  76. <col class="field-name" />
  77. <col class="field-body" />
  78. <tbody valign="top">
  79. <tr class="field-odd field"><th class="field-name">Examples 1:</th><td class="field-body"></td>
  80. </tr>
  81. </tbody>
  82. </table>
  83. <div class="highlight-python"><div class="highlight"><pre><span class="gp">&gt;&gt;&gt; </span><span class="n">d</span><span class="o">.</span><span class="n">insert_axis</span><span class="p">(</span><span class="mi">24</span><span class="p">)</span>
  84. </pre></div>
  85. </div>
  86. <table class="docutils field-list" frame="void" rules="none">
  87. <col class="field-name" />
  88. <col class="field-body" />
  89. <tbody valign="top">
  90. <tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><dl class="first docutils">
  91. <dt>size <span class="classifier-delimiter">:</span> <span class="classifier">int</span></dt>
  92. <dd><p class="first last">The size of the new axis.</p>
  93. </dd>
  94. <dt>key <span class="classifier-delimiter">:</span> <span class="classifier">str, optional</span></dt>
  95. <dd><p class="first last">The domain identifier for the new axis. By default a new,
  96. unique identifier is generated.</p>
  97. </dd>
  98. <dt>replace <span class="classifier-delimiter">:</span> <span class="classifier">bool, optional</span></dt>
  99. <dd><p class="first last">If False then do not replace an existing axis with the same
  100. identifier but a different size. By default an existing axis
  101. with the same identifier is changed to have the new size.</p>
  102. </dd>
  103. </dl>
  104. </td>
  105. </tr>
  106. <tr class="field-even field"><th class="field-name">Returns:</th><td class="field-body"><dl class="first docutils">
  107. <dt>out :</dt>
  108. <dd><p class="first last">The domain identifier of the new axis.</p>
  109. </dd>
  110. </dl>
  111. </td>
  112. </tr>
  113. <tr class="field-odd field"><th class="field-name">Examples 2:</th><td class="field-body"></td>
  114. </tr>
  115. </tbody>
  116. </table>
  117. <p>See <a class="reference internal" href="cf.Field.insert_axis.html#cf.Field.insert_axis" title="cf.Field.insert_axis"><tt class="xref py py-obj docutils literal"><span class="pre">cf.Field.insert_axis</span></tt></a>.</p>
  118. </dd></dl>
  119. </div>
  120. </div>
  121. </div>
  122. </div>
  123. <div class="sphinxsidebar">
  124. <div class="sphinxsidebarwrapper">
  125. <h4>Previous topic</h4>
  126. <p class="topless"><a href="cf.Domain.insert_aux.html"
  127. title="previous chapter">cf.Domain.insert_aux</a></p>
  128. <h4>Next topic</h4>
  129. <p class="topless"><a href="cf.Domain.insert_coord.html"
  130. title="next chapter">cf.Domain.insert_coord</a></p>
  131. <h3>This Page</h3>
  132. <ul class="this-page-menu">
  133. <li><a href="../_sources/generated/cf.Domain.insert_axis.txt"
  134. rel="nofollow">Show Source</a></li>
  135. </ul>
  136. <div id="searchbox" style="display: none">
  137. <h3>Quick search</h3>
  138. <form class="search" action="../search.html" method="get">
  139. <input type="text" name="q" />
  140. <input type="submit" value="Go" />
  141. <input type="hidden" name="check_keywords" value="yes" />
  142. <input type="hidden" name="area" value="default" />
  143. </form>
  144. <p class="searchtip" style="font-size: 90%">
  145. Enter search terms or a module, class or function name.
  146. </p>
  147. </div>
  148. <script type="text/javascript">$('#searchbox').show(0);</script>
  149. </div>
  150. </div>
  151. <div class="clearer"></div>
  152. </div>
  153. <div class="related">
  154. <h3>Navigation</h3>
  155. <ul>
  156. <li class="right" style="margin-right: 10px">
  157. <a href="../genindex.html" title="General Index"
  158. >index</a></li>
  159. <li class="right" >
  160. <a href="cf.Domain.insert_coord.html" title="cf.Domain.insert_coord"
  161. >next</a> |</li>
  162. <li class="right" >
  163. <a href="cf.Domain.insert_aux.html" title="cf.Domain.insert_aux"
  164. >previous</a> |</li>
  165. <li><a target="_blank" href="http://cfpython.bitbucket.org">cf-python 1.1</a> &raquo;</li>
  166. <!--
  167. <li><a target="_blank" href="http://cfpython.bitbucket.org">cf-python</a> &raquo;</li>
  168. <li><select onchange="location = this.options[this.selectedIndex].value;">
  169. <option value="../../1.0/index.html">1.0
  170. <option value="../../0.9.9/index.html">0.9.9
  171. <option value="../../0.9.8.3/index.html">0.9.8.3
  172. <option value="../../archive.html">Archive
  173. </select>
  174. </li>
  175. -->
  176. <li><a href="../index.html">Documentation</a> &raquo;</li>
  177. <li><a href="../reference.html" >Reference manual</a> &raquo;</li>
  178. <li><a href="../class.html" >Classes of the <tt class="docutils literal"><span class="pre">cf</span></tt> module</a> &raquo;</li>
  179. <li><a href="../classes/cf.Domain.html" >cf.Domain</a> &raquo;</li>
  180. </ul>
  181. </div>
  182. <div class="footer">
  183. &copy; Copyright 2015, David Hassell.
  184. Last updated on Oct 28, 2015.
  185. Created using <a href="http://sphinx-doc.org/">Sphinx</a> 1.2.2.
  186. </div>
  187. </body>
  188. </html>