Skip to content

Commit

Permalink
Update plot_chaos_sobol_confidence.py
Browse files Browse the repository at this point in the history
Define an interesting plot as the default, instead of the first figure in the script.
  • Loading branch information
mbaudin47 authored Jun 24, 2023
1 parent 8e2b86c commit 7353982
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@

# %%


def computeSparseLeastSquaresChaos(X, Y, basis, total_degree, distribution):
"""
Create a sparse polynomial chaos with least squares.
Expand Down Expand Up @@ -330,6 +329,9 @@ def computeAndDrawSobolIndices(
# %%
# Plot the boostrap Sobol' indices mean and the confidence intervals.
# The confidence length will shrink if we increase the initial sample size.

# %%
# sphinx_gallery_thumbnail_number = 3
graph = computeAndDrawSobolIndices(30, basis, total_degree, distribution)
_ = otv.View(graph)

Expand Down

0 comments on commit 7353982

Please sign in to comment.