From 8dfb685610cd47e0b61ee92a4079e57f58e37fbf Mon Sep 17 00:00:00 2001 From: "Hock, Martin" <martin.hock@fst.tu-darmstadt.de> Date: Fri, 18 Mar 2022 19:51:58 +0100 Subject: [PATCH] Added a minimal example. --- README.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/README.md b/README.md index 1630039..099103e 100644 --- a/README.md +++ b/README.md @@ -32,6 +32,17 @@ The **ProjectID** is your custom project number, it well be the prefix of the ID `DataPaths` contains the path(s) to the research data, for multiple files you can use a cell array (We recommend using absolute paths). It is also possible to pass an arbitrary number of variables as struct. \ `figure` is the figure that should be published. +** Minimal Example:** +```matlab +fig = figure; +plot(x,y); +[fig, IDs] = PlotID.TagPlot(fig); +script = [mfilename('fullpath'),'.m']; % This creates a path to the script this line is called from +rdata = {'\\fullpath\dataset01.mat', '\\fullpath\dataset02.h5'} ; % a single path does not need a cell array +PlotID.Publish(rdata, script, fig); +``` + + **Please take also a look on the examples provided in the Example folder**. @@ -122,6 +133,9 @@ The config file is a JSON-File. The config file stores user data and options of **Note:** If you mess up your config-file simply delete it, PlotID will create a new one the next time you use it. +## Default config.json + + ## Define an export path If you define an export path in the config.json this path is used as location for the exported data. -- GitLab