Plot Styling
Plots in Sphinx are highly customizable. After creating a chart, a user can click on the Styles tab next to it to customize it further.
Overall Plot Styles
You can control the overall size of your chart by setting:
height
: The height of the chart in pixelswidth
: The width of the chart in pixels
You can also control the plot title by setting:
hide
: Whether to show or hide the overall plot titlesize
: The font size of the title
Axis Styles
Each axis (x and y) can be customized with the following options:
Axis Title
title
: Set a custom title for the axishide
: Toggle visibility of the axis title
Axis Labels
size
: The font size of the labelangle
: Rotate axis labels by a specified angle (in degrees)format
: Whether to display the values on the axis in scientific notation or percentage
Axis Appearance
gridlines
: Toggle visibility of grid linesticks
: Toggle visibility of axis ticksaxis line
: Toggle visibility of the main axis line
(Heatmaps only) Use the data label
to toggle whether or not to show the values overlaid on the heatmap.
Scales and Sizes
Axis Scale and Range
min
: Set custom minimum value for the axismax
: Set custom maximum value for the axislog
: Enable logarithmic scale for the axisindependent
: Make the axis scale independent of other axes
Scatter Customizations
You can customize how individual scatter points are displayed using:
size
: Configure how data values map to point sizesshape
: Define different shapes for data points
Sorting
Control how your data is ordered by sorting A -> Z, Z -> A, or choosing a custom sorting order.
Legend
Customize the legend appearance:
title
: Set a custom title for the legendhide
: Toggle legend visibilitytitle size
: Adjust the size of the legend titlesymbol size
: Adjust the size of legend symbolslabel size
: Adjust the size of legend labels (Gradients only)gradient width
: Set the width of gradient legendsgradient height
: Set the height of gradient legends
Line Styles
You can customize both existing lines in the plot as well as add constant lines based on a formula.
Set line appearance with:
stroke
: Set the dash pattern for lineswidth
: Line thickness (Error Bars only)hide
: Toggle visibility of error bar end caps
Tooltip
You can add additional fields from your Datatable to show up in the tooltip upon hover.
Color
Configure how data values map to colors for each object in the plot. Every line, point, area, and error bar can be customized with a color picker. Both color and opacity can be adjusted here.
We provide a few dozen different color schemes for ranging over values across these 4 categories:
- Categorical palettes
- Sequential palettes
- Diverging palettes
- Special palettes
Jitter
jitter
: Add random jitter to data points to prevent overlap
Saving Styles
Once you’ve customized your plot, you can save these settings as a plot style for future use. This allows you to:
- Create consistent visualizations across your organization
- Apply the same styling to multiple plots
- Share your preferred styling with team members
To save a style:
- Configure your plot’s appearance using the options above
- Click the “Save Style” button
- Give your style a name
- The style will be available for future use
You can also:
- List all available plot styles
- Update existing styles
- Apply saved styles to new plots