Goal

Read a file (e.g., csv) and save the plot to a local directory (same path).

Table of Contents

Prerequisites

Final Workflow

The figure below shows the final layout of the workflow. local_plot_save_workflow

Creating and Filling out

1- [Node 1] - Add a UserInput File Node

  • How:

    • In the workspace, right-click and select Add User InputUserInputFile (Built-in Node).

user-input_File

2- Add and fill out Source Text Nodes (Variables)

  • How:

    • In the workspace, right-click and select Add Source → String (2, 3, 5, 6, 7, 8, 9, 10).

3_text_nodes

  • Node 2 : Prompt.
  • Node 3 : Load Data Source Path.
  • Node 5 : Set Delimiter. The default is "Tab"
  • Node 6 : Plot Destination Path (Mandatory).
  • Node 7 : Selected Column Indexes. (Mandatory)
  • Node 8 : Select Plot Type (.svg, .pdf, *.png, ...). The default is "pdf"
  • Node 9 : Set X Column Label (optional)
  • Node 10: Set Y Column Label (optional)

3- [Node 4] - Add a workflow-nodes plot matplotlib Node

workflow_sys_echo_1

workflow_nodes_plot_matplotlib

Connection

  • Pay attention to the ports colors.
  • Integer ports (light orange). Not for this case.
  • Strings (light green)

HW_local_plot_save_connection

Running

1- Save the workflow by pushing Play button. running_1

2- Start running the workflow by using Start button. running_2

3- Enter the plot file path. HW_local_plot_save_entering_plot_file

4- Status: Finished final_status_

5- The plot is stored at the specified path.

Done.