Create Plot

Generates a scatter, line, or box plot.

Overview

This procedure can create scatter, line, or box plots. The plot type is determined by the adjective used ("scatter", "line", or "box"). Scatter and line plots require both x and y values, while box plots need only a single list of values.

Syntax

Below is a line-by-line overview of the automation syntax. Expand each line to learn more.

chevron-rightcreate a {scatter|line|box} plot wherehashtag

What does it do?

Begins a plot definition block.

Where does it go?

This phrase should be written on a new line.

Is it required?

✅ Yes — This phrase is required.

Does it require data?

✅ Yes — Replace the adjective with scatter, line, or box.

Example

create a scatter plot where
chevron-rightthe x values are x-valueshashtag

What does it do?

Provides x-axis data points.

Where does it go?

Indented under create a {scatter|line} plot where.

Is it required?

❌ No — This phrase is optional.

Does it require data?

✅ Yes — Replace x-values with a list of numbers or reference to table data. This is required when creating scatter or line plots.

Example

the x values are [1, 2, 3, 4, 5]
chevron-rightthe y values are y-valueshashtag

What does it do?

Provides y-axis data points.

Where does it go?

Indented under create a {scatter|line} plot where.

Is it required?

❌ No — This phrase is optional.

Does it require data?

✅ Yes — Replace y-values with a list of numbers or reference to table data. This is required when creating scatter or line plots.

Example

the y values are [1, 2, 3, 4, 5]
chevron-rightthe values are plot-valueshashtag

What does it do?

Provides data for box plot distribution analysis.

Where does it go?

Indented under create a box plot where.

Is it required?

❌ No — This phrase is optional.

Does it require data?

✅ Yes — Replace plot-values with a list of numbers or reference to table data. This is required when creating box plots.

Example

the values are [75, 82, 88, 91, 85, 79, 93, 87, 90, 84]
chevron-rightthe title is "plot-title"hashtag

What does it do?

Sets the plot title.

Where does it go?

Indented under create a {scatter|line|box} plot where.

Is it required?

❌ No — This phrase is optional.

Does it require data?

✅ Yes — Replace plot-title with a text string to be used as the plot title.

Example

chevron-rightthe x label is "x-label"hashtag

What does it do?

Labels the x-axis.

Where does it go?

Indented under create a {scatter|line|box} plot where.

Is it required?

❌ No — This phrase is optional.

Does it require data?

✅ Yes — Replace x-label with a text string to label the x-axis.

Example

chevron-rightthe y label is "y-label"hashtag

What does it do?

Labels the y-axis.

Where does it go?

Indented under create a {scatter|line|box} plot where.

Is it required?

❌ No — This phrase is optional.

Does it require data?

✅ Yes — Replace y-label with a text string to label the y-axis.

Example

chevron-rightthe color palette is "color-palette"hashtag

What does it do?

Sets the color scheme for the plot.

Where does it go?

Indented under create a {scatter|line|box} plot where.

Is it required?

❌ No — This phrase is optional.

Does it require data?

✅ Yes — Replace color-palette with one of kognitos,lavender,rocket, or any HTML named colorarrow-up-right (e.g., red, blue, green, purple, orange, etc.). The default is kognitos.

Example

chevron-rightthe style is shashtag

What does it do?

Sets the seaborn plot style.

Where does it go?

Indented under create a {scatter|line|box} plot where.

Is it required?

❌ No — This phrase is optional.

Does it require data?

✅ Yes — Replace s with one of white, darkgrid, whitegrid, dark, ticks. The default is white.

Example

chevron-rightthe font is fhashtag

What does it do?

Sets the font family for all text.

Where does it go?

Indented under create a {scatter|line|box} plot where.

Is it required?

❌ No — This phrase is optional.

Does it require data?

✅ Yes — Replace f with a font name. The default is Raleway Light.

Example

chevron-rightthe dpi is dhashtag

What does it do?

Sets output image resolution.

Where does it go?

Indented under create a {scatter|line|box} plot where.

Is it required?

❌ No — This phrase is optional.

Does it require data?

✅ Yes — Replace d with a numeric value (dots per inch). The default is 600.

Example

chevron-rightthe title font size is shashtag

What does it do?

Sets the title font size.

Where does it go?

Indented under create a {scatter|line|box} plot where.

Is it required?

❌ No — This phrase is optional.

Does it require data?

✅ Yes — Replace s with a numeric value. The default is 20.

Example

chevron-rightthe x label font size is shashtag

What does it do?

Sets the x-axis label font size.

Where does it go?

Indented under create a {scatter|line|box} plot where.

Is it required?

❌ No — This phrase is optional.

Does it require data?

✅ Yes — Replace s with a numeric value. The default is 15.

Example

chevron-rightthe y label font size is shashtag

What does it do?

Sets the y-axis label font size.

Where does it go?

Indented under create a {scatter|line|box} plot where.

Is it required?

❌ No — This phrase is optional.

Does it require data?

✅ Yes — Replace s with a numeric value. The default is 15.

Example

chevron-rightthe trendline is "type"hashtag

What does it do?

Adds a trendline to scatter plots.

Where does it go?

Indented under create a scatter plot where.

Is it required?

❌ No — This phrase is optional.

Does it require data?

✅ Yes — Replace type with linear, quadratic, none, or disabled.

Example

Examples

1. Scatter Plot with Direct Values

2. Line Plot with Table Data

3. Box Plot with Direct Values

Last updated

Was this helpful?