Skip to content
Snippets Groups Projects
Select Git revision
  • 20dd523e00472955000ce62e80a469c4ce6e8c74
  • master default protected
  • gitkeep
  • development protected
  • QRCode/Size
  • sync-link-hdf5
  • feature/multi-scriptpaths
  • dev/plotID_Class
  • doc
  • V1.0.1
  • V1.0
  • V1.0-RC1
  • V0.2.2
  • V0.2.1
  • V0.2-RC1
  • V0.1
16 results

PlotID_config.m

Blame
  • Code owners
    Assign users and groups as approvers for specific file changes. Learn more.
    PlotID_config.m 1.07 KiB
    %% Working with one config file
    
    %% add custom publish options to the config file
    % you can define custom options in the config file:
    
    configFileName = 'config.json';
    configObj = PlotID.config(configFileName);
    
    % This method adds the default config to your config file
    configObj.addPublishOptions('default');
    % You can change this in the json file, but be carefull no
    % argumentValidation will be done on options from the config file!
    
    %% Working with multiple (project dependend) config files
    % it is possible to use individual config files for each project
    % configP1.json, configP2.json ... 
    
    % Create a new config file programatically 
    customConfigFileName = 'configP1.json';
    configObj = PlotID.config(customConfigFileName);
    configObj.addPublishOptions('default');
    
    % Use the custom Config
    % you need to provide the name of your custom config file to tagplot as
    % well as to publish by using the Name-Value Pair:
    % 'ConfigFileName','YOURNAME.json'
    
    % [figs, IDs] = PlotID.TagPlot(figs, 'ConfigFileName','configP1.json');
    % Publish(DataPaths,scriptPath, 'ConfigFileName','configP1.json')