<?xml version='1.0' encoding='utf-8'?>
<rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:ns0="http://www.w3.org/2005/Atom" xmlns:ns1="http://purl.org/rss/1.0/modules/syndication/" xmlns:ns2="com-wordpress:feed-additions:1" xmlns:ns4="http://purl.org/rss/1.0/modules/content/" version="2.0">

<channel>
	<title>charts Archives - geojournalism.org</title>
	<ns0:link href="https://geojournalism.org/tag/charts/feed/" rel="self" type="application/rss+xml" />
	<link />
	<description>Best tools for multimedia reporting</description>
	<lastBuildDate>Fri, 31 Oct 2014 18:40:17 +0000</lastBuildDate>
	<language>en-US</language>
	<ns1:updatePeriod>
	hourly	</ns1:updatePeriod>
	<ns1:updateFrequency>
	1	</ns1:updateFrequency>
	

<image>
	<url>https://s0.wp.com/i/webclip.png</url>
	<title>charts Archives - geojournalism.org</title>
	<link />
	<width>32</width>
	<height>32</height>
</image> 
<ns2:site>239681374</ns2:site>	<item>
		<title>Visualizing data with Processing</title>
		<link>https://geojournalism.org/2013/08/portugues-as-cidades-mais-populosas-do-mundo/</link>
		
		<dc:creator>Gabriel Gianordoli</dc:creator>
		<pubDate>Tue, 27 Aug 2013 21:33:46 +0000</pubDate>
				<category>Design</category>
		<category>Visualization</category>
		<category>charts</category>
		<category>cities</category>
		<category>graphs</category>
		<guid isPermaLink="false">https://geojournalism.oeco.org.br/?p=351</guid>

					<description>&lt;p&gt;In this tutorial we will learn how to load data from an external file and we will create a graph with a population area x for the 10 most populous cities in the world. Introduction Originally created as a tool to teach programming to visual artists, Processing language now has applications in several areas, including [&amp;#8230;]&lt;/p&gt;
&lt;p&gt;The post &lt;a href="https://geojournalism.org/2013/08/portugues-as-cidades-mais-populosas-do-mundo/"&gt;Visualizing data with Processing&lt;/a&gt; appeared first on &lt;a href="https://geojournalism.org"&gt;geojournalism.org&lt;/a&gt;.&lt;/p&gt;
</description>
										<ns4:encoded>&lt;p&gt;In this tutorial we will learn how to load data from an external file and we will create a graph with a population area x for the 10 most populous cities in the world.&lt;span id="more-351"&gt;&lt;/span&gt;&lt;/p&gt;
&lt;h2 class="summary-item" id="introduction"&gt;&lt;a href="#introduction"&gt;Introduction&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Originally created as a tool to teach programming to visual artists, &lt;a href="https://processing.org/" target="_blank"&gt;Processing&lt;/a&gt; language now has applications in several areas, including data visualization. Its simplified syntax is a good alternative for beginners to the coding world, and its development platform can be &lt;a href="https://processing.org/download/" target="_blank"&gt;downloaded for free&lt;/a&gt; online.&lt;/p&gt;
&lt;p&gt;In this tutorial we will learn how to load data from an external file and we will create a graph with a population area x for the 10 most populous cities in the world.&lt;/p&gt;
&lt;h2 class="summary-item" id="processing-environment"&gt;&lt;a href="#processing-environment"&gt;Processing Environment&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;When you open the program, you will find something like a text editor. That’s where we will type commands – no, there is not a “toolbar” here, since the original goal of Processing is to teach programming fundamentals.&lt;/p&gt;
&lt;p&gt;To run the script that we are going to write, just click on the play button at the left top corner of the window. A new window will open, empty for now, since we haven’t created any commands yet. Close it (or press the stop button) and save your file before you start programming – by default its name is the creation date, but you can choose any other name.&lt;/p&gt;
&lt;div&gt;&lt;img alt="Processing" class="aligncenter wp-image-352" decoding="async" fetchpriority="high" height="551" sizes="(max-width: 717px) 100vw, 717px" src="https://geojournalism.org/wp-content/uploads/2013/08/processing01-1024x787.jpeg" srcset="https://geojournalism.org/wp-content/uploads/2013/08/processing01-1024x787.jpeg 1024w, https://geojournalism.org/wp-content/uploads/2013/08/processing01-300x230.jpeg 300w, https://geojournalism.org/wp-content/uploads/2013/08/processing01.jpeg 1326w" width="717"/&gt;&lt;/div&gt;
&lt;h2 class="summary-item" id="basic-commands"&gt;&lt;a href="#basic-commands"&gt;Basic Commands&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;To begin to understand Processing syntax, type the code below and run the program:&lt;/p&gt;
&lt;div class="et-box et-shadow"&gt;
					&lt;div class="et-box-content"&gt;size(1200, 200);&lt;br/&gt;
ellipse(600, 100, 100, 100);&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;You will see a window like this:&lt;/p&gt;
&lt;div&gt;&lt;img alt="Processing" class="aligncenter wp-image-353" decoding="async" height="226" sizes="(max-width: 614px) 100vw, 614px" src="https://geojournalism.org/wp-content/uploads/2013/08/processing02-1024x376.png" srcset="https://geojournalism.org/wp-content/uploads/2013/08/processing02-1024x376.png 1024w, https://geojournalism.org/wp-content/uploads/2013/08/processing02-300x110.png 300w, https://geojournalism.org/wp-content/uploads/2013/08/processing02.png 1828w" width="614"/&gt;&lt;/div&gt;
&lt;p&gt;&lt;strong&gt;What does this mean?&lt;/strong&gt;&lt;/p&gt;
&lt;p&gt;These commands are called &lt;i&gt;functions&lt;/i&gt;. We use two of them: &lt;i&gt;size&lt;/i&gt; and &lt;i&gt;ellipse.&lt;/i&gt;The first defines the size of the document we are going to work with (in pixels). The second draws an ellipse. Beside each one, inside the parentheses, we have the &lt;i&gt;parameters&lt;/i&gt;: information that the program needs to know for how it will perform each function. In our case:&lt;/p&gt;
&lt;div class="et-box et-shadow"&gt;
					&lt;div class="et-box-content"&gt;size (width of the document, height of the document);&lt;br/&gt;
ellipse (horizontal coordinate of the ellipse, vertical coordinate of the ellipse, width of the ellipse, height of the ellipse);&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;It means that it’s possible to translate the second line as “draw an ellipse 400 pixels from the left edge and 100 pixels from the top, 100 pixels high and 100 pixels wide”. Try to change these numbers to better understand how they work.&lt;/p&gt;
&lt;p&gt;At last, some details we need to be aware of:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;parameters must always be separated by commas (white space makes no difference);&lt;/li&gt;
&lt;li&gt;we always need a &lt;strong&gt;;&lt;/strong&gt; after each command.&lt;/li&gt;
&lt;li&gt;It doesn’t matter if you have a space or a paragraph between these symbols, but they must be there!&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;If you’re curious and want to try other ways before going ahead, take a look at the following commands:&lt;/p&gt;
&lt;div class="et-box et-shadow"&gt;
					&lt;div class="et-box-content"&gt;line()&lt;br/&gt;
point()&lt;br/&gt;
rect()&lt;br/&gt;
triangle()&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;You will find instructions for each one on the Processing &lt;a href="https://processing.org/reference/" target="_blank"&gt;reference web site&lt;/a&gt;.&lt;/p&gt;
&lt;h2 class="summary-item" id="visualizing-accuracy-vs-synthesis"&gt;&lt;a href="#visualizing-accuracy-vs-synthesis"&gt;Visualizing: accuracy vs. synthesis&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;To see the density of each city here, we will use a straightforward technique: representing the total number of inhabitants as points within the city area. This feature offers a less precise notion than a bar chart would, for example – you can not tell the area or the population of the cities just by looking at the pictures below:&lt;/p&gt;
&lt;p style="text-align: center;"&gt;&lt;img alt="Processing" class="aligncenter wp-image-354" decoding="async" height="216" sizes="(max-width: 318px) 100vw, 318px" src="https://geojournalism.org/wp-content/uploads/2013/08/processing03.png" srcset="https://geojournalism.org/wp-content/uploads/2013/08/processing03.png 398w, https://geojournalism.org/wp-content/uploads/2013/08/processing03-300x203.png 300w" width="318"/&gt;&lt;/p&gt;
&lt;p&gt;Our intention, however, is simply to present a direct visual and intuitive comparison of the theme: more points, more people; larger square, the larger area. In choosing one or another way of visualizing, always think about the balance between these two variables and analyze how they can work best according to the purpose of your chart.&lt;/p&gt;
&lt;h2 class="summary-item" id="formatting-data"&gt;&lt;a href="#formatting-data"&gt;Formatting data&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;We will use data from the 2013 &lt;a href="https://www.demographia.com/db-worldua.pdf" target="_blank"&gt;Demographia World Urban Areas&lt;/a&gt; to draw a graph ranking the 10 most populated cities in the world (table 1).&lt;/p&gt;
&lt;p&gt;A simple and practical data format that can be read in Processing is the &lt;a href="https://en.wikipedia.org/wiki/Tab-separated_values" target="_blank"&gt;tsv&lt;/a&gt; (tab-separated values). Basically, it is a text format that works like a table, with values ​​separated by &lt;i&gt;tabs&lt;/i&gt; instead of cells.&lt;/p&gt;
&lt;p style="text-align: center;"&gt;&lt;img alt="Processing" class="aligncenter wp-image-355" decoding="async" height="194" loading="lazy" sizes="auto, (max-width: 717px) 100vw, 717px" src="https://geojournalism.org/wp-content/uploads/2013/08/processing04-1024x277.png" srcset="https://geojournalism.org/wp-content/uploads/2013/08/processing04-1024x277.png 1024w, https://geojournalism.org/wp-content/uploads/2013/08/processing04-300x81.png 300w" width="717"/&gt;&lt;/p&gt;
&lt;p&gt;Transferring data from a PDF file into a table is not always an easy task, since the breaks hardly follow the format of the cells that we need.&lt;/p&gt;
&lt;p&gt;In the image above, we will only need the columns &lt;i&gt;Urban Area&lt;/i&gt;, &lt;i&gt;Population Estimate&lt;/i&gt; e &lt;i&gt;Land Area km2&lt;/i&gt;. You can download the formatted file &lt;a href="https://geojournalism.org/wp-content/uploads/2013/08/cidades.tsv"&gt;here&lt;/a&gt; or try to create your own:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Windows: Use &lt;i&gt;Notepad&lt;/i&gt; and save the file as “cidades.tsv”.&lt;/li&gt;
&lt;li&gt;Mac: Use the &lt;i&gt;Text Edit&lt;/i&gt;. Press &lt;i&gt;command + shift + T&lt;/i&gt; to transform the file into unformatted text. When you save, select &lt;i&gt;Unicode (UTF-8)&lt;/i&gt; in the &lt;i&gt;encoding&lt;/i&gt; option.&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 class="summary-item" id="loading-data"&gt;&lt;a href="#loading-data"&gt;Loading data&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Drag the file to the Processing window and you will see the message &lt;i&gt;One file added to the sketch&lt;/i&gt;. This just created a copy of cidades.tsv in the folder that Processing created for you. To read it in the script, add the following code and run:&lt;/p&gt;
&lt;div class="et-box et-shadow"&gt;
					&lt;div class="et-box-content"&gt;size(1200, 200);&lt;br/&gt;
Table tabela = loadTable(“cidades.tsv”, “header”);&lt;br/&gt;
for(int i = 0;&lt;br/&gt;
i &amp;lt; tabela.getRowCount();&lt;br/&gt;
i = i + 1){&lt;br/&gt;
TableRow linha = tabela.getRow(i);&lt;br/&gt;
rect(120*i, 50, linha.getInt(“área”), linha.getInt(“área”));&lt;br/&gt;
}&lt;/div&gt;&lt;/div&gt;
&lt;h2 class="summary-item" id="viewing-area"&gt;&lt;a href="#viewing-area"&gt;Viewing area&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Ok, what is this code doing? Let’s understand line by line:&lt;/p&gt;
&lt;div class="et-box et-shadow"&gt;
					&lt;div class="et-box-content"&gt;size(1200, 200);&lt;br/&gt;
// Loading the file into a table. “header” means that the first line of the file should be understood as a header.&lt;br/&gt;
Table tabela = loadTable(“cidades.tsv”, “header”);&lt;br/&gt;
// Creates an action that will be repeated several times,…&lt;br/&gt;&lt;/div&gt;&lt;/div&gt;
&lt;div class="et-box et-shadow"&gt;
					&lt;div class="et-box-content"&gt;for (int i = 0; //…from a counter that starts at zero,… i &amp;lt; tabela.getRowCount(); // … ends on table size … i = i + 1){ // … and it increases one by one. // In short, it is as if the program started counting “0, 1, 2, 3…” up to “10”, which is the number of rows in our table. For each time it counts, it performs the action below:&lt;/div&gt;&lt;/div&gt;
&lt;div class="et-box et-shadow"&gt;
					&lt;div class="et-box-content"&gt;// Select the row corresponding to the count (i) TableRow linha = tabela.getRow(i);
&lt;p&gt;// It draws a rectangle at position y 50 and x according to the formula “120 times counting”.&lt;/p&gt;
&lt;p&gt;// It means that, in the sequence, coordinate x will be: 0, 120, 240, 360 … to 1080.&lt;/p&gt;
&lt;p&gt;// As our count of 10 elements starts at 0, it goes up to 9! rect(120*i, 50, It defines width and height of each rectangle the value that is read in the “area” linha.getInt(“área”), linha.getInt(“área”)); }&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;&lt;/p&gt;&lt;p&gt;In the resulting image, we can’t see the whole rectangles, because the numbers ​​of the area we have for each city are very large:&lt;/p&gt;
&lt;p&gt;&lt;img alt="Processing" class="aligncenter wp-image-356" decoding="async" height="157" loading="lazy" sizes="auto, (max-width: 614px) 100vw, 614px" src="https://geojournalism.org/wp-content/uploads/2013/08/processing05-1024x261.png" srcset="https://geojournalism.org/wp-content/uploads/2013/08/processing05-1024x261.png 1024w, https://geojournalism.org/wp-content/uploads/2013/08/processing05-300x76.png 300w, https://geojournalism.org/wp-content/uploads/2013/08/processing05-1160x296.png 1160w" width="614"/&gt;&lt;/p&gt;
&lt;p&gt;A good solution to solve this is to change the command of the rectangle to:&lt;/p&gt;
&lt;div class="et-box et-shadow"&gt;
					&lt;div class="et-box-content"&gt;rect(120*i, 50,&lt;br/&gt;
sqrt(linha.getInt(“área”)), sqrt(linha.getInt(“área”)));&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;The &lt;i&gt;sqrt&lt;/i&gt; function calculates the square root of a value. For us, it’s a quick and useful way to reduce the sizes:&lt;/p&gt;
&lt;p&gt;&lt;img alt="Processing" class="aligncenter wp-image-357" decoding="async" height="157" loading="lazy" sizes="auto, (max-width: 614px) 100vw, 614px" src="https://geojournalism.org/wp-content/uploads/2013/08/processing06-1024x261.png" srcset="https://geojournalism.org/wp-content/uploads/2013/08/processing06-1024x261.png 1024w, https://geojournalism.org/wp-content/uploads/2013/08/processing06-300x76.png 300w, https://geojournalism.org/wp-content/uploads/2013/08/processing06-1160x296.png 1160w" width="614"/&gt;&lt;/p&gt;
&lt;p&gt;Additionally, this patch makes the &lt;i&gt;areas&lt;/i&gt;of rectangles proportional to the values ​​that we are representing, not their &lt;i&gt;height&lt;/i&gt; and &lt;i&gt;width&lt;/i&gt;. This is necessary to avoid distortions when we use a figure like a circle or a rectangle. If we only had to divide the area value by 100, for example, we would have a disproportionate image:&lt;/p&gt;
&lt;p&gt;&lt;/p&gt;&lt;div class="et-box et-shadow"&gt;
					&lt;div class="et-box-content"&gt;rect(120*i, 50,&lt;br/&gt;
linha.getInt(“área”)/100, linha.getInt(“área”)/100);&lt;/div&gt;&lt;/div&gt;&lt;br/&gt;
&lt;img alt="Processing" class="aligncenter wp-image-358" decoding="async" height="157" loading="lazy" sizes="auto, (max-width: 614px) 100vw, 614px" src="https://geojournalism.org/wp-content/uploads/2013/08/processing07-1024x261.png" srcset="https://geojournalism.org/wp-content/uploads/2013/08/processing07-1024x261.png 1024w, https://geojournalism.org/wp-content/uploads/2013/08/processing07-300x76.png 300w, https://geojournalism.org/wp-content/uploads/2013/08/processing07-1160x296.png 1160w" width="614"/&gt;&lt;p&gt;&lt;/p&gt;
&lt;p&gt;The picture above makes the cities look much different in area than they really are, a distortion caused by the confusion between &lt;i&gt;linear dimension&lt;/i&gt; (height and width) and size&lt;i&gt;(square area)&lt;/i&gt;.&lt;/p&gt;
&lt;h2 class="summary-item" id="simplifying-the-code"&gt;&lt;a href="#simplifying-the-code"&gt;Simplifying the code&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Before leaving for the second data point of our visualization, the population of each city, we will try to simplify some things to make our algorithm more intelligible:&lt;/p&gt;
&lt;div class="et-box et-shadow"&gt;
					&lt;div class="et-box-content"&gt;size(1200, 200); In the case of the side of the rectangle, Table tabela = loadTable(“cidades.tsv”, “header”);&lt;br/&gt;
for(int i = 0;&lt;br/&gt;
i &amp;lt; tabela.getRowCount();&lt;br/&gt;
i = i + 1){&lt;br/&gt;
TableRow linha = tabela.getRow(i); int posX = 120*i;&lt;br/&gt;
int posY = 50;&lt;br/&gt;
float lado = sqrt(linha.getInt(“área”));&lt;br/&gt;
rect(posX, posY, lado, lado);&lt;br/&gt;
}&lt;br/&gt;&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;If you run the code above, you will see that the visual result does not change at all. What we did was just write the same commands in a different way: instead of calculating everything inside the function &lt;i&gt;rect()&lt;/i&gt;, we defined three&lt;i&gt;variables&lt;/i&gt; variables with values ​​and then used them in the drawing of the rectangle:&lt;/p&gt;
&lt;div class="et-box et-shadow"&gt;
					&lt;div class="et-box-content"&gt;int //Specifies the creation of a variable with the same number&lt;br/&gt;
posX
&lt;p&gt;// Variable name, invented so I remember what it refers to&lt;br/&gt;
= 120*i;&lt;/p&gt;
&lt;p&gt;// it assigns the value “120 times i” to my variable&lt;br/&gt;&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;i&gt;float&lt;/i&gt; means that this variable can store a fractional number, since we do not know if the result of the formula “root area” will be a whole number.&lt;/p&gt;
&lt;h2 class="summary-item" id="viewing-the-population"&gt;&lt;a href="#viewing-the-population"&gt;Viewing the population&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;As mentioned earlier, the idea here is to represent the total number of inhabitants of each city as points within the areas that we have already designed. Below the line with the command &lt;i&gt;rect()&lt;/i&gt;, add the following code:&lt;/p&gt;
&lt;div class="et-box et-shadow"&gt;
					&lt;div class="et-box-content"&gt;Contenfor(int j = 0;&lt;br/&gt;
j &amp;lt; linha.getInt(“população”);&lt;br/&gt;
j = j + 1){&lt;br/&gt;
point(posX,posY);&lt;br/&gt;
}&lt;br/&gt;&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;Be aware to write this command before the last key &lt;i&gt;}&lt;/i&gt; that you already had in the document. Being inside this key, Processing will understand that this command must be repeated every time it is reading a table row – which is what we want, since we are going to draw the population for each city. The structure here is similar to the previous one:&lt;/p&gt;
&lt;div class="et-box et-shadow"&gt;
					&lt;div class="et-box-content"&gt;// From a counter “j”…&lt;br/&gt;
for(int j = 0;
&lt;p&gt;//… starts at zero…&lt;br/&gt;
j &amp;lt; linha.getInt(“população”);&lt;/p&gt;
&lt;p&gt;//..it goes to the read number&lt;/p&gt;
&lt;p&gt;//in the “population” column, of each line…&lt;br/&gt;
j = j + 1){ // …and it increases one by one…&lt;/p&gt;
&lt;p&gt;//…draw a point.&lt;br/&gt;
point(posX,posY);&lt;br/&gt;
}&lt;br/&gt;&lt;/p&gt;&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;&lt;/p&gt;&lt;p&gt;If you try to run this code, it is likely that your computer will take a long time – if not stall. This is because the number of repetitions that we are using is very large: 37,239,000 points only for the city of Tokyo! To solve this, change the second line of this section to:&lt;/p&gt;
&lt;div class="et-box et-shadow"&gt;
					&lt;div class="et-box-content"&gt;j &amp;lt; linha.getInt(“população”)/5000;&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;With this, we draw 1 point for every 5,000 inhabitants (not 1 to 1).&lt;/p&gt;
&lt;p&gt;We still need to correct one detail: if you study carefully the command &lt;i&gt;point()&lt;/i&gt;, you’ll notice that all points of each city are designed in the same place, one above another: on the x and y coordinate that corresponds to the upper left corner of the square. Change this line to:&lt;/p&gt;
&lt;div class="et-box et-shadow"&gt;
					&lt;div class="et-box-content"&gt;point( random(posX, posX + lado),&lt;br/&gt;
random(posY, posY + lado));&lt;br/&gt;&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;The command &lt;i&gt;random()&lt;/i&gt; results in a random number, drawn from a minimum and a maximum value. In our case, the result is:&lt;/p&gt;
&lt;div class="et-box et-shadow"&gt;
					&lt;div class="et-box-content"&gt;point( random number between the x coordinate of the rectangle and the same coordinate + o lado,&lt;br/&gt;
random number between (the y coordinate of the rectangle and the same coordinate + o lado);&lt;br/&gt;&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;Run the program and we will have our final result:&lt;/p&gt;
&lt;p&gt;&lt;img alt="Processing" class="aligncenter wp-image-359" decoding="async" height="157" loading="lazy" sizes="auto, (max-width: 614px) 100vw, 614px" src="https://geojournalism.org/wp-content/uploads/2013/08/processing08-1024x261.png" srcset="https://geojournalism.org/wp-content/uploads/2013/08/processing08-1024x261.png 1024w, https://geojournalism.org/wp-content/uploads/2013/08/processing08-300x76.png 300w, https://geojournalism.org/wp-content/uploads/2013/08/processing08-1160x296.png 1160w" width="614"/&gt;&lt;/p&gt;
&lt;p&gt;In the end, comparisons are obvious: Tokyo and New York are the cities with the largest area, but their population density is much lower than cities like Manila and Karachi.&lt;/p&gt;
&lt;p&gt;If you want to save the file that you created as an image to use in another program, simply add one last line:&lt;/p&gt;
&lt;div class="et-box et-shadow"&gt;
					&lt;div class="et-box-content"&gt;save(“cidades.jpg”);&lt;/div&gt;&lt;/div&gt;
&lt;p&gt;To save in another format such as &lt;i&gt;tif&lt;/i&gt; or &lt;i&gt;png&lt;/i&gt;, , simply change the file extension in the code above.&lt;/p&gt;
&lt;h2 class="summary-item" id="conclusion"&gt;&lt;a href="#conclusion"&gt;Conclusion&lt;/a&gt;&lt;/h2&gt;
&lt;p&gt;Programming for the first time can sound like an unfriendly task. However, as you start to understand the logic behind the commands, to deal with several languages ​​is just a matter of learning different syntaxes, some are more similar than others. It is similar to speaking several languages​​.&lt;/p&gt;
&lt;p&gt;Even though the work is hard in the beginning, you will see that the advantages are worth it: in the case of the file that we used, for example, you can simply change the .tsv data to generate a different version of the view, without having to make manual adjustments to the image. In addition, programming should be understood more as a language than as a tool: instead of pre-defined resources, you can build the graph how you want it to better fit your data. The possibilities are endless.&lt;/p&gt;
&lt;p&gt;Take a look at this example file and try to change a few parameters to customize it: background color, size, space between areas etc. From there, explore the Processing reference page and try to redo this example using another type of visualization, such as bars or lines.&lt;/p&gt;

		&lt;div class="author-shortcodes"&gt;
			&lt;div class="author-inner"&gt;
				&lt;div class="author-image"&gt;
			&lt;img alt="" src="https://si0.twimg.com/profile_images/1298845056/gabriel_2011.jpg"/&gt;
			&lt;div class="author-overlay"&gt;&lt;/div&gt;
		&lt;/div&gt; &lt;!-- .author-image --&gt; 
		&lt;div class="author-info"&gt;
			I’m a graphic designer in love with numbers.
&lt;p&gt;I am currently enrolled in the Master of Fine Arts – Design &amp;amp; Technology program, at Parsons The New School for Design. My last job was as a senior designer for the Innovation in Technology and User Experience team at Itaú, the largest private bank in Brazil. For the past 6 years, I have been working with information and graphic design, mainly in magazines, and have won some awards.&lt;/p&gt;
&lt;p&gt;I have been invited as a speaker for some major events, including Campus Party, World Information Architecture Day and Pixel Show, the Brazilian largest conference on art and creativity. I also ran workshops on data visualization using the Processing programming language.
		&lt;/p&gt;&lt;/div&gt; &lt;!-- .author-info --&gt;
			&lt;/div&gt; &lt;!-- .author-inner --&gt;
		&lt;/div&gt;  .author-shortcodes 
&lt;meta content="text/html; charset=utf-8" http-equiv="Content-Type"/&gt;&lt;p&gt;&lt;/p&gt;
&lt;p&gt;The post &lt;a href="https://geojournalism.org/2013/08/portugues-as-cidades-mais-populosas-do-mundo/"&gt;Visualizing data with Processing&lt;/a&gt; appeared first on &lt;a href="https://geojournalism.org"&gt;geojournalism.org&lt;/a&gt;.&lt;/p&gt;
</ns4:encoded>
					
		
		
		<ns2:post-id>351</ns2:post-id>	</item>
	</channel>
</rss>