Version: 2021b
Type: Features
Category: Programming
Subcategory: Python
Jira: ORG-23210
def add_plot(self, obj, coly=-1, colx=-1, colz=-1, type = 's', colyerr=-1, colxerr=-1):
Simple example:
op.new_sheet('w') op.new_sheet('m') op.new_graph() pe = op.pe active = pe.active_folder() print(active.path) print(list(active.pages())) print(list(active.pages('w')))
New methods are added:
op.pe.cd #pe_cd op.pe.search #pe_path op.pe.mkdir #pe_mkdir op.pe.move #pe_move
Example uses the ‘Import Filter’ DC to import the CSV file. User has previously created a custom Import Filter for CSV files. Doing it this way ensures the users import filter is used and not the CSV DC.
fn = op.file_dialog('*.csv') wks=op.find_sheet() wks.from_file(fn, True, dctype='Import Filter')
Examples:
wks = op.find_sheet() wks.comments = 'These are sheet comments' c = wks.comments wks.set_str('tree.test.group', 'Group #3') s = wks.get_str('tree.test.group') wks.set_int('tree.test.run', 123) n = wks.get_int('tree.test.run')