Customisation Options

Stratapy offers a vast range of customisation options to suit needs of users from different fields, and of different level of coding familiarity. This section is split into multiple sections, to help you find what you are looking for quickly, including but not limited to:

  • Figure layout and sizing: Adjusting the overall figure dimensions, quality, and more

  • Legends and labels: Customising the appearance and content of legends and axes labels

  • Grain size: Customising the appearance of grain size logs, including brackets, labels, and values

  • Additional elements: Adding features such as chronostratigraphy, sample locations, and more to your logs

  • Customising graphics: Adjusting the appearance of lithological patterns, minerals, and features, and adding your own custom images

  • Advanced plotting: Creating multi-log figures, correlated logs, and bespoke figure layouts

Tip

Examples of all these customisation examples can be explored interactively in the accompanying Jupyter notebooks. The Gallery also includes a range of example logs and figures which can be copied and adapted.

Click on any of the cards below to access the relevant section of examples and explanations.

Legends

Control over legends

legend.html
Labels

Customising axes labels

labels.html
Grain Size

Customise grain size values, labels, and brackets

grain_size/index.html
Figure Layout

Figure dimensions, sizing, resolution, and more

figure_layout.html

For users wanting to create multiple logs within one figure, the Advanced Plotting section provides a comprehensive guide on the sp.correlated_logs() and sp.multi_log() functions which automate multi-figure graphics, with examples to help you get started.

Additionally, for those experienced using matplotlib, this section also includes guidance on how to create completely bespoke figure layouts, and how to integrate stratapy’s logs and functions to your own figure designs.

Additional Elements

Quickly add advanced features like chronostratigraphy or sample locations to your logs

additional_elements/index.html
Customising Lithologies and other Graphics

How to customise lithologies, minerals, and features in stratapy

adjusting_assets/index.html
Advanced Plotting

Create multi-log figures, correlated logs, and bespoke layouts

advanced_plotting/index.html
API Reference

Full details of all functions and their parameters

reference/api_reference.html

Note

Looking for a list of available lithologies, minerals, or features in stratapy? Available Assets