Mcp Viz Xy

mcp_viz_xy
preview General Plotting cloud matplotlib
Plot x/y data and save the figure: line and/or marker series on one axes, written directly as a PNG or SVG file inside the workspace (no plotting script needed). Use it whenever a user gives series of numbers to plot, or to draw plot data returned by analysis tools - for example the Nyquist data of eis_plot_nyquist (x_data, y_data) or the Bode data of eis_plot_bode - or columns of a CSV file. Supports log axes, equal aspect ratio and y negation (Nyquist: -Z''). One axes per call; a Bode figure is two calls (|Z| vs frequency, phase vs frequency).

Preview. This tool is available but has not yet completed Paramus output verification. Treat results as provisional.

Parameters

NameTypeRequiredDescription
output_path string yes Workspace-relative file path for the figure. A bare file name is placed in the chat's files folder.
series array no Inline data: one object per series with x (array of numbers), y (array of numbers), optional label (string) and optional style ('line', 'markers' or 'line+markers'; default 'line'). Required unless data_file is given.
data_file string no Workspace-relative CSV file with a header row. Required unless series is given.
x_column string no Exact CSV header name of the x column. Required with data_file.
y_columns array no Exact CSV header names; one series per column. Required with data_file.
negate_y boolean no Multiply all y values by -1 (Nyquist convention: plot -Z''). Default: false
x_label string no X axis label.
y_label string no Y axis label.
title string no Figure title.
x_scale string no X axis scale: 'linear' (default) or 'log'. With 'log' all x values must be > 0.
y_scale string no Y axis scale: 'linear' (default) or 'log'. With 'log' all y values must be > 0.
equal_aspect boolean no Equal axis scaling (Nyquist convention). Default: false
output_format string no Figure file format: 'png' (default) or 'svg'.

Examples

Nyquist figure from EIS plot data

Electrochemical impedance spectroscopy

Prompt: “Create the Nyquist figure for the impedance analysis and save it as [3]_nyquist.png”

Bode magnitude from a CSV file

Electrochemical impedance spectroscopy

Prompt: “Plot |Z| against frequency from files/[1]_eis.csv with logarithmic axes”