<html>
  <head>
    <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    Here is my locale:<br>
    <br>
    LANG=en_US.UTF-8<br>
    LANGUAGE=<br>
    LC_CTYPE="en_US.UTF-8"<br>
    LC_NUMERIC=sv_SE.UTF-8<br>
    LC_TIME=en_US.UTF-8<br>
    LC_COLLATE="en_US.UTF-8"<br>
    LC_MONETARY=sv_SE.UTF-8<br>
    LC_MESSAGES="en_US.UTF-8"<br>
    LC_PAPER=sv_SE.UTF-8<br>
    LC_NAME=sv_SE.UTF-8<br>
    LC_ADDRESS=sv_SE.UTF-8<br>
    LC_TELEPHONE=sv_SE.UTF-8<br>
    LC_MEASUREMENT=sv_SE.UTF-8<br>
    LC_IDENTIFICATION=sv_SE.UTF-8<br>
    LC_ALL=<br>
    <br>
    I hope this helps.<br>
    <br>
    Sincerely,<br>
    Chao-Chin<br>
    <br>
    <br>
    <div class="moz-cite-prefix">On 01/06/2016 03:06 PM, Thomas Caswell
      wrote:<br>
    </div>
    <blockquote
cite="mid:CAA48SF_SMOjTgyhOHJbZk0vYa0KtoQB+7WkfPdTT-P78Pb=uBg@mail.gmail.com"
      type="cite">
      <div dir="ltr">What is the default encoding on your system?  I
        wonder if in `draw_tex` or `dvi_read` we are transcoding the
        text?
        <div><br>
        </div>
        <div>Tom</div>
      </div>
      <br>
      <div class="gmail_quote">
        <div dir="ltr">On Wed, Jan 6, 2016 at 8:56 AM Michael Droettboom
          <<a moz-do-not-send="true"
            href="mailto:mdroettboom@continuum.io">mdroettboom@continuum.io</a>>
          wrote:<br>
        </div>
        <blockquote class="gmail_quote" style="margin:0 0 0
          .8ex;border-left:1px #ccc solid;padding-left:1ex">
          <div dir="ltr">I can't reproduce with matplotlib master,
            suggesting this bug has already been fixed.
            <div><br>
            </div>
            <div>Mike</div>
          </div>
          <div class="gmail_extra"><br>
            <div class="gmail_quote">On Mon, Dec 28, 2015 at 4:26 AM,
              Chao-Chin Yang <span dir="ltr"><<a
                  moz-do-not-send="true"
                  href="mailto:chaochinyang@icloud.com" target="_blank"><a class="moz-txt-link-abbreviated" href="mailto:chaochinyang@icloud.com">chaochinyang@icloud.com</a></a>></span>
              wrote:<br>
              <blockquote class="gmail_quote" style="margin:0 0 0
                .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi, I
                am having issues with producing an em-dash in pdf when
                using tex.  A sample script is as below:<br>
                <br>
                #!/usr/bin/env python3<br>
                import matplotlib.pyplot as plt<br>
                import math<br>
                import numpy as np<br>
                <br>
                x = np.linspace(0, 2 * math.pi)<br>
                y = np.cos(x)<br>
                <br>
                plt.plot(x, y)<br>
                plt.suptitle(r"abc --- def")<br>
                plt.savefig("test.pdf")<br>
                plt.show()<br>
                <br>
                I have customized rc parameters:<br>
                <br>
                backend = “TkAgg”<br>
                font.family = “serif”<br>
                text.usetex = True<br>
                image.cmap = “CMRmap"<br>
                <br>
                The plot rendered on screen looks fine.  However, there
                are some weird characters showing up right before the
                em-dash in the saved pdf, as attached here.<br>
                <br>
                <br>
                <br>
                I am using Linux Mint 17.3, and uname -a gives<br>
                <br>
                Linux Eridanus 3.19.0-32-generic #37~14.04.1-Ubuntu SMP
                Thu Oct 22 09:41:40 UTC 2015 x86_64 x86_64 x86_64
                GNU/Linux<br>
                <br>
                I am using python 3.4.3 + matplotlib 1.3.1, the latter
                of which is kind of old, but still remains the latest in
                the Ubuntu LTS repository.  On the other had, I have
                installed the texlive-full package, which should include
                all the tex related packages.  My dvipng is 1.14, and my
                ghostscript is 9.10.  I have also tried different
                backends like Agg or PDF, but it makes no difference.<br>
                <br>
                I have tried googling around for similar issues, but had
                no luck.<br>
                <br>
                It would be very much appreciated If anyone had some
                idea how this comes about.<br>
                <br>
                Sincerely,<br>
                Chao-Chin<br>
                <br>
                <br>
                _______________________________________________<br>
                Matplotlib-users mailing list<br>
                <a moz-do-not-send="true"
                  href="mailto:Matplotlib-users@python.org"
                  target="_blank">Matplotlib-users@python.org</a><br>
                <a moz-do-not-send="true"
                  href="https://mail.python.org/mailman/listinfo/matplotlib-users"
                  rel="noreferrer" target="_blank">https://mail.python.org/mailman/listinfo/matplotlib-users</a><br>
                <br>
              </blockquote>
            </div>
            <br>
            <br clear="all">
            <div><br>
            </div>
          </div>
          <div class="gmail_extra">-- <br>
            <div>
              <div dir="ltr">Michael Droettboom
                <div>Continuum Analytics</div>
              </div>
            </div>
          </div>
          _______________________________________________<br>
          Matplotlib-users mailing list<br>
          <a moz-do-not-send="true"
            href="mailto:Matplotlib-users@python.org" target="_blank">Matplotlib-users@python.org</a><br>
          <a moz-do-not-send="true"
            href="https://mail.python.org/mailman/listinfo/matplotlib-users"
            rel="noreferrer" target="_blank">https://mail.python.org/mailman/listinfo/matplotlib-users</a><br>
        </blockquote>
      </div>
    </blockquote>
    <br>
  </body>
</html>