2
0
Fork 0
mirror of https://github.com/MartinThoma/LaTeX-examples.git synced 2025-04-19 11:38:05 +02:00

added 'sinus-burst-1'

This commit is contained in:
Martin Thoma 2013-08-25 16:05:05 +02:00
parent 850fbc57a6
commit 020a2a132d
3 changed files with 72 additions and 0 deletions

View file

@ -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

View file

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

View file

@ -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}