Package reflectometry :: Package model1d :: Package profileview :: Module reflutils

Module reflutils

source code

Supplementary or auxiliary Functions
Functions
 
showErrorMsg(parent, msg, title)
Show error message
source code
 
showWarningMsg(parent, msg, title)
Show Warning message
source code
 
CheckValid(s)
Translate the string into float, and check it.
source code
 
twinx(ax=None)
Make a second axes overlay ax (or the current axes if ax is None) sharing the xaxis.
source code
 
clear_axes(ax)
Clear axes from a figure
source code
 
filterP(f)
Translate a obj parameter into "string" format
source code
 
decodeP(p) source code
Variables
  interface_pickradius = 3
  roughness_pickradius = 5
  flatlayer_pickradius = 5
  slopelayer_pickradius = 10
  splinelayer_pickradius = 5
  interface_color = 'black'
  roughness_color = 'black'
  disable_color = 'gray'
  active_color = 'red'
  rho_color = 'black'
  mu_color = 'green'
  phi_color = 'blue'
  theta_color = 'orange'
  title_color = 'red'
Function Details

twinx(ax=None)

source code 

Make a second axes overlay ax (or the current axes if ax is None) sharing the xaxis.

The ticks for ax2 will be placed on the right, and the ax2 instance is returned. See examples/two_scales.py

Warning: This is a function to simulate the pylab.twinx in WX