Explorar o código

added 'sinus-burst-1'

Martin Thoma %!s(int64=12) %!d(string=hai) anos
pai
achega
020a2a132d

+ 31 - 0
tikz/sinus-burst-1/Makefile

@@ -0,0 +1,31 @@
+SOURCE = sinus-burst-1
+DELAY = 80
+DENSITY = 300
+WIDTH = 512
+
+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

+ 7 - 0
tikz/sinus-burst-1/Readme.md

@@ -0,0 +1,7 @@
+This should replace http://commons.wikimedia.org/wiki/File:Sinusburst.png
+
+Compiled example
+----------------
+![Example](sinus-burst-1.png)
+
+

+ 34 - 0
tikz/sinus-burst-1/sinus-burst-1.tex

@@ -0,0 +1,34 @@
+\documentclass[varwidth=true, border=2pt]{standalone}
+
+\usepackage{pgfplots}
+\usepackage{tikz}
+
+\begin{document}
+\begin{tikzpicture}
+    \begin{axis}[
+    legend pos=south west,
+        axis x line=middle,
+        axis y line=middle,
+        grid = major,
+        width=12cm,
+        height=4.5cm,
+        grid style={dashed, gray!30},
+        xmin=-1,     % start the diagram at this x-coordinate
+        xmax= 1,    % end   the diagram at this x-coordinate
+        ymin=-1,     % start the diagram at this y-coordinate
+        ymax= 1,   % end   the diagram at this y-coordinate
+        axis background/.style={fill=white},
+        xlabel=x,
+        ylabel=y,
+        %xticklabels={-1,-0.8,...,1},
+        extra x ticks={-1,-0.8,-0.6,-0.4,-0.2,0,0.2,0.4,0.6,0.8,1},
+        %yticklabels={-8,-7,...,8},
+        tick align=outside,
+        enlargelimits=true,
+        tension=0.08]
+      % plot the stirling-formulae
+      \addplot[domain=-1:1, samples=500] {sin(1150*x)/(20*x)}; 
+      %\addlegendentry{$f_1(x)=\frac{1}{2}x^2$}
+    \end{axis} 
+\end{tikzpicture}
+\end{document}