<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div style=""
data-md-original="%3Cdiv%20class%3D%22moz-cite-prefix%22%3EOn%2014-12-2013%2017%3A14%2C%20gonghang.naoc%20wrote%3A%3Cbr%3E%3C%2Fdiv%3E%3Cblockquote%20cite%3D%22mid%3ACABb23muG-rdZbrp%3D5qqGOye1qrTpGX6X-M8tM8CZfWNpSg6Avw%40mail.gmail.com%22%20type%3D%22cite%22%3E%3Cdiv%20dir%3D%22ltr%22%3E%3Cdiv%3E%3Cdiv%3E%3Cdiv%3EHi%20astropyers%2C%3Cbr%3E%3C%2Fdiv%3EI%20have%20a%20ready%20made%20spectral%20line%20atlas.%20%20Is%20there%20a%20direct%20way%20to%20mark%20the%20spectral%20lines%20in%20one%20spectrum%20plot%3F%3Cbr%3EI%20have%20found%26nbsp%3B%20a%20module%20called%20lineid_plot.%20However%2CI%20can%20not%20install%20it.%20%3Cbr%3E%0A%3Cbr%3EThe%20images%20below%20are%20three%20examples.%3Cbr%3E%26nbsp%3B%3Ca%20moz-do-not-send%3D%22true%22%20href%3D%22http%3A%2F%2Fwww.cv.nrao.edu%2Fcourse%2Fastr534%2Fimages%2Fbandscan.gif%22%3Ehttp%3A%2F%2Fwww.cv.nrao.edu%2Fcourse%2Fastr534%2Fimages%2Fbandscan.gif%3C%2Fa%3E%3Cbr%3E%26nbsp%3B%3Ca%20moz-do-not-send%3D%22true%22%20href%3D%22http%3A
 %2F%2Fsky
server.sdss3.org%2Fdr8%2Fen%2Ftools%2Fquicklook%2Fquickobj.asp%3Fid%3D1237662661600608302%22%3Ehttp%3A%2F%2Fskyserver.sdss3.org%2Fdr8%2Fen%2Ftools%2Fquicklook%2Fquickobj.asp%3Fid%3D1237662661600608302%3C%2Fa%3E%3Cbr%3E%0A%26nbsp%3B%3Ca%20moz-do-not-send%3D%22true%22%20href%3D%22http%3A%2F%2Finspirehep.net%2Frecord%2F878108%2Ffiles%2Fplot_mean_spec1.png%22%3Ehttp%3A%2F%2Finspirehep.net%2Frecord%2F878108%2Ffiles%2Fplot_mean_spec1.png%3C%2Fa%3E%3Cbr%3E%3Cbr%3E%3C%2Fdiv%3EThank%20you.%3Cbr%3E%3Cbr%3E%3C%2Fdiv%3Ehang%3Cbr%3E%3C%2Fdiv%3E%3C%2Fblockquote%3E%3Cbr%3EI%20usually%20do%20this%20by%20reading%20my%20lines%20into%20a%20dict%20of%20the%20form%20%60%7B'Line%20Name'%3A%20wavelength%7D%60%20and%20then%20using%20a%20code%20snippet%20like%20this%3A%3Cbr%3E%3Cbr%3E%60%60%60python%3Cbr%3Efor%20theline%20in%20MWlines.keys()%3A%3Cbr%3E%C2%A0%C2%A0%C2%A0%20ax.axvline(%3Cbr%3E%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%20x%3DMWlines%5Btheline%5D%2C%20ymin%3D.5%2C%20ymax%3D.99%2C%3Cbr%3E
 %C2%A0%C2
%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%20lw%3D1.5%2C%20color%3D'grey'%2C%20ls%3D'%3A')%3Cbr%3E%C2%A0%C2%A0%C2%A0%20ax.annotate(%3Cbr%3E%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%20theline%2B'%20MW'%2C%20(MWlines%5Btheline%5D-.0%2C%202.2)%2C%3Cbr%3E%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%20backgroundcolor%3D'white'%2C%20rotation%3D'vertical'%2C%20%3Cbr%3E%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%C2%A0%20horizontalalignment%3D'center'%2C%20color%3D'grey')%3Cbr%3E%60%60%60%3Cbr%3E%3Cbr%3EThis%20will%20of%20course%20be%20varied%20slightly%20depending%20on%20the%20context%2C%20but%20that's%20the%20basic%20idea.%3Cbr%3E%3Cbr%3E%3Cbr%3E%3Cblockquote%20cite%3D%22mid%3ACABb23muG-rdZbrp%3D5qqGOye1qrTpGX6X-M8tM8CZfWNpSg6Avw%40mail.gmail.com%22%20type%3D%22cite%22%3E%0A%0A%3Cbr%3E%3Cfieldset%20class%3D%22mimeAttachmentHeader%22%3E%3C%2Ffieldset%3E%3Cbr%3E%3Cpre%20wrap%3D%22%22%3E_______________________________________________%0AAstroPy%20mailing%20list%0AAstroPy%40scipy.org%0Ahttp%3A%2F%2Fmail.
 scipy.org
%2Fmailman%2Flistinfo%2Fastropy%0A%3C%2Fpre%3E%0A%0A%3C%2Fblockquote%3E%3Cbr%3E"
      class="markdown-here-wrapper" data-md-url="Thunderbird"
      id="markdown-here-wrapper-935495">
      <p style="margin: 1.2em 0px ! important;">On 14-12-2013 17:14,
        gonghang.naoc wrote:</p>
      <p style="margin: 1.2em 0px ! important;"></p>
      <div class="markdown-here-exclude">
        <p></p>
        <blockquote
