Skip to content

type1ec.sty needed for TeX output of plots. Not a standard texlive #16911

@LRydin

Description

@LRydin

Bug report

Bug summary

type1ec.sty not found. I have never encountered this before v3.2.1. Standard texlive (apt install texlive-latex-extra) does not come with this (only type1cm.sty).

Code for reproduction

import numpy as np
import matplotlib
matplotlib.rcParams['pgf.texsystem'] = 'pdflatex'
matplotlib.rcParams.update({'font.family': 'serif', 'font.size': 18,
    'axes.labelsize': 20,'axes.titlesize': 24, 'figure.titlesize' : 28})
matplotlib.rcParams['text.usetex'] = True
import matplotlib.pyplot as plt

fig, ax = plt.subplots(1,1)
x = np.random.norm(0,1)
y = np.random.norm(0,2)
ax.plot(x,y, label='a label')
ax.legend(fontsize=15)

Actual outcome

Sorry for the short description,

...
type1ec.sty not found.
...

Expected outcome

Expected no problems with plotting. `fontsize=12` runs on some choices of label. Labels with a single character also produce no error...

Fix
on linux: apt install cm-super.

Is it now necessary to have cm-supper for plotting TeX?

Matplotlib version

  • Operating system: Linux (Ubuntu 19.10)
  • Matplotlib version: 3.2.1
  • Matplotlib backend (print(matplotlib.get_backend())): module://ipykernel.pylab.backend_inline (seems strange to me)
  • Python version: 3.7.6
  • Jupyter version (if applicable): 6.0.3
  • Other libraries:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      pFad - Phonifier reborn

      Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

      Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


      Alternative Proxies:

      Alternative Proxy

      pFad Proxy

      pFad v3 Proxy

      pFad v4 Proxy