Figure creation and reuse¶
Use these guides to create, export, and reuse Figure Composer figures. For complete figure examples, use the plotting gallery.
Creating and exporting a reusable figure¶
Open the source data in ImageTool Manager.
Right-click the required ImageTool rows and choose Add to Figure….
Set Action to New Figure and create the figure.
In Figure Composer, arrange the axes in Layout and add or edit the plotting operations in Recipe.
Check the rendered figure after each recipe change.
Exporting the figure¶
Set the output DPI, transparency, bounding box, and padding in the Export tab. Export the figure and inspect the saved file at its final display size.
Preserving the figure recipe¶
Save the Manager workspace to preserve the figure, recipe, and sources together. Use Copy Code when the source data already exists as Python variables. Use Copy Full Code in the Manager when the copied code must also recreate the recorded analysis inputs and operations.
Use Reusing a figure recipe with other data when the same layout and plotting operations must be applied to another dataset. Use Figure styles for a custom Matplotlib stylesheet.
Creating a figure before all source data is available¶
In ImageTool Manager, choose .
In Figure Composer, use Add… in the Sources tab to select ImageTool rows. You can also drag rows from the Manager into Figure Composer.
Configure the axes in Layout.
Add recipe steps and assign each data-dependent step to the required source.
Check the rendered figure after you add or replace a source.
Use this procedure when you must define the layout or plotting recipe before all source data is available. Save the Manager workspace to preserve the figure and its sources.
Reusing a figure recipe with other data¶
Open the existing Figure Composer figure and the replacement data in the same Manager.
Right-click the replacement ImageTool row and choose Add to Figure….
Select the target figure.
Set Action to Replace Source.
Select the source to replace and apply the change.
Inspect all axes for changed coordinate ranges, normalization, labels, and missing recipe inputs.
Use Add New Step when the data must be added as another plot. Use Add Source Only when the recipe will refer to the source in a later manual step.
Save the workspace under a new name when the original recipe and sources must remain available.
Installing a custom stylesheet¶
Open the shared Settings window.
Select Figure Composer.
In Stylesheets, choose Open Folder.
Copy the
*.mplstylefile into that folder.Choose Reload.
Select the stylesheet name without the
.mplstylesuffix, then choose Add.Open or refresh a figure. Check its fonts, line widths, dimensions, and export settings.
If the style is not available, confirm that the file is in the folder opened by Settings and that Matplotlib can parse it. See Styles and export settings for style and export precedence.