* SVG1.PRG -- Foxpro code generating ideology maps clear * set m_chamber to H to produce house106.svg; set to S to produce senate106.svg m_chamber="H" *p&r106.dbf consists of Poole and Roosenthal data for the 106th Congress imported into Foxpro IF not used('p&r106') use p&r106 ENDIF GO TOP If m_chamber="S" SET ALTE TO senate106.svg else SET ALTE TO house106.svg endif SET ALTE ON ?"" ?"" ?" mouseover demo" ?" " do while not eof() if chamber=m_chamber mx=INT(1100+(VAL(Coord1)*1000)) my=INT(1100-(VAL(coord2)*1000)) m_id=st+PADL(ALLTRIM(st_no),2,'0') ?" " endif && if chamber='' skip enddo ?" " go top do while not eof() mx=INT(1100+(VAL(Coord1)*1000)) my=INT(1100-(VAL(coord2)*1000)) if chamber=m_chamber m_id=st+PADL(ALLTRIM(st_no),2,'0') IF chamber="H" m_title="Rep." m_info=" ("+left(m_id,2)+"-"+right(m_id,2)+")" ELSE m_title="Sen." m_info=" ("+left(m_id,2)+")" ENDIF info=m_title+" "+proper(trim(mbr_last))+ m_info if mx>1000 mx=mx-999 endif ?" " ?"" ?" " endif && if chamber='' skip enddo ?" " ?"" ?" " ?" " ?" SOCIAL CONSERVATIVE" ?" " ?" " ?"" ?" " ?" ECONOMIC CONSERVATIVE" ?" " ?"" ?" " ?" " ?" SOCIAL LIBERAL" ?" " ?" " ?"" ?" " ?" ECONOMIC LIBERAL" ?" " ?"" ?" " ?" " if m_chamber="S" ?"Ideological Map of 106th U.S. Senate" else ?"Ideological Map of 106th U.S. House of Representatives" endif ?" " ?" " ?" " ?" " if m_chamber="S" ?"(hover mouse to display name of Senator)" else ?"(hover mouse to display name of Representative)" endif ?" " ?" " ?" " ?"" SET ALTE TO RETURN