ba7c4075261c90e61ea524af84f0e60d1c8a9b37,lib/matplotlib/tests/test_backend_ps.py,,test_tilde_in_tempfilename,#Any#,85

Before Change


    // backend to write a file.
    with cbook._setattr_cm(tempfile, tempdir=str(base_tempdir)):
        // usetex results in the latex call, which does not like the ~
        plt.rc("text", usetex=True)
        plt.plot([1, 2, 3, 4])
        plt.xlabel(r"\textbf{time} (s)")
        output_eps = os.path.join(str(base_tempdir), "tex_demo.eps")
        // use the PS backend to write the file...

After Change


    // backend to write a file.
    with cbook._setattr_cm(tempfile, tempdir=str(base_tempdir)):
        // usetex results in the latex call, which does not like the ~
        mpl.rcParams["text.usetex"] = True
        plt.plot([1, 2, 3, 4])
        plt.xlabel(r"\textbf{time} (s)")
        // use the PS backend to write the file...
        plt.savefig(base_tempdir / "tex_demo.eps", format="ps")
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: matplotlib/matplotlib
Commit Name: ba7c4075261c90e61ea524af84f0e60d1c8a9b37
Time: 2019-04-11
Author: anntzer.lee@gmail.com
File Name: lib/matplotlib/tests/test_backend_ps.py
Class Name:
Method Name: test_tilde_in_tempfilename


Project Name: matplotlib/matplotlib
Commit Name: 048cafd2c17219d0e47d90aa073f90d516902a02
Time: 2017-05-30
Author: dstansby@gmail.com
File Name: examples/text_labels_and_annotations/tex_demo.py
Class Name:
Method Name:


Project Name: matplotlib/matplotlib
Commit Name: 52adc3fbbd9e4f0a39e806dac5ed3aa9f383d4f7
Time: 2020-02-26
Author: anntzer.lee@gmail.com
File Name: examples/misc/multipage_pdf.py
Class Name:
Method Name: