Opened 8 years ago

Closed 7 years ago

#13817 closed enhancement (duplicate)

Add documentation about how to use Type-1 fonts in graphics

Reported by: ppurka Owned by: mvngu
Priority: major Milestone: sage-duplicate/invalid/wontfix
Component: documentation Keywords:
Cc: Merged in:
Authors: Reviewers: Punarbasu Purkayastha
Report Upstream: N/A Work issues:
Branch: Commit:
Dependencies: Stopgaps:

Status badges

Description

See this ask.sagemath thread.

The default matplotlib behavior is to use Type-3 fonts in graphics. However, some (many?) publications have a strict stipulation of using Type-1 fonts only in the document. The method to force matplotlib to have this behavior is to add a matplotlibrc file in the working directory with the following contents:

rcParams['ps.useafm'] = True
rcParams['pdf.use14corefonts'] = True
rcParams['text.usetex'] = True

This tidbit should be added to the main graphics documentation in some nice way. A ..note maybe?

Change History (4)

comment:1 Changed 8 years ago by jdemeyer

  • Milestone changed from sage-5.11 to sage-5.12

comment:2 Changed 8 years ago by ppurka

  • Milestone changed from sage-5.13 to sage-duplicate/invalid/wontfix
  • Status changed from new to needs_review

Fixed by #14664

comment:3 Changed 8 years ago by ppurka

  • Reviewers set to Punarbasu Purkayastha
  • Status changed from needs_review to positive_review

comment:4 Changed 7 years ago by jdemeyer

  • Resolution set to duplicate
  • Status changed from positive_review to closed
Note: See TracTickets for help on using tickets.