Linked Questions

14
votes
1answer
3k views

Why (\x)^2 and \x^2 produce different results in Tikz plot? [duplicate]

(\x)^2 will plot correct parabola, while \x^2 will have negative x branch upside down. Why () are required for this formula to work? \documentclass[10pt]{article} \usepackage[utf8]{inputenc} \...
1
vote
2answers
737 views

Why does tikz not plot this even function correctly? [duplicate]

Can someone provide an explanation and a fix for the fact that my plot is not what is expected? The function is symmetric with respect to the y-axis. The plot correctly shows the function for positive ...
3
votes
1answer
409 views

Incorrect evaluation of expression? [duplicate]

Possible Duplicate: How can I work around this TikZ bug? I am plotting points on function f(x)=1-x^2/2+x^4/16. Obviously f(x)=-f(x), but PGF does not think so. \documentclass{minimal} \...
14
votes
0answers
187 views

How does TikZ parse powers? [duplicate]

I was often stumbling upon (and correcting by hand) an IMHO rather surprising behavior of TikZ: powers are parsed in an unconventional way. Look at the MWE \documentclass[tikz,border=3.14mm]{...
1
vote
0answers
25 views

draw plot \x^2, sign error [duplicate]

I try to plot quadratic fonction. \documentclass{article} \usepackage{tikz} \begin{document} bad, negative square equal...negative! \begin{tikzpicture} \draw plot (\x,\x^2/4/1.0); \end{tikzpicture} ...
15
votes
1answer
12k views

How can I avoid the “Dimension too large” error when plotting in newer PGF versions?

After using a new version (2.10) of PGF, certain parts of my old TikZ code stopped functioning properly. For instance, the plot for a power function: \documentclass{minimal} \usepackage{tikz} \begin{...
8
votes
3answers
891 views

Reversing a path in TikZ

When I use \path plot function {x^2}; in tikz, it plots it left-to-right (the default domain is -5:5). This is annoying, because, for example, one cannot pile on -- plot function {x^2 + 1} -- cycle; ...
6
votes
1answer
851 views

Fill area in tikzpicture

Can somebody help? The fill area is not symmetric. The goal is to be symmetric. \documentclass[10pt]{article} \usepackage{pgf,tikz} \usetikzlibrary{arrows} \pagestyle{empty} \begin{document} \...
3
votes
1answer
2k views

Plots in TikZ don't work

I want to do some plots using TikZ, however the following code doesn't work: \documentclass{minimal} \usepackage{amsmath} \usepackage{pgf,tikz}% \begin{document} \begin{tikzpicture} \draw[->...
9
votes
1answer
845 views

Using pgfplots with a0poster

I want to use tikz/pgf to plot some graphs in a poster done with a0poster. That is the code: \begin{tikzpicture} \begin{axis}[xlabel=lambda, ylabel=int] \addplot[blue] table [mark=none, col sep=...
0
votes
2answers
67 views

draw an upside down parabolla

I would like to draw the following figure (rotated 180 degrees--I do not know why it came out upside down) using TikZ: It seems that this should be easy, and I have tried playing with ARC function ...
2
votes
1answer
104 views

pgfplots Producing Incorrect Plot

Why is this not working properly: \documentclass{article} \usepackage{pgfplots} \begin{document} \begin{tikzpicture} \begin{axis}[xmin = 0,xmax= 1,ylabel = $C_A/C_A^*$,xlabel=$z$] ...
3
votes
1answer
95 views

TikZ, slope fields, slight glitch, horizontal tangents

I've cobbled together some code I've found to draw slope fields for my class. It does the job rather well, except for the following DE, and others, specifically, in this case: the resultant output ...
0
votes
1answer
70 views

wrong picture from tkz plot

I cannot found my error. I tried to draw a function, but Latex makes an error. Here the code: \documentclass[a4paper,11pt]{article} \usepackage{tikz, tkz-euclide} \usetikzlibrary{calc,intersections,...
1
vote
1answer
52 views

How to globally declare a function for PGFplots

I would like to be able to "globally" declare a function for use in PGFplots. That is, I want to be able to declare a function a single time, and be able to use it without having to declare it on ...

15 30 50 per page