Log Layout ============================================ Stratapy offers three different log layouts to suit different needs: .. tab-set:: .. tab-item:: Default By default, units are shown with a grain size x-axis, as defined in the input file, and lithological patterns fill the entire unit. .. code-block:: python import stratapy as sp log = sp.load('examples.tutorial.csv') # Default layout (grain size x-axis, filled units) log.plot() .. image:: /_static/figures/Tutorial.png :alt: Default Log Layout :align: center :width: 60% .. tab-item:: Grainsize Grainsize mode is similar to the default layout but units are not filled, instead having a single lithology column on the left-hand side, filled with lithological patterns. .. code-block:: python import stratapy as sp log = sp.load('examples.tutorial.csv') # Grainsize layout (grain size x-axis, lithology column) log.plot(display_mode='grainsize') .. image:: /_static/figures/Tutorial_display_mode_grainsize.png :alt: Grainsize Log Layout :align: center :width: 60% .. tab-item:: Log Log mode is a simple log layout without a grain size x-axis, and units are filled with lithological patterns. .. code-block:: python import stratapy as sp log = sp.load('examples.tutorial.csv') # Log layout (no grain size x-axis, filled units) log.plot(display_mode='log') .. image:: /_static/figures/Tutorial_display_mode_log.png :alt: Log Layout :align: center :width: 30% To switch between these layouts, the optional keyword argument ``display_mode`` can be passed to ``LogObject.plot()``, with accepted values being ``'default'``, ``'grainsize'``, or ``'log'``. For example, the code below illustrates how each of the three figures in the tabs above can be created. Once the ``LogObject`` has been loaded using ``sp.load()``, the ``.plot()`` method can be called with the desired parameters, and can be done so multiple times to generate different log layouts from the same data: .. code-block:: python import stratapy as sp log = sp.load('examples.tutorial.csv') # Default layout (grain size x-axis, filled units) log.plot(display_mode='default') # Grainsize layout (grain size x-axis, lithology column) log.plot(display_mode='grainsize') # Log layout (no grain size x-axis, filled units) log.plot(display_mode='log') ``log.save()`` can be added after each ``.plot()`` call to save each figure, if desired.