Skip to content

Commit 6ba7988

Browse files
committed
Add rotated copula example
1 parent 0210d7c commit 6ba7988

File tree

14 files changed

+593
-1
lines changed

14 files changed

+593
-1
lines changed

python/doc/conf.py.in

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,14 @@ pygments_style = 'sphinx'
141141

142142
# The theme to use for HTML and HTML Help pages. See the documentation for
143143
# a list of builtin themes.
144-
html_theme = 'classic'
144+
html_theme = 'openturns'
145+
146+
# Theme options are theme-specific and customize the look and feel of a theme
147+
# further. For a list of options available for each theme, see the
148+
# documentation.
149+
# html_theme_options = {}
150+
# import alabaster
151+
html_theme_path = ["themes"]
145152

146153
# Theme options are theme-specific and customize the look and feel of a theme
147154
# further. For a list of options available for each theme, see the
File renamed without changes.
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
"""
2+
Create a rotated copula
3+
=======================
4+
"""
5+
6+
# %%
7+
import openturns as ot
8+
import openturns.viewer as otv
9+
import otvine
10+
11+
# %%
12+
# Create a copula
13+
copula = ot.GumbelCopula()
14+
graph = copula.drawPDF()
15+
graph.setTitle('GumbelCopula PDF 0 deg')
16+
view = otv.View(graph)
17+
18+
# %%
19+
# Rotate the copula at 90 degrees
20+
rotated_90 = otvine.RotatedCopula(copula, 90)
21+
graph = rotated_90.drawPDF()
22+
graph.setTitle('GumbelCopula PDF 90 deg')
23+
view = otv.View(graph)
24+
25+
# %%
26+
# Rotate the copula at 90 degrees
27+
rotated_180 = otvine.RotatedCopula(copula, 180)
28+
graph = rotated_180.drawPDF()
29+
graph.setTitle('GumbelCopula PDF 180 deg')
30+
view = otv.View(graph)
31+
32+
# %%
33+
# Rotate the copula at 90 degrees
34+
rotated_270 = otvine.RotatedCopula(copula, 270)
35+
graph = rotated_270.drawPDF()
36+
graph.setTitle('GumbelCopula PDF 270 deg')
37+
view = otv.View(graph)
38+
39+
# %%
40+
otv.View.ShowAll()
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
{#
2+
basic/layout.html
3+
~~~~~~~~~~~~~~~~~
4+
5+
Master layout template for Sphinx themes.
6+
7+
:copyright: Copyright 2007-2013 by the Sphinx team, see AUTHORS.
8+
:license: BSD, see LICENSE for details.
9+
#}
10+
{%- extends "basic/layout.html" %}
11+
12+
{# put the sidebar before the body #}
13+
{% block sidebar1 %}{{ sidebar() }}{% endblock %}
14+
{% block sidebar2 %}{% endblock %}
15+
16+
{# enable font #}
17+
{% block extrahead %}
18+
<link href='http://fonts.googleapis.com/css?family=Open+Sans:300,400,700'
19+
rel='stylesheet' type='text/css' />
20+
{{ super() }}
21+
{% endblock %}
22+
23+
{# static banner #}
24+
{% block header %}
25+
<div class="pageheader">
26+
<ul>
27+
<li><a href="{{ pathto('index') }}">Home</a></li>
28+
<li><a href="{{ pathto('user_manual/user_manual') }}">Doc</a></li>
29+
<li><a href="{{ pathto('auto_examples/index') }}">Examples</a></li>
30+
</ul>
31+
<a href="{{ pathto('index') }}">
32+
<h1>
33+
<img src="{{ pathto('_static/logo-openturns-wo-bg.png', 1) }}" alt="" width=100px height=100px />
34+
ottemplate
35+
</h1>
36+
<h2> Module ottemplate </h2>
37+
</a>
38+
</div>
39+
{% endblock %}
42.6 KB
Loading
231 Bytes
Loading
1.12 KB
Binary file not shown.
221 Bytes
Loading
221 Bytes
Loading
39.4 KB
Loading

0 commit comments

Comments
 (0)