+ All Categories
Home > Documents > Mdst 3559-03-29-case-1b

Mdst 3559-03-29-case-1b

Date post: 24-May-2015
Category:
Upload: rafael-alvarado
View: 179 times
Download: 0 times
Share this document with a friend
Popular Tags:
14
Case 1 (iii) Text and Image in the Shahnameh MDST 3559: Dataesthetics Prof. Alvarado 03/29/2011
Transcript
Page 1: Mdst 3559-03-29-case-1b

Case 1 (iii)Text and Image in the Shahnameh

MDST 3559: DataestheticsProf. Alvarado03/29/2011

Page 2: Mdst 3559-03-29-case-1b

Business

• Midterms graded; submitted via Assignments• Blogging and comments – good work!• Assignment graded as part of participation

Page 3: Mdst 3559-03-29-case-1b

Review

• Review assignments– Use of Space– Use of jQuery

• Review demo– How did I create breaks between MS’s?

Page 4: Mdst 3559-03-29-case-1b

Overview

• Create a new visualization• Interpret the data• Compare to Wordle Viz of episode titles

Page 5: Mdst 3559-03-29-case-1b

Exercise: Create an Image Plot

http://pages.shanti.virginia.edu/Dataesthetics_S11/?p=279

Page 6: Mdst 3559-03-29-case-1b

Image Plot

• Goal– X: Episode (narrative time)– Y: Manuscript

• Download and use new table of EPISODE_AND_PAGE– Includes the Manuscript code (e.g. PECK) for

better sorting– Name the table shah_episode_and_page

Page 7: Mdst 3559-03-29-case-1b

Image Plot

• In making the query, reverse sort order of episodes and pages– Whereas before, you sorted by MS, now we sort

by EPISODE• The order of your sorts in the query roughly

match the X and Y axis

Page 8: Mdst 3559-03-29-case-1b

Method 1: Use the Switch Pattern

• Define a variable before the loop starts for the current MS Code – set to ‘’ at first

• In the loop, see when the MS Code changes, insert a break

• Use CSS to format width of caption• See v1.php

Page 9: Mdst 3559-03-29-case-1b

Method 2: Use a Second Array

• Iterate through array of table data and convert data into another array

• Second array will mirror the X / Y structure of the visualization we want

• Remember that arrays are like this:$array[X][Y][Z];So, for example:$results[X=Row Numbers][Y: Column Names]

• See v2.php

Page 10: Mdst 3559-03-29-case-1b

Where in the story are the most are illustrations?

Do any characters appear more often than others?

Page 12: Mdst 3559-03-29-case-1b

Khusraw and Rustam

Khusraw : Rustam :: Text : Image ?

Page 13: Mdst 3559-03-29-case-1b

Key Idea

• The structure of the visualization mirrors the structure of the data

• Note the persistence of X and Y– In the sort order for the query– In the array indices– In the layout of the graph

Page 14: Mdst 3559-03-29-case-1b

Reading for Thursday

• Rustem and Sohrab (see blog)


Recommended