Created
April 26, 2015 21:00
-
-
Save MrMattSim/38b4e3c0a4fc65905dc4 to your computer and use it in GitHub Desktop.
Count of Iconclass codes of depth 3
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ic_d3 | ic_count | avg_weight | ic_text | |
---|---|---|---|---|
0 | 12 | 0.933333333333333 | Abstract, Non-representational Art | |
11D | 3 | 0.297619047619048 | Christ | |
11G | 12 | 0.363888888888889 | angels | |
11H | 2 | 0.666666666666667 | saints | |
11K | 3 | 0.305555555555556 | devil(s) and demons | |
11P | 3 | 0.5 | the Church (as institution) | |
11Q | 1 | 0.333333333333333 | the worship of God | |
11R | 1 | 0.166666666666667 | the life of man | |
13C | 3 | 1.0 | magic signs and objects (numbers, words, etc.) | |
13D | 3 | 0.3 | enchantment (evil eye, transformation, healings, etc.) | |
22E | 1 | 0.5 | temperature | |
23U | 47 | 0.375337723741979 | chronology | |
24A | 42 | 0.382596371882086 | sun as celestial body | |
24B | 11 | 0.342424242424242 | moon as celestial body | |
24D | 15 | 0.34 | stars | |
24F | 27 | 0.279365079365079 | firmament, sky | |
25 | 49 | 0.576409135082604 | earth, world as celestial body | |
25A | 34 | 0.509325396825397 | maps, atlases | |
25C | 3 | 0.225396825396825 | geological phenomena | |
25F | 90 | 0.4168430335097 | animals | |
25G | 104 | 0.384794719169719 | plants; vegetation | |
25H | 86 | 0.345141196013289 | landscapes | |
25I | 74 | 0.404456241956242 | city-view, and landscape with man-made constructions | |
25K | 5 | 0.213809523809524 | landscapes in the non-temperate zone, exotic landscapes | |
26A | 26 | 0.260714285714286 | clouds | |
26B | 28 | 0.519727891156463 | rain | |
26D | 1 | 0.333333333333333 | frost, freezing weather | |
26E | 3 | 0.305555555555556 | thunderstorm | |
31A | 3315 | 0.356890995714528 | the (nude) human figure; 'Corpo humano' (Ripa) | |
31B | 11 | 0.245670995670996 | mind, spirit | |
31D | 5 | 0.666666666666667 | human life and its ages (young, adult, old, etc.) | |
31E | 6 | 0.35 | death of human being | |
31F | 16 | 0.263095238095238 | symbols and personifications of Death | |
33 | 27 | 0.427513227513228 | relations between individual persons | |
33A | 120 | 0.243386243386243 | non-aggressive relationships | |
33C | 457 | 0.319070195547219 | relations between the sexes | |
34B | 10 | 0.207857142857143 | domestic animals, kept in and outside the house | |
34D | 1 | 0.142857142857143 | control and eradication of injurious animals | |
41A | 130 | 0.299154456654457 | housing | |
41B | 22 | 0.440909090909091 | heating, lighting, ventilating | |
41C | 67 | 0.363041933191187 | nutrition, nourishment | |
41D | 423 | 0.375079740327967 | fashion, clothing | |
42A | 580 | 0.484902846195949 | procreation, birth and (early) youth | |
42B | 157 | 0.368739257911233 | parents with their children | |
42C | 1 | 1.0 | period of adolescence | |
42D | 1 | 0.142857142857143 | betrothal and marriage | |
42E | 18 | 0.459259259259259 | burial rites | |
43A | 13 | 0.416666666666667 | festivities | |
43B | 32 | 0.318501984126984 | recreation | |
43C | 82 | 0.502918118466899 | sports, games and physical performances | |
44A | 4 | 0.527777777777778 | symbols of the state (in general) | |
44C | 39 | 0.327096052096052 | the citizen and his rights | |
44G | 13 | 0.358424908424908 | law and jurisprudence | |
45B | 2 | 0.1625 | the soldier; the soldier's life | |
45C | 17 | 0.312418300653595 | (military) equipment and supply | |
46A | 169 | 0.461442190288344 | communal life | |
46B | 13 | 0.218772893772894 | trade, commerce and finance | |
46C | 64 | 0.387301587301587 | traffic and transport | |
46D | 8 | 0.531746031746032 | press, journalism | |
46E | 70 | 0.70781746031746 | post, telegraph and telephone; means of communication | |
47A | 1 | 0.25 | industrial structures | |
47D | 17 | 0.288141923436041 | machines; parts of machines; tools and appliances | |
47I | 13 | 0.262393162393162 | agriculture, cattle-breeding, horticulture, flowerculture, etc. | |
480 | 5 | 0.425 | symbolic representations, allegories and emblems ~ art; 'Arte' (Ripa) | |
48A | 17 | 0.523529411764706 | art and the public; styles and ornaments | |
48B | 1 | 0.2 | artist (in general) | |
48C | 25 | 0.536 | the arts; artists | |
49B | 21 | 0.287358276643991 | scholastic education, tuition | |
49D | 10 | 0.508452380952381 | mathematics | |
49E | 5 | 0.595238095238095 | science and technology | |
49G | 191 | 0.353421839940165 | medicine, medical science | |
49L | 14 | 0.431122448979592 | writing and letters | |
49M | 11 | 0.352272727272727 | production of printed matter, book-production | |
49N | 1 | 0.111111111111111 | reading | |
51H | 3 | 0.444444444444444 | Quantity and Degree | |
61B | 62 | 0.401203277009729 | historical persons (portraits and scenes from the life) | |
71A | 1 | 0.166666666666667 | Genesis from the creation to the expulsion from paradise, and later years of Adam and Eve | |
71E | 1 | 1.0 | Exodus, Leviticus, Numbers, Deuteronomy, Joshua: from the bondage of the Israelites in Egypt to their settlement in Canaan | |
73B | 1 | 0.333333333333333 | birth and youth of Christ | |
73C | 1 | 0.333333333333333 | public life of Christ: from his baptism until the Passion | |
73D | 2 | 0.126984126984127 | Passion of Christ | |
82 | 1 | 0.25 | literary characters and objects | |
82A | 4 | 0.4375 | names of literary characters | |
91B | 1 | 1.0 | offspring of Uranus and Gaea (Titans, Cyclopes, Centimani) | |
92D | 8 | 0.483333333333333 | lesser divinities of Heaven ~ serving and attendant environment |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<title>AIDS poster ICONCLASS</title> | |
<div id="d3-scatter-avgweight-count" width="100%" height=400></div> | |
<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js"></script> | |
<script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/d3/3.5.5/d3.min.js"></script> | |
<style type="text/css"> | |
body { | |
background-color: white; | |
font-family: Helvetica, Arial, sans-serif; | |
} | |
h1 { | |
font-size: 24px; | |
margin: 0; | |
} | |
p { | |
font-size: 14px; | |
margin: 10px 0 0 0; | |
} | |
svg { | |
background-color: white; | |
} | |
circle:hover { | |
opacity:1; | |
} | |
.axis path, | |
.axis line { | |
fill: none; | |
stroke: black; | |
shape-rendering: crispEdges; | |
} | |
.axis text { | |
font-family: sans-serif; | |
font-size: 11px; | |
} | |
.legend {font-size: 10px;} | |
.title {font-size: 30px;} | |
</style> | |
<script type="text/javascript"> | |
var w = 880; | |
var h = 650; | |
var padding = [ 120, 10, 20, 50 ]; //Top, right, bottom, left | |
var xScale = d3.scale.linear() | |
.range([padding[3],w-padding[2]]); | |
var xAxis = d3.svg.axis() | |
.scale(xScale) | |
.orient("top"); | |
var svg = d3.select("body") | |
.append("svg") | |
.attr("width", w) | |
.attr("height", h); | |
var legend = { | |
0 : {label:"Abstract", color:'rgb(255,255,255)'}, | |
1 : {label:"Religion", color:'rgb(225,223,85)' }, | |
2 : {label:"Nature", color:'rgb(164,231,15)' }, | |
3 : {label:"Humans", color:'rgb(15,197,149)' }, | |
4 : {label:"Culture", color:'rgb(133,95,227)' }, | |
5 : {label:"Ideas", color:'rgb(127,127,127)' }, | |
6 : {label:"History", color:'rgb(0,0,0)' }, | |
7 : {label:"Bible", color:'rgb(224,171,0)'} , | |
8 : {label:"Literature", color:'rgb(128,98,0)' }, | |
9 : {label:"Mythology", color:'rgb(113,88,143)' } | |
} | |
var legendColor = function(n){ | |
return +n < 10 ? legend[n].color : 'rgb(0,0,0)' ; | |
} | |
d3.csv("d3_ic_d3_stats.csv", function(data) { | |
data.sort(function(a,b){ | |
return b.ic_count - a.ic_count; | |
}); | |
xScale.domain([ | |
// d3.min(data, function(d) { | |
// return +d.ic_count; | |
// }), | |
0, | |
d3.max(data, function(d) { | |
return +d.ic_count; | |
}) | |
]); | |
var rects = svg.selectAll("rect") | |
.data(data) | |
.enter() | |
.append("rect"); | |
var bar_gap = 2; | |
var bar_height = 5; | |
var bar_centers = bar_height + bar_gap; | |
rects.attr("x", xScale(0)) | |
.attr("y", function(d, i) { | |
return i * bar_centers + padding[0]; | |
}) | |
.attr("width", function(d) { | |
// console.log(d.ic_count,xScale(d.ic_count)); | |
return xScale(d.ic_count)-xScale(0); | |
}) | |
.attr("height", bar_height) | |
.attr("fill",function(d){ | |
return legendColor(d.ic_d3.slice(0,1)) | |
}) | |
.attr("stroke","#000") | |
.attr("stroke-width",function(d){ | |
return d.ic_d3.slice(0,1)=="0" ? 1 : 0;}) | |
.append("title") | |
.text(function(d) { | |
return "[" + d.ic_count + "] Code: " + d.ic_d3 + " " + d.ic_text; | |
}); | |
var lgnd = svg.append("g") | |
.attr("class","legend") | |
.attr("transform","translate(200,200)") | |
for (i=0; i < 10; i++) { | |
lgnd.append("circle") | |
.attr("fill", legendColor(i)) | |
.attr("r",6) | |
.attr("cx",0) | |
.attr("cy",i*20 - 4) | |
.attr("opacity",0.6) | |
.attr("stroke","#000") | |
.attr("stroke-width", i == 0 ? 1 : 0); | |
lgnd.append("text") | |
.attr("x",12) | |
.attr("y",i*20) | |
.text(i + " : " + legend[i].label); | |
} | |
svg.append("g") | |
.attr("class", "x axis") | |
.attr("transform", "translate(0," + (h - 50) + ")") | |
.call(xAxis); | |
svg.append("text") | |
.attr("class", "x axis-label") | |
.attr("x", w/3) | |
.attr("y", h - 6) | |
.text("count"); | |
svg.append("text") | |
.attr("class", "title") | |
.attr("x", 50) | |
.attr("y", 100) | |
.text("Count of Iconclass codes of depth 3"); | |
}); | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment