Changeset 201b960 in sasview


Ignore:
Timestamp:
Apr 23, 2015 6:51:24 AM (9 years ago)
Author:
Ricardo M. Ferraz Leal <ricleal@…>
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:
7e0f9b5
Parents:
b9fbf05
Message:

Latex axes labels can have latex again.

File:
1 edited

Legend:

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

    rb9fbf05 r201b960  
    12261226 
    12271227        # Properties defined by plot 
    1228          
    1229         self.subplot.set_xlabel(prop["xlabel"]) 
    1230         self.subplot.set_ylabel(prop["ylabel"]) 
    1231          
    1232          
     1228        matplotlib.rc('text', usetex=True) 
     1229        self.subplot.set_xlabel(r"$%s$"%prop["xlabel"]) 
     1230        self.subplot.set_ylabel(r"$%s$"%prop["ylabel"]) 
    12331231        self.subplot.set_title(prop["title"]) 
    12341232 
Note: See TracChangeset for help on using the changeset viewer.