mirror of
https://github.com/MartinThoma/LaTeX-examples.git
synced 2025-04-26 06:48:04 +02:00
added csv2piechart example; corrected error in CFB mode decryption
This commit is contained in:
parent
3090514803
commit
8d67c61e5e
6 changed files with 62 additions and 1 deletions
31
tikz/local-disk-space-piechart/Makefile
Normal file
31
tikz/local-disk-space-piechart/Makefile
Normal file
|
@ -0,0 +1,31 @@
|
|||
SOURCE = local-disk-space-piechart
|
||||
DELAY = 80
|
||||
DENSITY = 300
|
||||
WIDTH = 500
|
||||
|
||||
make:
|
||||
pdflatex $(SOURCE).tex -output-format=pdf
|
||||
make clean
|
||||
|
||||
clean:
|
||||
rm -rf $(TARGET) *.class *.html *.log *.aux *.data *.gnuplot
|
||||
|
||||
gif:
|
||||
pdfcrop $(SOURCE).pdf
|
||||
convert -verbose -delay $(DELAY) -loop 0 -density $(DENSITY) $(SOURCE)-crop.pdf $(SOURCE).gif
|
||||
make clean
|
||||
|
||||
png:
|
||||
make
|
||||
make svg
|
||||
inkscape $(SOURCE).svg -w $(WIDTH) --export-png=$(SOURCE).png
|
||||
|
||||
transparentGif:
|
||||
convert $(SOURCE).pdf -transparent white result.gif
|
||||
make clean
|
||||
|
||||
svg:
|
||||
#inkscape $(SOURCE).pdf --export-plain-svg=$(SOURCE).svg
|
||||
pdf2svg $(SOURCE).pdf $(SOURCE).svg
|
||||
# Necessary, as pdf2svg does not always create valid svgs:
|
||||
inkscape $(SOURCE).svg --export-plain-svg=$(SOURCE).svg
|
|
@ -0,0 +1,11 @@
|
|||
Part,Space
|
||||
programs,18124.8
|
||||
movies,21606.4
|
||||
source code,6246.4
|
||||
VMs,3788.8
|
||||
Android SDK,1228.8
|
||||
Audio files,917.0
|
||||
.cache,832.1
|
||||
.config,358.5
|
||||
Desktop,341.3
|
||||
misc,829.44
|
|
14
tikz/local-disk-space-piechart/local-disk-space-piechart.tex
Normal file
14
tikz/local-disk-space-piechart/local-disk-space-piechart.tex
Normal file
|
@ -0,0 +1,14 @@
|
|||
\documentclass{article}
|
||||
\usepackage[pdftex,active,tightpage]{preview}
|
||||
\setlength\PreviewBorder{2mm}
|
||||
\usepackage{datapie}
|
||||
\DTLsetpiesegmentcolor{9}{cyan}
|
||||
\DTLsetpiesegmentcolor{10}{brown}
|
||||
|
||||
\begin{document}
|
||||
\begin{preview}
|
||||
\DTLloaddb{myDB}{local-disk-space-piechart-2013-07-08.csv}
|
||||
\DTLdisplaydb{myDB}
|
||||
\DTLpiechart{variable=\Space,outerlabel=\Part}{myDB}{\Part=Part,\Space=Space}
|
||||
\end{preview}
|
||||
\end{document}
|
Loading…
Add table
Add a link
Reference in a new issue