on my question, user Javi_gg1 send me an answer that's right for me. This answer have  this code  \draw[ultra thick, red] plot (\x, {sin(deg(exp(ln(\fmin)+\x/\xmax*(ln(\fmax)-ln(\fmin)))*\x))} );   I could not understand how he works. is there anyone (maybe javi_gg1) who can explain it to me? Because I would change some aspect.
123344
\documentclass{standalone} \usepackage{tikz} \usepackage{pgfplots} \pgfplotsset{compat=1.15}  \begin{document}     \newcommand{\xmax}{14}     \newcommand{\fmin}{(pi/3)}     \newcommand{\fmax}{(2*pi)} \begin{tikzpicture}[domain=0:\xmax, samples=500]  \draw[ultra thick, red] plot (\x, {sin(deg(exp(ln(\fmin)+\x/\xmax*(ln(\fmax)-ln(\fmin)))*\x))} );  \end{tikzpicture} \end{document}   I would understand if LaTeX repeat the code below this statement many times.
46638
how can I draw the graph for this   the graph of $x \geq 5$ and $y \geq5$ is?  please guide me to draw it   thanks in advance
64041
Can someone please explain me why the following code doesn't result in a fill?  And why, sometimes, I get such "very thin lines" artifact (that's visibile in my picture)?  \begin{tikzpicture} \node (A) at (0,0) {A}; \node (B) at (1,0) {B}; \node (C) at (1,1) {C}; \fill[red] (A) -- (B) -- (C) --cycle; \end{tikzpicture}   Here's what I get:
42402
Drawing the graph of a function is not intuitive. For example, the function $f(x)=x^2$ is special, we can say that given two points of the function the straight line that join those points is above the function. So we write  $$ x_2&lt;(x_1+x_0)(x-x_0)+x^2  $$ How did I obtain the part of the right?  $$ (Y-x_0^2)/   (x-x_0)  =     (x_1^2 -  x_0^2)   /      (x_1 -   x_0) $$ Now I just isolate Y in the equation above.  My question is, can I do the same with $f(x)=x^3$?  And how do I prove it? Can I say that $x^3$ is below the straight line that join two points of the function $x^3$? If and only if $x$ is positive.
65999
Ok so I have been trying to draw this figure:     I have made it till the above diagram. The three captions that I made in the topmost picture is what that is remaining. 1. The outer boundary of the rectangle should also be colored blue or some color.  2. The small circles should be labeled with a matrix.  3. The rectangle should be filled with horizontal lines  Here is the code for what I have done:      \documentclass{article} % say \usepackage{tikz} \begin{document} \begin{tikzpicture} \draw  (0,5) node (yaxis) [above] {$y$} |- (5,0) node (xaxis) [right] {$x$}; \draw (-0.5,0) -- (4,0); \draw (0,-0.5) -- (0,4); \definecolor{mycolor}{RGB}{178,181,255} \filldraw[fill=mycolor] (0,0) rectangle (2,2); \filldraw [cyan] (0,2) circle [radius=2pt]; \filldraw [cyan] (2,0) circle [radius=2pt];  \end{tikzpicture} \end{document}   Any help would be appreciated.
92417
I tried it by graph plotting, but it is going so ugly. On solving it on paper it mixed up. Is there any other process to solve?
93508
I am trying to plot a graph of 100*e^(-x/5) in LaTeX but for some reason it will only plot up to x=5.  \documentclass{article} \usepackage{pgfplots} \usepackage{tikz} \begin{document} \begin{figure}[h] \centering \begin{tikzpicture} \begin{axis}[  xlabel=$\Delta V$, ylabel={$\% payload$}, xmin = 0, xmax = 10, ymin = 0, ymax = 100, samples = 65 ]  \addplot [black, smooth]{100*exp(-x/5)};  \end{axis} \end{tikzpicture} \end{figure} \end{document}   Is there any reason for this? How can I get around it?
81107
\documentclass[12pt]{article} \usepackage{tikz} \usepackage{pgfplots} \begin{document}     \begin{axis}[hide axis,red,width=16cm,height=8cm,thick]          \addplot[domain=20:300,samples=800, colormap={}{ color(2cm)=(red);    },   ultra thick, point meta=x*x,mesh]{sin(150*pow(x,1/2))};  %You could also ask a new question. Or you could just flip the picture.      \begin{tikzpicture}[xscale=-1]          \begin{axis}[hide axis,red,width=16cm,height=4cm,thick]             \addplot[domain=20:300,samples=800, colormap={}{ color(2cm)=(red); color(16cm)=(blue); },             ultra thick, point meta=x*x,mesh]                 {sin(pow(x,2)/15)};         \end{axis}      \end{tikzpicture} \end{document}   This code work well for me. But I would obtain just one more thing: - How can I obtain a more hight wave the more waves are tracked? I would increase also distance between waves
67624
I am stuck on drawing a P-V graph through latex. Could anybody help me code on this?   I appreciate your help!
48280
I am currently trying to work out how the perpendicular arrows  work, and I fail.  Taking:  \draw [arrow] (node1) -- node[sloped, above] {Caption} (node1 |- node2.north west);   I suspected that the notation meant: Draw an arrow from node 1, to the north-west corner of  node 2. Make the arrow perpendicular to node 1.  Further attempts to draw arrows told me: No, that's not it. I have sadly failed to figure out what exactly the notation is supposed to be doing though! Is there any "explanation for dummies" that will lead me to understand what exactly    node1 |-   Is supposed to do?  Thanks!
114940
I'm wondering if it exists a canonical/natural/smooth/economical way of drawing such a diagram    for the definition of a function. The best I managed to do with tikz and align is very poor. I'm a beginner with Latex, hence I apologize in advance in case the question had a trivial answer.
5905
can anybody help me to draw this minimal example of an xy axis? I couldn't find anything similar on the forum.  The axis should be black but the grid behind it a shade o gray, dashed. It would be great if the axis were a little bit thicker than the grid also.
54387
Question I use pgfplots with the ultra thick option ans without explicitly giving the domain for the y-axis. It seems that in this case, some part of my graph is &quot;eaten&quot; by the margin: see the picture below to understand what I mean. Is there a way to avoid this? Code \documentclass{article} \usepackage{pgfplots} \begin{document}  \begin{tikzpicture}  \pgfplotsset{every axis/.append style={                     axis x line=middle,    % put the x axis in the middle                     axis y line=middle,    % put the y axis in the middle                     axis line style={-&gt;},  % arrows on the axis                     xlabel={$x$},          % default put x on x-axis                     ylabel={$y$},          % default put y on y-axis                     grid = major                     }}  \begin{axis}[xmin=-5,xmax=5] \addplot[orange,smooth, ultra thick] {sin(deg(x))} ;                  \end{axis} \end{tikzpicture}  \end{document}
36632
Usually when I plot in , it always draws on the same figure. How do I make it draw in a new figure?   I know it is pretty elementary, but I'm not finding it using Google Search.
1067
I need draw some picture, but I don't know how do that.   First, the simple graph with basic shapes, arrow,....   And then, draw a picture with math symbol or equation in math environment. Like that:   Please help me draw two picture. And if you don't mind, please show me some tools which can help me draw easily and generate to latex code, or some document help me learnt quickly. Thanks for your help
25278
I want the limits of the sum sign to be placed where I placed the red lines in the photo. This is the line of script I used:  $Result = p + \sum_{i=0}^{n} f(x)$    This is what I get and the red lines is what I want.
30870
I plotted the graphs of $x$ and $\ln(x+1)$ and found they meet when $x= 0$, is there any way to show this analitically? I tried $e^x = x+1$ but its actually the same