Platform
Resources
Pricing
Sign in
Get started
Elena Petruzzi
Workspace
Fork
Public
By
Elena Petruzzi
Edited
Mar 28, 2023
Fork of
Vector Mark / Observable Plot
3
Insert cell
Insert cell
temperatureDifference1
=
FileAttachment
(
"temperature difference@1.xlsx"
)
.
xlsx
(
)
Insert cell
Plot
.
plot
(
{
inset
:
10
,
width
:
1152
,
height
:
870
,
// for a rougly equirectangular projection
color
:
{
scheme
:
"viridis"
,
label
:
"Speed (m/s)"
,
zero
:
true
,
legend
:
true
}
,
marks
:
[
Plot
.
vector
(
wind
,
{
x
:
"Temperature_Diff"
,
rotate
:
(
{
u
,
v
}
)
=>
Math
.
atan2
(
u
,
v
)
*
180
/
Math
.
PI
,
length
:
(
{
u
,
v
}
)
=>
Math
.
hypot
(
u
,
v
)
,
stroke
:
(
{
u
,
v
}
)
=>
Math
.
hypot
(
u
,
v
)
}
)
]
}
)
Insert cell
Insert cell
Insert cell
Plot
.
plot
(
{
inset
:
12
,
height
:
1152
,
width
:
1152
,
marks
:
[
Plot
.
vector
(
samples
(
[
0
,
0
,
2
,
2
]
,
4000
)
,
{
length
:
(
[
x
,
y
]
)
=>
(
noise
(
x
+
2
,
y
)
+
0.5
)
*
24
,
rotate
:
(
[
x
,
y
]
)
=>
noise
(
x
,
y
)
*
360
}
)
]
}
)
Insert cell
noise
=
octave
(
perlin2
,
2
)
Insert cell
Insert cell
Insert cell
import
{
perlin2
,
octave
}
from
"@mbostock/perlin-noise"
Insert cell
import
{
samples
}
from
"@mbostock/poisson-disk-sampling"
Insert cell
Purpose-built for displays of data
Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Try it for free
Learn more
Compare fork
Fork
View
Export
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
temperatureDifference1
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
noise
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML