Tag Info

New answers tagged

1

With pgfplots \documentclass[13pt,a4paper,headlines=6,headinclude=true]{scrartcl} \usepackage{pgfplots} \pgfplotsset{compat=1.12} \begin{document} \begin{tikzpicture} \begin{axis}[axis lines=middle,xmin=-7,xmax=17,ymin=-1.5,ymax=1.5,xlabel=$\scriptstyle x$,ylabel=$\scriptstyle y$,tick label style={font=\tiny},legend style={font=\tiny,legend pos=outer ...


2

Just in case you'd be interested, it's also easy with pst-plot: \documentclass[12pt, svgnames, pdf]{standalone} \usepackage[utf8]{inputenc} \usepackage[T1]{fontenc} \usepackage{nccmath} \usepackage{lmodern} \usepackage{pst-plot} \begin{document} \def\F{1/(x^2-7*x-30)}\footnotesize\everymath{\scriptstyle} \psset{xunit=0.6, yunit=3, linewidth=0.6pt, ...


4

It's because the braces of the array in a key is stripped off. Instead you can make it a double braced array before the loop then it is still understood as a valid PGF array. \documentclass[tikz]{standalone} \usetikzlibrary{calc} \tikzset{tag/.style={align=center}} \makeatletter \pgfkeys{/DiagCirc/.cd, value list/.store in=\Value@list, tags/.store ...


3

One of your \xs is 0. TeX cannot divide by 0 so this is never going to work. Try substituting e.g. \x in -1/x with 0 to give -1/0 and it will not work even imperfectly! If you substitute 0.1 for 0, it does work perfectly: \documentclass{standalone} \usepackage{tikz} \usetikzlibrary{calc} \begin{document} \begin{tikzpicture} \foreach \x/\y in ...



Top 50 recent answers are included