Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Paste
P39
Heatmap
Active
Public
Actions
Authored by
Gilles
on Oct 23 2014, 10:13 PM.
Edit Paste
Archive Paste
View Raw File
Subscribe
Mute Notifications
Award Token
Flag For Later
Tags
Multimedia
Subscribers
None
Table
table
=
loadTable
(
"viewport.csv"
,
"header"
);
size
(
2500
,
2500
);
background
(
0
);
for
(
TableRow
row
:
table
.
rows
())
{
int
count
=
row
.
getInt
(
"count"
);
int
width
=
row
.
getInt
(
"width"
);
int
height
=
row
.
getInt
(
"height"
);
stroke
(
255.0
,
min
(
255.0
,
(
log
(
float
(
count
)
)
/
4.8
)
*
255.0
),
0.0
);
point
(
width
,
height
);
}
save
(
"viewport heatmap.png"
);
Event Timeline
Gilles
edited the content of this paste.
(Show Details)
Oct 23 2014, 10:13 PM
Gilles
changed the title of this paste from untitled to
Heatmap
.
Gilles
updated the paste's language from
autodetect
to
java
.
Gilles
added a project:
Multimedia
.
jeblad
mentioned this in
T117680: [Story] Ordering of statement groups for ArticlePlaceholder
.
Mar 26 2016, 3:44 PM
Lea_Lacroix_WMDE
mentioned this in
T142691: [Bug] wb_terms table truncates labels exceeding 255 bytes, possibly leaving invalid UTF-8
.
Aug 11 2016, 9:27 AM
agray
mentioned this in
T173432: Sort claims of a property in meaningful way
.
Jan 18 2018, 12:48 PM
Lea_Lacroix_WMDE
mentioned this in
T186097: [UI] When creating a statement, no property suggestion made for a qualifier
.
Jan 31 2018, 10:21 AM
Alexsdutton
mentioned this in
T199916: query.wikidata.org returning different results when re-running a query, though the data is unchanged
.
Sep 4 2018, 9:43 AM
GoranSMilovanovic
mentioned this in
T219843: Pyspark/R procedures to process the copy of the WD Dump in the Data Lake
.
May 2 2019, 11:03 AM
agray
mentioned this in
T230588: Wikidata Query Service is swapping items and properties
.
Sep 7 2019, 12:55 PM
Salgo60
mentioned this in
T236769: Create a Shape Expressions (ShEx) for Swedish Parliament members in Wikidata
.
Oct 29 2019, 10:15 AM
Log In to Comment