Changeset ab4581b in sasview


Ignore:
Timestamp:
Sep 15, 2016 8:33:57 AM (8 years ago)
Author:
Piotr Rozyczko <rozyczko@…>
Branches:
ESS_GUI, ESS_GUI_Docs, ESS_GUI_batch_fitting, ESS_GUI_bumps_abstraction, ESS_GUI_iss1116, ESS_GUI_iss879, ESS_GUI_iss959, ESS_GUI_opencl, ESS_GUI_ordering, ESS_GUI_sync_sascalc
Children:
a6026f52
Parents:
821c330
git-author:
Lewis O'Driscoll <lewis.o'driscoll@…> (08/11/16 06:52:50)
git-committer:
Piotr Rozyczko <rozyczko@…> (09/15/16 08:33:57)
Message:

Fix LaTeX formating of labels when scale changed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/sas/sasgui/plottools/PlotPanel.py

    r821c330 rab4581b  
    17931793            if self.xLabel == "ln(x)": 
    17941794                item.transformX(transform.toLogX, transform.errToLogX) 
    1795                 self.graph._xaxis_transformed("\ln\\ %s" % xname, "%s" % xunits) 
     1795                self.graph._xaxis_transformed("\ln{(%s)}" % xname, "%s" % xunits) 
    17961796            if self.xLabel == "log10(x)": 
    17971797                item.transformX(transform.toX_pos, transform.errToX_pos) 
     
    18051805            if self.yLabel == "ln(y)": 
    18061806                item.transformY(transform.toLogX, transform.errToLogX) 
    1807                 self.graph._yaxis_transformed("\ln\\ %s" % yname, "%s" % yunits) 
     1807                self.graph._yaxis_transformed("\ln{(%s)}" % yname, "%s" % yunits) 
    18081808            if self.yLabel == "y": 
    18091809                item.transformY(transform.toX, transform.errToX) 
     
    18391839            if self.yLabel == "ln(y*x)": 
    18401840                item.transformY(transform.toLogXY, transform.errToLogXY) 
    1841                 self.graph._yaxis_transformed("\ln (%s \ \ %s)" % (yname, xname), 
     1841                self.graph._yaxis_transformed("\ln{(%s \ \ %s)}" % (yname, xname), 
    18421842                                              "%s%s" % (yunits, self.xaxis_unit)) 
    18431843            if self.yLabel == "ln(y*x^(2))": 
Note: See TracChangeset for help on using the changeset viewer.