1. How to get started with plots - Part 2 We use the simple flexible riser case found in SIMA examples The initial condition is run and used to show how to make a plot calling a new workflow and copy the figure to a file in a storage task Note: storage task is a folder that is visible on the SIMA navigator. Files used in this tutorial 2. Why make a workflow for making a single plot ? Note that this the same as calling a subroutine/function in for instance Matlab or python You can use the workflow (note: function/subroutine) for several signals you want to plot Using the variable possibilities in SIMA, you can make the plotting both flexible and generic 3. Make workflow for plotting Make a new workflow Give it a new name. here: wf_makeSinglePlot 4. Handy tools to make a plot in a workflow Workflow input Input to the workflow; in this case the input is the signal Flatten Removes the folder structure and convert this into a string Rename This is used to rename a signal Extract signal property Is used to extract properties of the signal. In this example we extract the name. Plot This one we use to make the plot File copy Copy the plot/figure to a folder 5. Add workflow input We must add functionalities in the new workflow You can step into the workflow using inspect or by clicking on the name of the workflow in the navigator 6. Call the workflow from main workflow Drag and drop the workflow operation Connect the workflow operation to the new workflow Connect the output slot from signal selection to the workflow operation Select and Run the workflow step into You may check the incoming signals by slicking on the slots You can rerun the workflow using the input that you have sent by using: Rerun workflow without clearing inspected inputs 7. flatten Drag and drop the flatten operation into the workflow sheet Rename , here: flatten: remove folder structure 8. rename Drag and drop the rename operation into the workflow sheet Rename, here: rename to signal to make it general Call all signal that fits the path requirement * to signal Connect the output slot from flatten to input slot of rename 9. Extract property Drag and drop the Extract property operation into the workflow sheet Rename, here: Extract Signal property: I get the name of the signal Connect the output slot from flatten to input slot of Extract property 10. Plot Drag and drop the plot operation into the workflow sheet Select the signal Click on Fix plot Then you may configure the plot We will set the title to editable and set it as input Change the font size The plot will also be available for copying to file 11. Change font size on x-axis, y-axis, title and legend 12. Make a storage task Make storage task for storing the plots in the SIMA workspace Give it a name, here ST_myPlots 13. File copy Drag and drop the file copy operation into workflow sheet Rename; here Copy plot to storage task Connect to image slot Create input for local scripting Give it a name, here: nameofSignal Connect to extract property operation 14. Set path as script in File copy Note: sima:// gives the path to the root of the SIMA workspace 15. Run the total workflow and find plot in storage task 16. Notes Compare results for different runs and/or models You may run several conditions in the same workflow sheet You may pos process several conditions using the same post-processor See also How to get started with plots - Part 1 How to make log-log-plots 17. Example files Get_started_with_plotting_2.stask How to get started with making plots - 1 How to get started with making plots - 3