Skip to content

Commit eadc187

Browse files
committed
Update bivariate Gaussian demo
1 parent 4a844c8 commit eadc187

File tree

1 file changed

+23
-3
lines changed

1 file changed

+23
-3
lines changed

redirects/bivariate-gaussian.html

Lines changed: 23 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,23 @@
4848
grid-template-columns: 1fr 1fr;
4949
gap: 20px;
5050
}
51+
@media screen and (max-width:1199px) {
52+
.plots {
53+
display: grid;
54+
grid-template-columns: 1fr;
55+
gap: 20px;
56+
}
57+
}
58+
@media screen and (min-width:1200px) {
59+
.plots {
60+
display: grid;
61+
grid-template-columns: 1fr 1fr;
62+
gap: 20px;
63+
}
64+
}
5165
.plot {
5266
width: 100%;
53-
height: 400px;
67+
height: 100%;
5468
}
5569
</style>
5670
</head>
@@ -90,7 +104,7 @@ <h1>Joint Density of Bivariate Gaussian Random Variables</h1>
90104
</div>
91105

92106
<H3 style="margin-left:100px;">Some Things to Try</H3>
93-
<div style="margin-left:110px;width:800px;">
107+
<div style="margin-left:110px;max-width:800px;">
94108
<ol>
95109
<li style="margin-top:1em;"> Start with the default variances of 1 and note the effect of changing the correlation coefficient. What are the possible angles of the major axis of the ellipses you create?</li>
96110
<li style="margin-top:1em;"> Now set the correlation coefficient to a value close to +1. Adjust the standard deviations for the two random variables. What are the possible angles of the major axis of the ellipses you create?</li>
@@ -170,11 +184,17 @@ <H3 style="margin-left:100px;">Some Things to Try</H3>
170184

171185
const layout = {
172186
margin: { l: 0, r: 0, b: 0, t: 0 },
187+
autosize: true,
188+
responsive: true,
189+
useResizeHandler: true,
190+
uirevision:true,
173191
};
174192

175193
const layout_surface = {
176194
margin: { l: 0, r: 0, b: 0, t: 0 },
177-
uirevision:true,
195+
autosize: true,
196+
responsive: true,
197+
useResizeHandler: true,
178198
scene: {
179199
camera: {
180200
eye: { x: -0.5, y: -2, z: 1.5 },

0 commit comments

Comments
 (0)