Changing Plot Titles, Axes Labels, Axes Range, and Chart Size in PowerShell

Additional features in the PowerShell Automate functionality allow you to modify titles and override axes labels, axes range, and chart size, if required.

 

"xAxisTitle":"<xlabel name>",

"yAxisTitle":"<ylabel name>",

"plotTitle":"<title>",

"plotSize":"<chartSize>",

"xRange":[<RangeNumber>,<RangeNumber>],

"yRange":[<RangeNumber>,<RangeNumber>]

 

Keysight recommends modifying only the few sections mentioned above. The rest of the code contains information about the plotted chart and should not be edited.
  1. Copy the PowerShell script.

  2. Add the parameters above, if required, to modify the automation script.

  3. Edit the script to alter all parameters.

  1. Paste the script to Window PowerShell client.

  • Press Enter on the keyboard.

  • If the command prompt returns without any errors, the script has successfully run.

  • By default, the image is extracted to the directory path on your machine, which has been accessed by the PowerShell client.

  • The image is exported in the SVG format.

Before

After Adding Additional Parameter