Sophie

Sophie

distrib > Mandriva > 2010.2 > i586 > media > contrib-backports > by-pkgid > a44f8c7e78ee9c5838c1fb080c9e7630 > files > 2562

python-matplotlib-doc-1.1.1-1mdv2010.1.noarch.rpm



<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    
    <title>Environment Variables &mdash; Matplotlib v1.1.1 documentation</title>
    <link rel="stylesheet" href="../_static/mpl.css" type="text/css" />
    <link rel="stylesheet" href="../_static/pygments.css" type="text/css" />
    <script type="text/javascript">
      var DOCUMENTATION_OPTIONS = {
        URL_ROOT:    '../',
        VERSION:     '1.1.1',
        COLLAPSE_INDEX: false,
        FILE_SUFFIX: '.html',
        HAS_SOURCE:  true
      };
    </script>
    <script type="text/javascript" src="../_static/jquery.js"></script>
    <script type="text/javascript" src="../_static/underscore.js"></script>
    <script type="text/javascript" src="../_static/doctools.js"></script>
    <link rel="search" type="application/opensearchdescription+xml"
          title="Search within Matplotlib v1.1.1 documentation"
          href="../_static/opensearch.xml"/>
    <link rel="top" title="Matplotlib v1.1.1 documentation" href="../index.html" />
    <link rel="up" title="The Matplotlib FAQ" href="index.html" />
    <link rel="next" title="The Matplotlib Developers’ Guide" href="../devel/index.html" />
    <link rel="prev" title="Troubleshooting" href="troubleshooting_faq.html" /> 
  </head>
  <body>
<!-- Piwik -->
<script type="text/javascript">
if ("matplotlib.sourceforge.net" == document.location.hostname ||
    "matplotlib.sf.net" == document.location.hostname) {
  var pkBaseURL = (("https:" == document.location.protocol) ? "https://apps.sourceforge.net/piwik/matplotlib/" : "http://apps.sourceforge.net/piwik/matplotlib/");
  document.write(unescape("%3Cscript src='" + pkBaseURL + "piwik.js' type='text/javascript'%3E%3C/script%3E"));
}
</script>
<script type="text/javascript">
if ("matplotlib.sourceforge.net" == document.location.hostname ||
    "matplotlib.sf.net" == document.location.hostname) {
  piwik_action_name = '';
  piwik_idsite = 1;
  piwik_url = pkBaseURL + "piwik.php";
  piwik_log(piwik_action_name, piwik_idsite, piwik_url);
  document.write(unescape('%3Cobject%3E%3Cnoscript%3E%3Cp%3E%3Cimg src="http://apps.sourceforge.net/piwik/matplotlib/piwik.php?idsite=1" alt="piwik"/%3E%3C/p%3E%3C/noscript%3E%3C/object%3E'));
}
</script>
<!-- End Piwik Tag -->
<link rel="shortcut icon" href="_static/favicon.ico">

<div style="background-color: white; text-align: left; padding: 10px 10px 15px 15px">
<a href="../index.html"><img src="../_static/logo2.png" border="0" alt="matplotlib"/></a>
</div>

    <div class="related">
      <h3>Navigation</h3>
      <ul>
        <li class="right" style="margin-right: 10px">
          <a href="../genindex.html" title="General Index"
             accesskey="I">index</a></li>
        <li class="right" >
          <a href="../py-modindex.html" title="Python Module Index"
             >modules</a> |</li>
        <li class="right" >
          <a href="../devel/index.html" title="The Matplotlib Developers’ Guide"
             accesskey="N">next</a> |</li>
        <li class="right" >
          <a href="troubleshooting_faq.html" title="Troubleshooting"
             accesskey="P">previous</a> |</li>
        <li><a href="../index.html">home</a>|&nbsp;</li>
        <li><a href="../search.html">search</a>|&nbsp;</li>
        <li><a href="../examples/index.html">examples</a>|&nbsp;</li>
        <li><a href="../gallery.html">gallery</a>|&nbsp;</li>
        <li><a href="../contents.html">docs</a> &raquo;</li>

          <li><a href="index.html" accesskey="U">The Matplotlib FAQ</a> &raquo;</li> 
      </ul>
    </div>

      <div class="sphinxsidebar">
        <div class="sphinxsidebarwrapper">
  <h3><a href="../contents.html">Table Of Contents</a></h3>
  <ul>
