Esta página mostra as diferenças entre as duas revisões da página.
| Ambos os lados da revisão anterior Revisão anterior Próxima revisão | Revisão anterior | ||
|
tufte [2010/03/31 21:53] marcus |
tufte [2010/04/01 19:41] (Actual) marcus |
||
|---|---|---|---|
| Linha 1: | Linha 1: | ||
| ==== On Tuftefying gnuplot ==== | ==== On Tuftefying gnuplot ==== | ||
| - | Here are three examples of using [[http://www.gnuplot.info|gnuplot]] to visualize graphs in the style of Edward R. Tufte (see [[http://www.edwardtufte.com/tufte/books_vdqi|The Visual Display of Quantitative Information]]). | + | Here are four examples of using [[http://www.gnuplot.info|gnuplot]] to visualize graphs in the style of Edward R. Tufte (see [[http://www.edwardtufte.com/tufte/books_vdqi|The Visual Display of Quantitative Information]]). |
| === Quartile plot === | === Quartile plot === | ||
| Linha 72: | Linha 72: | ||
| produces | produces | ||
| - | {{:barchxart.png?480}} | + | {{:barchart.png?480}} |
| + | |||
| + | === Dot-dash-plot === | ||
| + | |||
| + | And finally, a dot-dash-plot in the style of p. 133. (The data are xy value pairs). | ||
| + | |||
| + | <code> | ||
| + | #!/usr/bin/gnuplot -persist | ||
| + | set term svg enh | ||
| + | set output "dotdash.svg" | ||
| + | unset border | ||
| + | set xtics textcolor rgb "white" out nomirror | ||
| + | set ytics textcolor rgb "white" out nomirror | ||
| + | set offsets 0.005, 0, 0, 1 | ||
| + | plot "dotdash.dat" using 1:2:xtic(1):ytic(sprintf("%f",$2)) pt 7 ps 1 notitle | ||
| + | </code> | ||
| + | |||
| + | produces | ||
| + | |||
| + | {{:dotdash.png}} | ||
| <html> | <html> | ||