''' SG 2 ''' sg2 = RockPy.SampleGroup(name='SG2') s2a = RockPy.Sample(name='2a', mass=1, mass_unit='mg') s2b = RockPy.Sample(name='2b', mass=1, mass_unit='mg') sg2.add_samples([s2a, s2b]) s2a.add_measurement(mtype='hysteresis', mfile=join(folder, 'LTPY_512,2a_HYS_VSM#[]_[]_[]#TEMP_300_K##STD000#.000'), machine='vsm') s2a.add_measurement(mtype='hys', mfile=join(folder, 'LTPY_527,1a_HYS_VSM#[]_[]_[]#TEMP_300_K##STD000#.000'), machine='vsm') s2b.add_measurement(mtype='hys', mfile=join(folder, 'LTPY_527,1a_HYS_VSM#[]_[]_[]#TEMP_300_K##STD000#.001'), machine='vsm') s2b.add_measurement(mtype='hys', mfile=join(folder, 'LTPY_512,2a_HYS_VSM#[]_[]_[]#TEMP_300_K##STD000#.001'), machine='vsm') study.add_samplegroup([sg1, sg2]) # print study.info() fig = Figure() # h1 = fig.add_visual(visual='hysteresis', name='hys', plt_input=sg1) # h2 = fig.add_visual(visual='hysteresis', name='hys', plt_input=sg1) # c1 = fig.add_visual(visual='backfield', name='coe', plt_input=sg1) # plotting the same data with different calculation types s1 = fig.add_visual(visual='resultvsseries', result='ms', series='mtime', name='rvs', plt_input=sg1, calculation_parameter=dict(saturation_percent=20)) s1.normalize_all(reference='mass', norm_dtypes=['mag']) s1.title = '20% sat' s1 = fig.add_visual(visual='resultvsseries', result='ms', series='mtime', name='rvs', plt_input=sg1, calculation_parameter=dict(saturation_percent=40)) s1.normalize_all(reference='mass', norm_dtypes=['mag']) s1.title = '40% sat' s1 = fig.add_visual(visual='resultvsseries', result='ms', series='mtime', name='rvs', plt_input=sg1, calculation_parameter=dict(saturation_percent=60))
__author__ = 'wack' ''' Tutorial to demonstrate functions and plots of directional (x,y,z) data ''' import RockPy from RockPy.Structure.sample import Sample from RockPy.VisualizeV3 import Figure from os.path import join af_file = join(RockPy.test_data_path, 'MUCSUSH_af_test.af') s = Sample("WURM") afd = s.add_measurement(machine='sushibar', mtype='afdemag', mfile=af_file) # do plotting stuff fig = Figure() h1 = fig.add_visual(visual='stereo', name='mystereo', plt_input=s) #h1.remove_feature(features=['stereodir_lines']) fig.show()