- Timestamp:
- Apr 21, 2008 11:29:05 AM (17 years ago)
- 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:
- 46693050
- Parents:
- 8e44d51
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
guitools/PlotPanel.py
r8e44d51 r35891ce 346 346 self.set_xscale("log") 347 347 name, units = item.get_xaxis() 348 self.graph.xaxis(" %s" % name, "%s^{-1}" % units)348 self.graph.xaxis("Log10 %s" % name, "%s^{-1}" % units) 349 349 350 350 if ( self.yscales=="ln(y)" ): … … 352 352 self.set_yscale("linear") 353 353 name, units = item.get_yaxis() 354 self.graph.yaxis(" %s" % name, "%s^{-1}" % units)354 self.graph.yaxis("log %s" % name, "%s^{-1}" % units) 355 355 356 356 if ( self.yscales=="y" ): … … 364 364 self.set_yscale("log") 365 365 name, units = item.get_yaxis() 366 self.graph.yaxis(" %s" % name, "%s^{-1}" % units)366 self.graph.yaxis("Log10 %s" % name, "%s^{-1}" % units) 367 367 368 368 if ( self.yscales=="y^(2)" ): … … 371 371 name, units = item.get_yaxis() 372 372 self.graph.yaxis("%s^2" % name, "%s^{-2}" % units) 373 373 374 if ( self.yscales =="1/y"): 374 375 item.transform_y( transform.toOneOverX , transform.errOneOverX ) … … 376 377 name, units = item.get_yaxis() 377 378 self.graph.yaxis("%s" % name, "%s" % units) 379 378 380 if ( self.yscales =="1/sqrt(y)" ): 379 381 item.transform_y( transform.toOneOverSqrtX ,transform.errOneOverSqrtX ) … … 387 389 yname, yunits = item.get_yaxis() 388 390 xname, xunits = item.get_xaxis() 389 self.graph.yaxis(" %s%s" % (yname,xname), "%s^{-1}%s^{-1}" % (yunits,xunits))391 self.graph.yaxis("Log %s%s" % (yname,xname), "%s^{-1}%s^{-1}" % (yunits,xunits)) 390 392 391 393 if ( self.yscales =="ln(y*x^(2))"): … … 394 396 yname, yunits = item.get_yaxis() 395 397 xname, xunits = item.get_xaxis() 396 self.graph.yaxis(" %s%s^{2}" % (yname,xname), "%s^{-1}%s^{-2}" % (yunits,xunits))398 self.graph.yaxis("Log %s%s^{2}" % (yname,xname), "%s^{-1}%s^{-2}" % (yunits,xunits)) 397 399 398 400 if ( self.yscales =="ln(y*x^(4))"): … … 401 403 yname, yunits = item.get_yaxis() 402 404 xname, xunits = item.get_xaxis() 403 self.graph.yaxis(" %s%s^{4}" % (yname,xname), "%s^{-1}%s^{-4}" % (yunits,xunits))405 self.graph.yaxis("Log %s%s^{4}" % (yname,xname), "%s^{-1}%s^{-4}" % (yunits,xunits)) 404 406 405 407 if ( self.viewModel == "Guinier lny vs x^(2)"): … … 413 415 self.set_yscale("linear") 414 416 name, units = item.get_yaxis() 415 self.graph.yaxis(" %s" % name, "%s^{-1}" % units)416 417 self.graph.yaxis("Log %s" % name, "%s^{-1}" % units) 418 #item.name = self.yscales+" vs " +self.xscales 417 419 self.prevXtrans = self.xscales 418 420 self.prevYtrans = self.yscales
Note: See TracChangeset
for help on using the changeset viewer.