Changeset b2f21e0d in sasview for src/sas


Ignore:
Timestamp:
Aug 11, 2016 4:52:50 AM (8 years ago)
Author:
lewis
Branches:
master, 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, costrafo411, magnetic_scatt, release-4.1.1, release-4.1.2, release-4.2.2, release_4.0.1, ticket-1009, ticket-1094-headless, ticket-1242-2d-resolution, ticket-1243, ticket-1249, ticket885, unittest-saveload
Children:
5129686
Parents:
8abd96d
Message:

Fix LaTeX formating of labels when scale changed

File:
1 edited

Legend:

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

    r8abd96d rb2f21e0d  
    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.