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

Plots in docs no longer work as expected with last arviz versions #113

Open
danielandresarcones opened this issue Jul 31, 2024 · 0 comments
Assignees
Labels
documentation Improvements or additions to documentation

Comments

@danielandresarcones
Copy link
Collaborator

For the last Arviz versions, the inference data variables are sorted in alphabetical order. The plots in the documentation are generated by the order defined when setting the inverse problem, which is no longer preserved by arviz. The result is

pair_plot_array = create_pair_plot(
    inference_data,
    emcee_solver.problem,
    true_values=true_values,
    focus_on_posterior=True,
    show_legends=True,
    title="Sampling results from emcee-Solver (pair plot)"
)

image

The solution is to simply indicate the variable names in the desired order when creating the plot:

pair_plot_array = create_pair_plot(
    inference_data,
    emcee_solver.problem,
    true_values=true_values,
    focus_on_posterior=True,
    show_legends=True,
    title="Sampling results from emcee-Solver (pair plot)",
    var_names= ["$a$", "$b$", "$\\sigma$"]
)

image

The density of lines needs to be specified as well. The solution is simple, but all the documentation examples should be checked.

@danielandresarcones danielandresarcones added the documentation Improvements or additions to documentation label Jul 31, 2024
@danielandresarcones danielandresarcones self-assigned this Jul 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

1 participant