Skip to content

GitLab

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
P pyOPALTools
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Locked Files
  • Issues 8
    • Issues 8
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
    • Iterations
  • Merge requests 1
    • Merge requests 1
  • Operations
    • Operations
    • Incidents
  • Analytics
    • Analytics
    • Code Review
    • Issue
    • Repository
    • Value Stream
  • Wiki
    • Wiki
  • Members
    • Members
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • OPAL
  • pyOPALTools
  • Issues
  • #87

Closed
Open
Created Jun 04, 2020 by snuverink_j@snuverink_jDeveloper

Labels with # not correctly interpreted by tex

plot labels like plt.ylabel('#cores') are not correctly interpreted in Tex mode (see, e.g. http://amas.web.psi.ch/docs/pyOPALTools/RingMultiBunch.html).

In https://gitlab.psi.ch/OPAL/pyOPALTools/blob/master/opal/visualization/SamplerPlotter.py#L201 we do

           isTex = mpl.rcParams['text.usetex']

            xlabel = '#samples'

            if isTex:
                xlabel = '\\' + xlabel

Do we need to do this everywhere, or should we create an "escape_tex" method, or is there a better solution?

cc: @frey_m

Edited Jun 04, 2020 by snuverink_j
Assignee
Assign to
None
Milestone
None
Assign milestone
Time tracking