Skip to content

Error in examples/samplers/DEMetropolisZ_EfficiencyComparison.ipynb #731

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

Open
williambdean opened this issue Nov 15, 2024 · 0 comments
Open

Comments

@williambdean
Copy link
Contributor

Not working with matplotlib '3.9.2'

──────────────────────────────────── Error running examples/samplers/DEMetropolisZ_EfficiencyComparison.ipynb ────────────────────────────────────

---------------------------------------------------------------------------
Exception encountered at "In [18]":
---------------------------------------------------------------------------
KeyError                                  Traceback (most recent call last)
Cell In[18], line 1
----> 1 plot_forest_compare_analytical(results_df)

Cell In[12], line 41, in plot_forest_compare_analytical(results_df)
     39 labels = ax.get_legend().__dict__["texts"]
     40 labels = [label.__dict__["_text"] for label in labels]
---> 41 handles = ax.get_legend().__dict__["legendHandles"]
     42 ax.legend(
     43     handles[::-1],
     44     labels[::-1],
   (...)
     49     title="94% and 50% HDI",
     50 )
     51 ax.set_title(
     52     f"Comparison of MCMC Samples and Analytical Solutions\nFirst 5 Dimensions of {D} Dimensional Target Distribution"
     53 )

KeyError: 'legendHandles'
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

No branches or pull requests

1 participant