cite="mid:CABb23muG-rdZbrp=5qqGOye1qrTpGX6X-M8tM8CZfWNpSg6Avw@mail.gmail.com"
          type="cite">
          <div dir="ltr">
            <div>
              <div>
                <div>Hi astropyers,<br>
                </div>
                I have a ready made spectral line atlas. Is there a
                direct way to mark the spectral lines in one spectrum
                plot?<br>
                I have found  a module called lineid_plot. However,I can
                not install it. <br>
                <br>
                The images below are three examples.<br>
                 <a moz-do-not-send="true"
                  href="http://www.cv.nrao.edu/course/astr534/images/bandscan.gif">http://www.cv.nrao.edu/course/astr534/images/bandscan.gif</a><br>
                 <a moz-do-not-send="true"
href="http://skyserver.sdss3.org/dr8/en/tools/quicklook/quickobj.asp?id=1237662661600608302">http://skyserver.sdss3.org/dr8/en/tools/quicklook/quickobj.asp?id=1237662661600608302</a><br>
                 <a moz-do-not-send="true"
                  href="http://inspirehep.net/record/878108/files/plot_mean_spec1.png">http://inspirehep.net/record/878108/files/plot_mean_spec1.png</a><br>
                <br>
              </div>
              Thank you.<br>
              <br>
            </div>
            hang<br>
          </div>
        </blockquote>
        <p></p>
      </div>
      <p style="margin: 1.2em 0px ! important;"></p>
      <p style="margin: 1.2em 0px ! important;">I usually do this by
        reading my lines into a dict of the form <code
          style="font-size: 0.85em; font-family:
          Consolas,Inconsolata,Courier,monospace;margin: 0px 0.15em;
          padding: 0px 0.3em; white-space: nowrap; border: 1px solid
          rgb(234, 234, 234); background-color: rgb(248, 248, 248);
          border-radius: 3px 3px 3px 3px; display: inline;">{'Line
          Name': wavelength}</code> and then using a code snippet like
        this:</p>
      <pre style="font-size: 0.85em; font-family: Consolas,Inconsolata,Courier,monospace;font-size: 1em; line-height: 1.2em; overflow: auto;margin: 1.2em 0px;"><code style="font-size: 0.85em; font-family: Consolas,Inconsolata,Courier,monospace;margin: 0px 0.15em; padding: 0px 0.3em; white-space: nowrap; border: 1px solid rgb(234, 234, 234); background-color: rgb(248, 248, 248); border-radius: 3px 3px 3px 3px; display: inline;white-space: pre; border-radius: 3px 3px 3px 3px; border: 1px solid rgb(204, 204, 204); padding: 0.5em 0.7em;display: block; padding: 0.5em; color: rgb(51, 51, 51); background: none repeat scroll 0% 0% rgb(248, 248, 255);" class="language-python"><span style="color: rgb(51, 51, 51); font-weight: bold;" class="keyword">for</span> theline <span style="color: rgb(51, 51, 51); font-weight: bold;" class="keyword">in</span> MWlines.keys():
    ax.axvline(
        x=MWlines[theline], ymin=<span style="color: rgb(0, 153, 153);" class="number">.5</span>, ymax=<span style="color: rgb(0, 153, 153);" class="number">.99</span>,
        lw=<span style="color: rgb(0, 153, 153);" class="number">1.5</span>, color=<span style="color: rgb(221, 17, 68);" class="string">'grey'</span>, ls=<span style="color: rgb(221, 17, 68);" class="string">':'</span>)
    ax.annotate(
        theline+<span style="color: rgb(221, 17, 68);" class="string">' MW'</span>, (MWlines[theline]-<span style="color: rgb(0, 153, 153);" class="number">.0</span>, <span style="color: rgb(0, 153, 153);" class="number">2.2</span>),
        backgroundcolor=<span style="color: rgb(221, 17, 68);" class="string">'white'</span>, rotation=<span style="color: rgb(221, 17, 68);" class="string">'vertical'</span>, 
        horizontalalignment=<span style="color: rgb(221, 17, 68);" class="string">'center'</span>, color=<span style="color: rgb(221, 17, 68);" class="string">'grey'</span>)</code></pre>
      <p style="margin: 1.2em 0px ! important;">This will of course be
        varied slightly depending on the context, but that’s the basic
        idea.</p>
      <p style="margin: 1.2em 0px ! important;"></p>
      <div class="markdown-here-exclude">
        <p></p>
        <blockquote
cite="mid:CABb23muG-rdZbrp=5qqGOye1qrTpGX6X-M8tM8CZfWNpSg6Avw@mail.gmail.com"
          type="cite">
          <br>
          <fieldset class="mimeAttachmentHeader"></fieldset>
          <br>
          <pre wrap="">_______________________________________________
AstroPy mailing list
<a class="moz-txt-link-abbreviated" href="mailto:AstroPy@scipy.org">AstroPy@scipy.org</a>
<a class="moz-txt-link-freetext" href="http://mail.scipy.org/mailman/listinfo/astropy">http://mail.scipy.org/mailman/listinfo/astropy</a>
</pre>
        </blockquote>
        <p></p>
      </div>
      <p style="margin: 1.2em 0px ! important;"></p>
    </div>
  </body>
</html>