Skip to content

Commit

Permalink
docs: update example 8 for --plot_projection functionality, version bump
Browse files Browse the repository at this point in the history
  • Loading branch information
hvasbath committed Sep 14, 2022
1 parent f521a89 commit 56ba0e9
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ Contributors: Hannes Vasyura-Bathke @hvasbath

**plotting**
- *plot_projection* argument available for *stage_posteriors* plot: cdf, pdf, kde
- update Example 8 to showcase the use of this functionality

### Fixed
- stage_posterior plot supports multipage output, figsize fixed to fractions of A4
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions docs/examples/MTQT_polarity.rst
Original file line number Diff line number Diff line change
Expand Up @@ -394,6 +394,13 @@ It may look like this.

The vertical black lines are the true values and the vertical red lines are the maximum likelihood values.

The posterior marginals can be plotted using different forms, either "kde", "pdf", or "cdf" through the option *--plot_projection*::

beat plot MTQT_polarity stage_posteriors --stage_number=-1 --format='png' --varnames=strike1,kappa --plot_projection=kde

Repeatedly calling the above commandline and combining the output yields following figure, from top to bottom: with varying *--plot_projection* kde, pdf, cdf.

.. image:: ../_static/example8/pol_stage_posteriors_variations.png

To get an image of parameter correlations (including the maximum aposterior (MAP) value in red) of moment tensor components and posterior likelihood.::

Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "beat"
version = "1.2.0"
version = "1.2.1"
requires-python = ">=3.7"
license = {text = "GPLv3"}
description = "'Bayesian Earthquake Analysis Tool'"
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
op = os.path

packname = "beat"
version = "1.2.0"
version = "1.2.1"


try:
Expand Down

0 comments on commit 56ba0e9

Please sign in to comment.