HC  Git Revision c25d675e74f5ae47331c7e8ca7256d1187545d2c
HC
 All Classes Functions
Public Member Functions | Public Attributes | List of all members
manipulate_hc.ManipulateXYData Class Reference

Public Member Functions

def __init__
 
def distance
 
def __call__
 
def on_click
 
def on_release
 
def redraw_plot
 
def add_pmantle_ornaments
 
def reset_data
 
def sortlevels
 
def read_data
 
def convert_data
 
def save_and_exit
 
def exit
 

Public Attributes

 xtol
 
 ytol
 
 visc_norm
 
 radius_km
 
 cmb_km
 
 figure
 
 axis
 
 plot_mode
 
 datax0
 
 datay0
 
 moving
 
 zlabels
 
 verbose
 
 xl
 
 yl
 
 datay
 
 datax
 
 mode
 

Detailed Description

handles x y data that specifies HC-type profiles

use like:

>>>

mp = ManipulateXYData(filename,mode)
p.connect('button_press_event', mp.on_click)
p.connect('button_release_event', mp.on_release)

<<<

INPUT

filename: data name

mode: 1: data are viscosity
      2: data are density scaling factors


xtol amd ytol are relative tolerances

inspired by http://www.scipy.org/Cookbook/Matplotlib/Interactive_Plotting

Member Function Documentation

def manipulate_hc.ManipulateXYData.add_pmantle_ornaments (   self,
  xmin,
  xmax,
  uselogx 
)
add ornaments typical for the earth's mantle to the plot
def manipulate_hc.ManipulateXYData.convert_data (   self,
  mode,
  reverse 
)
convert input data to plotting format and vice versa 
def manipulate_hc.ManipulateXYData.distance (   self,
  x1,
  x2,
  y1,
  y2 
)
return the distance between two points
def manipulate_hc.ManipulateXYData.read_data (   self,
  filename,
  mode 
)
read HC profile data from file and return datax, datay
def manipulate_hc.ManipulateXYData.redraw_plot (   self)
redraw a plot
def manipulate_hc.ManipulateXYData.sortlevels (   self)
sort through a list of weirdly formatted viscosity file
values and add data point to make a plot look nice

also, assign layer plot data 

The documentation for this class was generated from the following file: