Hot answers tagged

9

Here is an example using pgfplots and its fillbetween libary. \documentclass[border=2mm]{standalone} \usepackage{pgfplots} \pgfplotsset{compat=1.13} \usepgfplotslibrary{fillbetween} \begin{document} \begin{tikzpicture} \begin{axis}[ set layers, axis lines=middle, xmin=-3.1,xmax=3,xtickmax=2.9, ...


8

That is not easy, because you have to find first the intersections. And, of course, I suppose you mean only the area in the positive part. The following example works only with latex->dvips->ps2pdf \documentclass[11pt]{article} \usepackage{pst-intersect} \begin{document} \psset{unit=2} \begin{pspicture*}(-0.5,-0.5)(3,3) ...


4

An easy way to do this is draw the same curve with a yshift. For example, add this to your code: \draw[yshift=1cm] (axis cs:.5,6) to [bend right=10] coordinate[pos=0.8] (dl_j) (axis cs:9,3.5); Edit: I overlooked a bit your question. y-shifting would only give a parallel if the non-shifted curve were a straight line... To obtain parallel curves, you could ...


4

You're missing a closing parenthesis in each of the functions. The one at the end of 1/2*(... is missing. As mentioned by JMP, you can tell pgf to use radians with e.g. cos(\x r). Below I defined a couple of functions to make the input easier. I also added a pgfplots example for the heck of it. \documentclass[border=5mm]{standalone} \usepackage{pgfplots} ...


2

Presumably you want to keep the logarithmic scaling on the y-axis, but you can't have ymin=0 with a logarithmic y-axis, so I changed that to 0.1. I suppose you want something like the example below. I simply specified the yticks and yticklabels manually. It may not be the most elegant solution, but it works at least. \documentclass{article} ...



Only top voted, non community-wiki answers of a minimum length are eligible