Example #1
0
    def __init__(self, plotsetting):  #,plotdata,UI_CURRENT):
        """ plot back bones """
        self.presetting = plotsetting  # predefined plot settings
        self.UI = create_units()  # predefined unit system

        # reinitial property libs
        self.axeslib = {}
        self.axislib = {}
        self.fontlib = {}
        self.locatorlib = {}
        self.legendlib = {}

        # initialize lib
        self.setFonts()
        self.setLocatorlib()
        self.setFigure()
        self.setAxes()
        self.setAxis()
        self.setLegends()
Example #2
0
 def __init__(self,plotsetting): #,plotdata,UI_CURRENT):
     """ plot back bones """
     self.presetting = plotsetting   # predefined plot settings
     self.UI = create_units()        # predefined unit system
     
     # reinitial property libs
     self.axeslib = {}
     self.axislib = {}
     self.fontlib = {}
     self.locatorlib = {}
     self.legendlib = {}
     
     # initialize lib
     self.setFonts()
     self.setLocatorlib()
     self.setFigure()  
     self.setAxes()
     self.setAxis()
     self.setLegends()
Example #3
0
 def __init__(self):
     self.pdb = {}  # plot database:  table format
     self.fdb = {}  # figure database: figure format
     self.tdb = {}  # result table database
     self.UI = create_units()
Example #4
0
#!/usr/bin/env python
"""this module is to organize the plot data
"""
import unittest
import numpy as np
import unitsystem

UI_CURRENT = unitsystem.create_units()

class unitcoldata():
    ''' Unit column data class
    '''
    def __init__(self,data,unit=None,style='default',label='data'):
        ''' initialize '''    
        if isinstance(data,type(np.array([]))):
            self.data = data
        else:
            self.data = np.array(data)
        
        self.pdata = self.data
        self.unit = unit
        self.style = style       # style for data points
        self.label = label
        
    def reset_pdata(self):
        self.pdata = self.data
    
    def transf(self,scale,shift):
        self.pdata = self.pdata * scale + shift
        return self.pdata
    
Example #5
0
 def __init__(self):
     self.pdb = {}  # plot database:  table format
     self.fdb = {}  # figure database: figure format
     self.tdb = {}  # result table database
     self.UI = create_units()