<li><a class="reference internal" href="#">Environment Variables</a><ul>
<li><a class="reference internal" href="#setting-environment-variables-in-linux-and-os-x">Setting environment variables in Linux and OS-X</a><ul>
<li><a class="reference internal" href="#bash-ksh">BASH/KSH</a></li>
<li><a class="reference internal" href="#csh-tcsh">CSH/TCSH</a></li>
</ul>
</li>
<li><a class="reference internal" href="#setting-environment-variables-in-windows">Setting environment variables in windows</a></li>
</ul>
</li>
</ul>

  <h4>Previous topic</h4>
  <p class="topless"><a href="troubleshooting_faq.html"
                        title="previous chapter">Troubleshooting</a></p>
  <h4>Next topic</h4>
  <p class="topless"><a href="../devel/index.html"
                        title="next chapter">The Matplotlib Developers&#8217; Guide</a></p>
  <h3>This Page</h3>
  <ul class="this-page-menu">
    <li><a href="../_sources/faq/environment_variables_faq.txt"
           rel="nofollow">Show Source</a></li>
  </ul>
<div id="searchbox" style="display: none">
  <h3>Quick search</h3>
    <form class="search" action="../search.html" method="get">
      <input type="text" name="q" size="18" />
      <input type="submit" value="Go" />
      <input type="hidden" name="check_keywords" value="yes" />
      <input type="hidden" name="area" value="default" />
    </form>
    <p class="searchtip" style="font-size: 90%">
    Enter search terms or a module, class or function name.
    </p>
</div>
<script type="text/javascript">$('#searchbox').show(0);</script>
        </div>
      </div>

    <div class="document">
      <div class="documentwrapper">
        <div class="bodywrapper">
          <div class="body">
            
  <div class="section" id="environment-variables">
<span id="id1"></span><h1>Environment Variables<a class="headerlink" href="#environment-variables" title="Permalink to this headline">¶</a></h1>
<div class="contents topic" id="contents">
<p class="topic-title first">Contents</p>
<ul class="simple">
<li><a class="reference internal" href="#environment-variables" id="id2">Environment Variables</a><ul>
<li><a class="reference internal" href="#setting-environment-variables-in-linux-and-os-x" id="id3">Setting environment variables in Linux and OS-X</a><ul>
<li><a class="reference internal" href="#bash-ksh" id="id4">BASH/KSH</a></li>
<li><a class="reference internal" href="#csh-tcsh" id="id5">CSH/TCSH</a></li>
</ul>
</li>
<li><a class="reference internal" href="#setting-environment-variables-in-windows" id="id6">Setting environment variables in windows</a></li>
</ul>
</li>
</ul>
</div>
<dl class="envvar">
<dt id="envvar-HOME">
<tt class="descname">HOME</tt><a class="headerlink" href="#envvar-HOME" title="Permalink to this definition">¶</a></dt>
<dd><p>The user&#8217;s home directory. On linux, <span class="target" id="index-0"></span><a class="reference internal" href="#envvar-HOME"><tt class="xref std std-envvar docutils literal"><span class="pre">~</span></tt></a> is shorthand for <span class="target" id="index-1"></span><a class="reference internal" href="#envvar-HOME"><tt class="xref std std-envvar docutils literal"><span class="pre">HOME</span></tt></a>.</p>
</dd></dl>

<dl class="envvar">
<dt id="envvar-PATH">
<tt class="descname">PATH</tt><a class="headerlink" href="#envvar-PATH" title="Permalink to this definition">¶</a></dt>
<dd><p>The list of directories searched to find executable programs</p>
</dd></dl>

<dl class="envvar">
<dt id="envvar-PYTHONPATH">
<tt class="descname">PYTHONPATH</tt><a class="headerlink" href="#envvar-PYTHONPATH" title="Permalink to this definition">¶</a></dt>
<dd><p>The list of directories that is added to Python&#8217;s standard search list when
importing packages and modules</p>
</dd></dl>

<dl class="envvar">
<dt id="envvar-MPLCONFIGDIR">
<tt class="descname">MPLCONFIGDIR</tt><a class="headerlink" href="#envvar-MPLCONFIGDIR" title="Permalink to this definition">¶</a></dt>
<dd><p>This is the directory used to store user customizations to matplotlib, as
well as some caches to improve performance. If <span class="target" id="index-2"></span><a class="reference internal" href="#envvar-MPLCONFIGDIR"><tt class="xref std std-envvar docutils literal"><span class="pre">MPLCONFIGDIR</span></tt></a> is not
defined, <tt class="file docutils literal"><em><span class="pre">HOME</span></em><span class="pre">/.matplotlib</span></tt> is used by default.</p>
</dd></dl>

