Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ESS Plot #58

Merged
merged 24 commits into from
Oct 17, 2024
Merged

Add ESS Plot #58

merged 24 commits into from
Oct 17, 2024

Conversation

imperorrp
Copy link
Collaborator

@imperorrp imperorrp commented Jul 3, 2024

Adding ESS plot (#5 )

Currently implemented for kind='local' only, using the new scatter_xy visual element function also added as part of this commit. The ess data ('y' values) obtained from the ess statistical computation via Arviz-Stats is combined with xdata ('x' values) generated via np.linspace (like the legacy ess plot in old Arviz does) after this xdata is broadcasted to fit the shape of the ess data. These are concatenated along a new plot_axis dimension (coords 'x' and 'y') which the scatter_xy visual element function then splits and plots accordingly.

Outputs:

azp.plot_ess(data)
image

azp.plot_ess(data, var_names=["mu", "tau"])
image


📚 Documentation preview 📚: https://arviz-plots--58.org.readthedocs.build/en/58/

@codecov-commenter
Copy link

codecov-commenter commented Jul 3, 2024

Codecov Report

Attention: Patch coverage is 94.76190% with 11 lines in your changes missing coverage. Please review.

Project coverage is 85.73%. Comparing base (f4a39af) to head (56cb9c6).
Report is 2 commits behind head on main.

Files with missing lines Patch % Lines
src/arviz_plots/plots/essplot.py 94.89% 10 Missing ⚠️
src/arviz_plots/visuals/__init__.py 91.66% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main      #58      +/-   ##
==========================================
+ Coverage   84.80%   85.73%   +0.93%     
==========================================
  Files          21       22       +1     
  Lines        2336     2545     +209     
==========================================
+ Hits         1981     2182     +201     
- Misses        355      363       +8     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Member

@OriolAbril OriolAbril left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks very good so far

@imperorrp
Copy link
Collaborator Author

Fixed the docstring switch-up for type 'local' and 'quantile' and incorporated other suggestions including the x aesthetic addition for the 'model' dimension. I made a temporary addition to scatter_xy to add the extra x arg passed due to this new aesthetic. The output ends up looking like this though-

pc = azp.plot_ess(
        {"centered": data, "non centered": data2}, var_names=["mu", "tau"]
    )
pc.add_legend("model")

image

The default x arg value generated for the second model is '1', which makes the data get severely skewed out of the original x axis range. Should we hardcode some smaller 'x' values with something like pc_kwargs['x'].setdefault(np.linspace(0, 0.01, 9)) maybe?

@imperorrp
Copy link
Collaborator Author

Updated x aesthetic mapping for multiple-model cases:

image

The logic followed is as below. The x_diff is calculated, and currently one-third of that is taken as the range within which points of different models can be plotted. np.linspace then ensures an even distribution of the points of whatever number of models to plot within the aforementioned range.

  # setting x aesthetic to np.linspace(-x_diff/3, x_diff/3, length of 'model' dim)
  # x_diff = span of x axis (1) divided by number of points to be plotted (n_points)
  x_diff = 1 / n_points
  if "x" not in pc_kwargs:
      pc_kwargs["x"] = np.linspace(-x_diff / 3, x_diff / 3, distribution.sizes["model"])
  pc_kwargs["aes"].setdefault("x", ["model"])

And quantile plots added-
image

Labelling, along the y axes ('ESS for small intervals' for kind='sample', 'ESS for quantiles' for type='quantile') and x axis ('quantile') has also been added

@imperorrp
Copy link
Collaborator Author

Added rugplot to plot_ess.

Like plot_trace, I've set the 'overlay' aesthetic for the 'chain' dimension but is ignored with .difference() when the default aes_map is generated for the local and quantile artists.

Also made a modification to the trace_rug visual element to add a new arg scale, which helps in controlling the xvalues range. It is set to the length of the draw dimension so that the xvalues range is kept between 0-1.

Plot output:

azp.plot_ess(data, var_names=["mu", "tau"], rug=True)
image

@imperorrp
Copy link
Collaborator Author

To do: Apply rankdata function to the data once available in Arviz-Stats for proper rug generation.

Copy link
Member

@OriolAbril OriolAbril left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

go over plot_ess_evolution review first

@imperorrp
Copy link
Collaborator Author

Just made updates. This takes into account #66 and plots the mean, sd and min_ess as well using line_xy. Users can also set custom text for xlabel and ylabel now:
image
image

Annotating these lines is left as well as fixing an issue when the model dimension exists, where the output is like this:
image

@imperorrp
Copy link
Collaborator Author

Plot_ess output is now like this:

image

image

image

Each of 'mean', 'sd', and 'min_ess' has their own linestyle to distinguish between them. Maybe having another legend for them could be of help though as it might not be evident to a user which is which unless the the linestyle cycle and order of plotting is known by looking at the source code.

The 'min_ess' line is set to gray by default and 'mean' and 'sd' to the first color in the color cycle by default. If the 'model' dim is present, then all three elements get the same color for a model.

@OriolAbril
Copy link
Member

I think annotating the lines is he only way to clearly indicate which is which. If you set extra_methods=True in current arviz, you'll see the output looks like this:

imatge

I would add these two annotations as visual elements here too

@imperorrp
Copy link
Collaborator Author

I think annotating the lines is he only way to clearly indicate which is which. If you set extra_methods=True in current arviz, you'll see the output looks like this:

imatge

I would add these two annotations as visual elements here too

Todo: Add a new visual element for these annotations

@imperorrp
Copy link
Collaborator Author

Rebased essplot commits

@imperorrp
Copy link
Collaborator Author

Added new annotate_xy visual element with in-built logic to determine whether to vertically align the intended annotating text top or bottom based on an extra_da arg passed to it. This helps when two lines like mean and sd both are being plotted. Defaults for them both are also set- 'bottom' for mean and 'top' for sd.

New plot_kwargs keys mean_text and sd_text are also added and their default aesthetics from the aes_maps for mean and sd are also used for these if not set.

Outputs:

image

image

@imperorrp
Copy link
Collaborator Author

imperorrp commented Aug 21, 2024

  • Some examples to the docstring and to the example gallery for plot_ess were added. Documentation seems to build fine when tried locally except with a warning, and this seems to be the case in the doc building log here too. There are lots of NaN is not an array.

  • Tests were added in test_plots.py and test_hypothesis_plots.py. In the former, testing with the datatree_sample fixture causes the ess computing function from Arviz-Stats to raise an error due to number of sample_dims not being equal to 2, which it seems to require. In the latter, a couple of errors are being raised that have to be looked into. One is with the time limit being exceeded.

@imperorrp
Copy link
Collaborator Author

Fixed hypothesis test errors for ESS plot

Copy link
Member

@OriolAbril OriolAbril left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

very close to merging

@imperorrp
Copy link
Collaborator Author

Rebased the PR

…ots in plots.rst and expanded max limit for test methods in testplots.py in .pylintrc
@imperorrp
Copy link
Collaborator Author

Made those modifications. Also, pylint was indicating an error regarding the number of tests under the TestPlots class in testplots.py so I raised the limit from 20 to 25.

The output is like this right now though:
image

^All 10 subplots in one row despite the print statements indicating the figsizing logic computes 2 rows and sticks to the 5 max subplots per row constraint. This has to be looked into if I'm missing something.

@imperorrp
Copy link
Collaborator Author

imperorrp commented Sep 4, 2024

Todo: Add plot_ess_evolution, plot_mcse reference in 'see also' once both this and their PRs (#71, #79) are merged into main

@OriolAbril OriolAbril changed the title [WIP] Adding ESS Plot Add ESS Plot Sep 9, 2024
@OriolAbril OriolAbril linked an issue Sep 9, 2024 that may be closed by this pull request
now only waiting for us to figure out behaviour and scope in arviz-stats
and xarray-einstats
@OriolAbril OriolAbril merged commit 3cc46aa into arviz-devs:main Oct 17, 2024
4 checks passed
PiyushPanwarFST pushed a commit to PiyushPanwarFST/arviz-plots that referenced this pull request Mar 1, 2025
improve plot_posterior and add tests for it

add minimal docstrings

add init to test folder

update plot_posterior

add some docs

add docs and implement some feedback

improve api docs

ignore mystnb warning

add plot_trace (arviz-devs#1)

* add trace plot

* use convert_to_datatree in tests

* fix linters

* Add to draft API docs

---------

Co-authored-by: Oriol Abril-Pla <oriol.abril.pla@gmail.com>

rename plot_posterior and small improvements

fix test

rename source file

add style

add styles

update intro plotcollection

update intro plotcollection

add ecdf to distplot

draft trace_dens

draft trace_dens

draft

Update src/arviz_plots/plots/tracedensplot.py

Co-authored-by: Oriol Abril-Pla <oriol.abril.pla@gmail.com>

Update src/arviz_plots/plots/tracedensplot.py

Co-authored-by: Oriol Abril-Pla <oriol.abril.pla@gmail.com>

Update src/arviz_plots/plots/utils.py

Co-authored-by: Oriol Abril-Pla <oriol.abril.pla@gmail.com>

Update src/arviz_plots/plots/utils.py

Co-authored-by: Oriol Abril-Pla <oriol.abril.pla@gmail.com>

fix missing argument

try fixing docs

fix docs

Issue was due to wrong handling of try except.
To avoid depending on matplotlib, it is imported within a try except to
register the colormaps and styles, but then it is deleted from the
namespace which was happening outside the try except and so arviz_plots
failed to import on envs without matplotlib

rename dens -> dist

update api index

Add legend method to PlotCollection and improve docs (arviz-devs#32)

* start work on legend and improve docs

* add anchor placeholder

* work on docs

* add backend functions to docs and improve plot_collection docs

* add missing files

* extend api docs

* first attempt at bokeh legend

* make no-duplication of backend api docs work

* run pre-commit

* fix and docs on generate_aes_dt

* doc improvements

* some doc extensions

* improve plot_dist docs

* fix bokeh legend generation

* add warning to legend method

Add plot_forest and tests (arviz-devs#34)

* some improvements to PlotCollection

* add classmethod tests

* add more tests

* add divergences to plot_trace

* extend tests

* add divergence data to test_plots

* add plot_forest draft

For everything to work, the following features were added to:
* support for "__variable__" in aesthetics
* default values for common aesthetics
* support for dict of datatree input -> multiple models aligned within the same plot

* add labels to plot_forest

still some backend elements missing for bokeh

* further improvements to plot_forest

* invert y aes to preserve order top-down

* improvements to aes_map defaults and shading

* attempt support for InferenceData inputs

* plot_dist support for multiple models and docs

* update dependencies

* add more tests

* raise error on wrong use of combined

* better support for aesthetics in labels elements

Add neutral element concept to aes generation (arviz-devs#35)

* First try at neutral element

* Fix syntax

* Try fixing syntax and improve readability

* Fix shade aes default

* update and extend tests

* update aes_dt to aes_dict conversion

* run tests with coverage on CI

Fixes and improvements to plot_trace_dist (arviz-devs#36)

* very rough draft to fix aesthetic mapping defaults

* fix plot_trace_dist and add tests

* use neutral element for combined elements

* add example to plot_trace

Extend and rerun tutorials (arviz-devs#38)

* add xlabel to plot_trace

* rerun plots_intro notebook

* update leftover arviz-base references

* write use plotcollection notebook and some improvements

* fix scale_fig_size defaults

* switch docs theme, default to light version

PlotCollection coords attribute for better composability (arviz-devs#39)

* prepare reuse of plotting functions

* call plot_trace within plot_trace_dist

* use plot_dist in plot_trace_dist

* add contributing section to docs

* fix doc warnings

* fix dark-light issue with backend logos

* write new_plot docs

* improve neutral element behaviour and docs

* fix a couple cross-references

add none backend and hypothesis tests (arviz-devs#41)

* add none backend and hypothesis tests

* add more tests with hypothesis and scheduled actions

* fix hypothesis yaml syntax

* use unset as default for none backend so keys are filtered

* add branch reference to issue

add codecov token (arviz-devs#42)

change action to create issue/comment (arviz-devs#44)

fix hypothesis action (arviz-devs#46)

* add condition to run if testing failed

* try fixing branch name

* try adding a more specific link to action logs

* switch pytest-store_date command order

Prepare initial pre-release (arviz-devs#54)

* add links between sub-libraries

* bump version

* use accessor in plot_forest docstring

* bump version and configure publishing

Fix issue in plot_dist_trace (arviz-devs#64)

don't try to rename artists if they haven't been drawn

Adding Ridgeplot to Arviz-Plots  (arviz-devs#57)

* First commit for adding ridgeplot

* Updated `plot_ridge` with 'face' and 'edge' artists now and updated visual elements `line_xy` and `fill_between_y`

* Modified density calculation pre-check in plot_ridge and modified visual element functions

* Added hypothesis tests for plot_ridge

* Added ridge_height as a top level arg and other modifications

* final changes

---------

Co-authored-by: Oriol (ProDesk) <oriol.abril.pla@gmail.com>

Removed unused 'extra_data' arg (arviz-devs#73)

Add plotly backend and gallery prototype (arviz-devs#61)

* plotly backend proof of concept

* be more consistend with kwarg handling and defaults

* restructure backend dependencies and install process

* fix typo in bokeh's remove_ticks

* complete plotly backend

* gallery prototype

* extend docs and tests

* add plotly equivalences to glossary

* more sensible defaults and kwarg handling

* automate gallery generation via sphinx extension

* figsize and gallery related fixes

* full fledged gallery

* remove unused references

* update gallery generator

* initial plotly support for styles

* fix gallery generator processing

add pp-obs comparison with plot_forest example (arviz-devs#74)

* add pp-obs comparison with plot_forest example

* improve example

expand style functionality (arviz-devs#75)

* expand style functionality

* add feedback

* Apply suggestions from code review

Co-authored-by: Oriol Abril-Pla <oriol.abril.pla@gmail.com>

---------

Co-authored-by: Oriol Abril-Pla <oriol.abril.pla@gmail.com>

Improve backend documentation and get plot_forest to follow best practices (arviz-devs#78)

* start working on best practices and backend docs

* use none backend as documentation base

* add images for plotly and none

* adapt minigallery directive

* use none backend instead of arviz_plots.backend

* gallery references and plot sizing improvements

* fix typo

* pylint

* wait until using sphinx 8

* pseudo fix for empty minigallery

* modify slightly auto sizing

* Apply suggestions from code review

Co-authored-by: Osvaldo A Martin <aloctavodia@gmail.com>

* add see also

---------

Co-authored-by: Osvaldo A Martin <aloctavodia@gmail.com>

Histogram support addition to distplot.py (arviz-devs#47)

* WIP histogram addition to distplot.py

* Added histogram computing if kind='hist'

* reformatted histogram dataarrays into a dataset

* Modified histogram dataset plot_axis coords to 'x' and 'y' and added visual element function, backend interface and matplotlib backend function for plotting histogram

* Allowing xarray_einstats.histogram() function to determine default number of bins

* Modified histogram data restructuring function to include bin edge data and modified docstrings for hist backend interface

* added plot_dist test parametrizations for kind=kde, hist, ecdf, adjusted hypothesis time limit to 2 seconds and modified backend hist plotting function

* added width to histogram plotting, removed print statements from previous commits and updated restructure_hist_data() docstring

* switched histogram computation to arviz stats, modified plot_hist visual element slightly for new returned hist density data structure

* added 'density=True' to normalize histogram heights and removed axis by default for histograms

* added Bokeh backend for hist visual element and removed ecdf parametrization from test_plot_dist_models

* updated docstring, added 'alpha' argument to the 'hist' backend plotting functions, renamed 'plot_hist' to 'hist', modified `remove_axis` logic slightly and set density=True as default in stats_kwargs

* Added 'hist' to visuals.rst

* deactivate tests for hist kind and multiple models

It needs a fix in arviz-stats to work

* removed restructure_dist and glyph default artist kwarg in bokeh

* updated hist backend interface and matplotlib hist backend function with updates fromrootogram plot

* plotly hist and plot_dist improvements

---------

Co-authored-by: Oriol Abril-Pla <oriol.abril.pla@gmail.com>

Add plot_compare (arviz-devs#77)

* add plot_compare

* directly use plot_backend

* add new kwargs

* use fill_between_y

* docs

* remove commented code

* use plot_kwargs

* use plotcollection

* use plotcollection

* alow disabling elements

* pass pc_kwargs to plotcollection

* try to fix example in gallery

* add missing import

* Update gallery_generator.py

* Improve show method for plotcollection

* fix 1x1 grid generation in plotly

* fix plotly 1x1 plots

* add basic test

* fix tests

* isort

* remove redundant array conversion

---------

Co-authored-by: Oriol Abril-Pla <oriol.abril.pla@gmail.com>

rework styles  (arviz-devs#88)

* rework color palletes

* update plotly clean template

fix link to github (arviz-devs#91)

Add ESS Plot (arviz-devs#58)

* First commit for essplot and scatter_xy visual element

* update for ess plot and addition of 'x' aesthetic for 'model' dim

* addition of quantile plot and updated x aesthetic mapping

* Added rugplot to essplot

* updates to essplot

* fixed default value for arg 'extra_methods'

* modified scatter_xy visual element to take into account _process_da_x_y update

* Added color/linestyles aesthetics and simplified min_ess plotting

* Added annotate_xy visual element, applied to essplot for extra_methods

* visual element vertical alignment logic modification and arviz-stats compute_ranks addition attempt

* added docs for essplot

* tests for essplot

* added scatter_xy to visuals.rst

* added rug=True to example gallery plot_ess_local

* fixes for rugplot issue and hypothesis test failures

* shifted mean_ess, sd_ess computing to before plot_kwargs check+artist plotting logic and modified hypothesis tests

* Updated plot_ess and tests

* updated .toml file for arviz-stats dependency

* Modified figsize to more of a plot_forest approach, fixed order of plots in plots.rst and expanded max limit for test methods in testplots.py in .pylintrc

* Updated plot_ess docstring

* Switched from .grid to .wrap, removed unused figsize coeffs, disabled pylint warning on testplots.py

* final fixes

now only waiting for us to figure out behaviour and scope in arviz-stats
and xarray-einstats

* update pyproject requirements

* pylint

---------

Co-authored-by: Oriol (ProDesk) <oriol.abril.pla@gmail.com>

fix warning (arviz-devs#99)

Adding Plot ESS Evolution (arviz-devs#71)

* Initial ess evolution plot

updated plot_ess_evolution including a common ess_dataset computing func

added mean and sd annotations like essplot

docs and example gallery for plot_ess_evolution

updated verticalalign logic for mean/sd and correct (although overlaid and not flattened yet) rug is now displayed

removed rug plot

added tests

updated scatter_xy func to plot_ess version

fixed docstring

altered store_artist for xlabel, ylabel and modified hypothesis tests

shifted mean_ess, sd_edd computing to before plot_kwargs check+artist plotting logic

updated docstring, added figsizing and set vertical_align for mean and sd text kwargs as setdefault

removed 'rankdata' branch of arviz-stats from dependencies

docstring typo fix

gallery-generator updated for documentation building

* remove visual duplicated when rebasing

---------

Co-authored-by: Oriol (ProDesk) <oriol.abril.pla@gmail.com>

Add plot_psense_dist (arviz-devs#93)

* Add plot_psense_dist

* Update src/arviz_plots/plots/psensedistplot.py

Co-authored-by: Oriol Abril-Pla <oriol.abril.pla@gmail.com>

* Update src/arviz_plots/plots/psensedistplot.py

Co-authored-by: Oriol Abril-Pla <oriol.abril.pla@gmail.com>

* concat da and simplify logic

* set sample_dims to sample

* refactor

* minor fixes and update pyproject to install from GH

* support sample_dims argument and all backends

* add minigallery to docstring

* tweak example

* ensure pointinterval only plot does not have yticks

* add initial test for psense plot

* add test and example

* fix test

* fix docstring

* rename __group__

---------

Co-authored-by: Oriol Abril-Pla <oriol.abril.pla@gmail.com>

pin datatree and prepare release (arviz-devs#103)

* pin datatree and prepare release

* update naming for hist_dim to match arviz-stats

install arviz-base/stats from github (arviz-devs#104)

move out new_ds to arviz-stats (arviz-devs#102)

Bump codecov/codecov-action from 4 to 5 (arviz-devs#107)

Bumps [codecov/codecov-action](https://github.com/codecov/codecov-action) from 4 to 5.
- [Release notes](https://github.com/codecov/codecov-action/releases)
- [Changelog](https://github.com/codecov/codecov-action/blob/main/CHANGELOG.md)
- [Commits](codecov/codecov-action@v4...v5)

---
updated-dependencies:
- dependency-name: codecov/codecov-action
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>

update version, dependencies and CI (arviz-devs#110)

* update version, dependencies and CI

* skip 3.13 until numba release

* update rtd env

* ignore line too long in gallery template string

Use DataTree class from xarray (arviz-devs#111)

* start work for xarray datatree compatibility

* use datatree from xarray

* fix docs

* remove unused import

Update pyproject.toml (arviz-devs#113)

Add energy plot (arviz-devs#108)

* add energy plot

* remove __variable__, add example

* hardcode sampler_dims

* use legend only with matplotlib

Add plot for distribution of convergence diagnostics (arviz-devs#105)

* Add plot for distribution of convergence diagnostics

* add ref_line and methods for r-hat

* fix docstring

* rename, add example

* update gallery example

* use rhat instead of rhat_rank

* update sphinx.configuration key

* update sphinx.configuration key

* add vline/hline.

Co-authored-by: Oriol Abril-Pla <oriol.abril.pla@gmail.com>

* fix test

* fix docstring

* fix docstring

---------

Co-authored-by: Oriol Abril-Pla <oriol.abril.pla@gmail.com>

Add separated prior and likelihood groups (arviz-devs#117)

* Add separated prior and likelihood groups

* upper bound for plotly

Add psense_quantities plot (arviz-devs#119)

* add psense_quantities plot

* remove  comment

* fix conflicting dimension

* update docts

* fix color

* fix ls

* split quantities

* fix docstring

rename arviz-clean to arviz-variat (arviz-devs#120)

rename arviz-clean to arviz-variat

add cetrino and vibrant styles to plotly (arviz-devs#121)

psense: fix facetting and add xlabel (arviz-devs#123)

* fix facetting

* add x-label

Add summary dictionary arguments (arviz-devs#125)

* add summary dictionary arguments

* fix spelling

plotly: change format of title update in backend (arviz-devs#124)

* plotly: change format of title update in backend

* update the pyproject.toml file to restrict lower bound of  plotly version to 6

Update glossary.md (arviz-devs#126)

Add PAV-adjusted calibration plot (arviz-devs#127)

* draft pava ppc

* add pava-adjusted calibration plot

* use dt

* fix var name

upper bound plotly (arviz-devs#128)

use isotonic function that work with datatrees (arviz-devs#131)

add reference, fix xlabel (arviz-devs#132)

Fix bug when setting some plot_kwargs to false (arviz-devs#134)

* fix bug setting when setting some plot_kwargs to false

* remove references

Add citations (arviz-devs#135)

* add citations

* reformat citations

* fix indentation

* fix links

* add reference file

use <6 version of plotly for documentation and use latest for other purposes (arviz-devs#136)

* temporary fix for plotly-plot-rendering-on-webpage

* include plotly also in readthedocs

fix see algo pava gallery (arviz-devs#137)

Add plot_ppc_dist (arviz-devs#138)

* add plot_ppc_dist

* remove comments

* add test and small fixes

* fix typo

Add warning message for discrete data (arviz-devs#139)

* add warning message for discrete data

* do not fail on warnings

rename plot_pava and minor fixes (arviz-devs#140)

fix excesive margins (arviz-devs#141)

add arviz-style for bokeh (arviz-devs#122)

* add arviz-styles for bokeh

* add arviz-styles for bokeh

* Update arviz-variat.yml

* add more styles

Add rootogram (arviz-devs#142)

fix examples (arviz-devs#144)

Reorganize categories in the gallery (arviz-devs#145)

* reorganize categories gallery

* update condig

* rename

remove plots from titles (arviz-devs#146)

* remove plots from titles

* more renaming

* more renaming

consistence data_pairs, remove markers pava (arviz-devs#152)

added functionality of step histogram for all three backends (arviz-devs#147)

* added functionality of step histogram for all three backends

* changed user preference format for step histograms

* clean

* little modifications to make it compatible with cleaned code and to have consistent edgecolor

* added test for plot_dist with step value as true

* minor fixes: step hist test is not required for 'none' backend

---------

Co-authored-by: aloctavodia <aloctavodia@gmail.com>

use continuous outcome for plot_ppc_dist example (arviz-devs#154)

add grid visual (arviz-devs#155)

all test cases are passed

ruff changes

seperating plotting functionality of bayes_factor

testing get_plotting funcitonality

new implementation of arviz-plot

Update bfplot.py

it should be something like this. Please, check that it works properly, add docstrings and improve when necessary

Improved the plot_bf() function, applied fixes, and added additional assert for test cases

Fixed the check for ref_val
Added a docstring for plot_bf()
Change the backend from matplotlib to none
Added a legend to componenet_groups
Added few more asserts in test cases
Did some other minor fixing and refractoring

Signed-off-by: PiyushPanwarFST <piyush2002panwar@gmail.com>

Enhance plot_bf() Visualization & Documentation, Fix Linter Issues

Adjusted and re-centered BF values for better graph representation.
Added plot_bf() function to the documentation.
Resolved pylint linter errors in code.

Signed-off-by: PiyushPanwarFST <piyush2002panwar@gmail.com>

deleting some files and modifying some files
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add plot_ess
3 participants