Opened 3 years ago

Last modified 15 months ago

#860 new defect

latex labels in graph menus

Reported by: pkienzle Owned by:
Priority: minor Milestone: SasView 5.0.0
Component: SasView Keywords:
Cc: Work Package: SasView Bug Fixing


Data labelled with latex markup on the graph (e.g., $\Gamma1(x)$, $I_{obs}(q)-Bg$ and $I_{extrap}(q)$ in the correlation function perspective) appear nicely formatted in the legend, but show up as latex markup in the graph context menu.

Maybe want to avoid the use of latex on plot labels, or perhaps maintain both the legend label and the menu label for each plot line.

Could also write a simple de-TeX routine to strip egregious characters such as backslash and dollar signs, and convert braces to parentheses. Suggest targeting the ASCIImath format so that the tool has more general utility. Or go the other way, writing an ASCIImath to TeX translator and use that to produce the labels used by matplotlib.

Change History (3)

comment:1 Changed 2 years ago by butler

  • Milestone changed from SasView Next Release +1 to SasView 5.0.0

comment:2 Changed 15 months ago by LauraamForster

This ticket is duplicated. Ticket 601 closed:

comment:3 Changed 15 months ago by LauraamForster

Think this may have been resolved by the move to 5.0. Needs to be reviewed, but if its a problem it will come up as an issue again once 5.0 is released/being used by people.

Note: See TracTickets for help on using tickets.