<div class="section" id="setting-environment-variables-in-linux-and-os-x">
<span id="setting-linux-osx-environment-variables"></span><h2>Setting environment variables in Linux and OS-X<a class="headerlink" href="#setting-environment-variables-in-linux-and-os-x" title="Permalink to this headline">¶</a></h2>
<p>To list the current value of <span class="target" id="index-3"></span><a class="reference internal" href="#envvar-PYTHONPATH"><tt class="xref std std-envvar docutils literal"><span class="pre">PYTHONPATH</span></tt></a>, which may be empty, try:</p>
<div class="highlight-python"><pre>echo $PYTHONPATH</pre>
</div>
<p>The procedure for setting environment variables in depends on what your default
shell is. <strong class="program">BASH</strong> seems to be the most common, but <strong class="program">CSH</strong> is
also common. You should be able to determine which by running at the command
prompt:</p>
<div class="highlight-python"><pre>echo $SHELL</pre>
</div>
<div class="section" id="bash-ksh">
<h3>BASH/KSH<a class="headerlink" href="#bash-ksh" title="Permalink to this headline">¶</a></h3>
<p>To create a new environment variable:</p>
<div class="highlight-python"><pre>export PYTHONPATH=~/Python</pre>
</div>
<p>To prepend to an existing environment variable:</p>
<div class="highlight-python"><pre>export PATH=~/bin:${PATH}</pre>
</div>
<p>The search order may be important to you, do you want <tt class="file docutils literal"><span class="pre">~/bin</span></tt> to
be searched first or last? To append to an existing environment
variable:</p>
<div class="highlight-python"><pre>export PATH=${PATH}:~/bin</pre>
</div>
<p>To make your changes available in the future, add the commands to your
<tt class="file docutils literal"><span class="pre">~/.bashrc</span></tt> file.</p>
</div>
<div class="section" id="csh-tcsh">
<h3>CSH/TCSH<a class="headerlink" href="#csh-tcsh" title="Permalink to this headline">¶</a></h3>
<p>To create a new environment variable:</p>
<div class="highlight-python"><pre>setenv PYTHONPATH ~/Python</pre>
</div>
<p>To prepend to an existing environment variable:</p>
<div class="highlight-python"><pre>setenv PATH ~/bin:${PATH}</pre>
</div>
<p>The search order may be important to you, do you want <tt class="file docutils literal"><span class="pre">~/bin</span></tt> to be searched
first or last? To append to an existing environment variable:</p>
<div class="highlight-python"><pre>setenv PATH ${PATH}:~/bin</pre>
</div>
<p>To make your changes available in the future, add the commands to your
<tt class="file docutils literal"><span class="pre">~/.cshrc</span></tt> file.</p>
</div>
</div>
<div class="section" id="setting-environment-variables-in-windows">
<span id="setting-windows-environment-variables"></span><h2>Setting environment variables in windows<a class="headerlink" href="#setting-environment-variables-in-windows" title="Permalink to this headline">¶</a></h2>
<p>Open the <strong class="program">Control Panel</strong> (<em class="menuselection">Start ‣ Control Panel</em>),
start the <strong class="program">System</strong> program. Click the <em class="guilabel">Advanced</em> tab
and select the <em class="guilabel">Environment Variables</em> button. You can edit or add to
the <em class="guilabel">User Variables</em>.</p>
</div>
</div>


          </div>
        </div>
      </div>
      <div class="clearer"></div>
    </div>
    <div class="related">
      <h3>Navigation</h3>
      <ul>
        <li class="right" style="margin-right: 10px">
          <a href="../genindex.html" title="General Index"
             >index</a></li>
        <li class="right" >
          <a href="../py-modindex.html" title="Python Module Index"
             >modules</a> |</li>
        <li class="right" >
          <a href="../devel/index.html" title="The Matplotlib Developers’ Guide"
             >next</a> |</li>
        <li class="right" >
          <a href="troubleshooting_faq.html" title="Troubleshooting"
             >previous</a> |</li>
        <li><a href="../index.html">home</a>|&nbsp;</li>
        <li><a href="../search.html">search</a>|&nbsp;</li>
        <li><a href="../examples/index.html">examples</a>|&nbsp;</li>
        <li><a href="../gallery.html">gallery</a>|&nbsp;</li>
        <li><a href="../contents.html">docs</a> &raquo;</li>

          <li><a href="index.html" >The Matplotlib FAQ</a> &raquo;</li> 
      </ul>
    </div>
    <div class="footer">
        &copy; Copyright 2008, John Hunter, Darren Dale, Michael Droettboom.
      Last updated on Oct 04, 2012.
      Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.0.7.
    </div>
  </body>
</html>