sin wave with changing frequency












2














I'm trying to recreate this image of the EM spectrum:



Electromagnetic Spectrum



I would like to draw a sin/cos wave of changing frequency as in the picture.



So far I've been doing something extremely hacky but this less than ideal because I can't change the form of the wave without manually going through and changing all the numbers. Can anyone suggest a more elegant solution that perhaps uses a single sine/cosine function?



begin{tikzpicture}
draw (0,0) -- (12,0);
draw (0.2,1)node[left,font=tiny] {$y=1$} -- (11.8,1);
draw (0.2,-1)node[left,font=tiny] {$y=-1$} -- (11.8,-1);
foreach x in {0,0.5,...,12}{
draw (x,-0.2)node [below,font=tiny,] {x} -- (x,0.2) ;
}
draw[ultra thick, red] (0,0) sin (1,1); %% the real business in this line
draw[ultra thick, red] (1,1) cos (2.0,0); %% the real business in this line
draw[ultra thick, red] (2.0,0) sin (3,-1); %% the real business in this line
draw[ultra thick, red] (3,-1) cos (3.9,0); %% the real business in this line
draw[ultra thick, red] (3.9,0) sin (4.8,1); %% the real business in this line
draw[ultra thick, red] (4.8,1) cos (5.6,0); %% the real business in this line
draw[ultra thick, red] (5.6,0) sin (6.4,-1); %% the real business in this line
draw[ultra thick, red] (6.4,-1) cos (7.2,0);

draw[ultra thick, red] (7.2,0) sin (7.9,1); %% the real business in this line
draw[ultra thick, red] (7.9,1) cos (8.55,0); %% the real business in this line
draw[ultra thick, red] (8.55,0) sin (9.2,-1); %% the real business in this line
draw[ultra thick, red] (9.2,-1) cos (9.7,0.0);

draw[ultra thick, red] (9.7,0) sin (10.2,1); %% the real business in this line
draw[ultra thick, red] (10.2,1) cos (10.6,0); %% the real business in this line
draw[ultra thick, red] (10.6,0) sin (11.0,-1); %% the real business in this line
draw[ultra thick, red] (11.0,-1) cos (11.3,0); %% the real business in this line

draw[ultra thick, red] (11.3,0) sin (11.6,1); %% the real business in this line
draw[ultra thick, red] (11.6,1) cos (11.8,0); %% the real business in this line
draw[ultra thick, red] (11.8,0) sin (12.0,-1); %% the real business in this line
draw[ultra thick, red] (12.0,-1) cos (12.2,0); %% the real business in this line

draw[ultra thick, red] (12.2,0) sin (12.4,1); %% the real business in this line
draw[ultra thick, red] (12.4,1) cos (12.55,0); %% the real business in this line
draw[ultra thick, red] (12.55,0) sin (12.7,-1); %% the real business in this line
draw[ultra thick, red] (12.7,-1) cos (12.85,0); %% the real business in this line

draw[ultra thick, red] (12.85,0) sin (13.0,1); %% the real business in this line
draw[ultra thick, red] (13.0,1) cos (13.1,0); %% the real business in this line
draw[ultra thick, red] (13.1,0) sin (13.2,-1); %% the real business in this line
draw[ultra thick, red] (13.2,-1) cos (13.3,0); %% the real business in this line

draw[ultra thick, red] (13.3,0) sin (13.4,1); %% the real business in this line
draw[ultra thick, red] (13.4,1) cos (13.48,0); %% the real business in this line
draw[ultra thick, red] (13.48,0) sin (13.56,-1); %% the real business in this line
draw[ultra thick, red] (13.56,-1) cos (13.62,0); %% the real business in this line

draw[ultra thick, red] (13.62,0) sin (13.69,1); %% the real business in this line
draw[ultra thick, red] (13.69,1) cos (13.76,0); %% the real business in this line
draw[ultra thick, red] (13.76,0) sin (13.82,-1); %% the real business in this line
draw[ultra thick, red] (13.82,-1) cos (13.88,0); %% the real business in this line
draw[ultra thick, red] (13.88,0) sin (13.92,1); %% the real business in this line
end{tikzpicture}


Current attempt










share|improve this question






















  • You could use pgfplots and y=sin((a*x+b)*x)
    – John Kormylo
    Dec 7 '17 at 14:42










  • There is actually no need to define all the points of your plot, as you did. See tex.stackexchange.com/questions/231052/…
    – Sina Ahmadi
    Dec 7 '17 at 14:53
















2














I'm trying to recreate this image of the EM spectrum:



Electromagnetic Spectrum



I would like to draw a sin/cos wave of changing frequency as in the picture.



So far I've been doing something extremely hacky but this less than ideal because I can't change the form of the wave without manually going through and changing all the numbers. Can anyone suggest a more elegant solution that perhaps uses a single sine/cosine function?



begin{tikzpicture}
draw (0,0) -- (12,0);
draw (0.2,1)node[left,font=tiny] {$y=1$} -- (11.8,1);
draw (0.2,-1)node[left,font=tiny] {$y=-1$} -- (11.8,-1);
foreach x in {0,0.5,...,12}{
draw (x,-0.2)node [below,font=tiny,] {x} -- (x,0.2) ;
}
draw[ultra thick, red] (0,0) sin (1,1); %% the real business in this line
draw[ultra thick, red] (1,1) cos (2.0,0); %% the real business in this line
draw[ultra thick, red] (2.0,0) sin (3,-1); %% the real business in this line
draw[ultra thick, red] (3,-1) cos (3.9,0); %% the real business in this line
draw[ultra thick, red] (3.9,0) sin (4.8,1); %% the real business in this line
draw[ultra thick, red] (4.8,1) cos (5.6,0); %% the real business in this line
draw[ultra thick, red] (5.6,0) sin (6.4,-1); %% the real business in this line
draw[ultra thick, red] (6.4,-1) cos (7.2,0);

draw[ultra thick, red] (7.2,0) sin (7.9,1); %% the real business in this line
draw[ultra thick, red] (7.9,1) cos (8.55,0); %% the real business in this line
draw[ultra thick, red] (8.55,0) sin (9.2,-1); %% the real business in this line
draw[ultra thick, red] (9.2,-1) cos (9.7,0.0);

draw[ultra thick, red] (9.7,0) sin (10.2,1); %% the real business in this line
draw[ultra thick, red] (10.2,1) cos (10.6,0); %% the real business in this line
draw[ultra thick, red] (10.6,0) sin (11.0,-1); %% the real business in this line
draw[ultra thick, red] (11.0,-1) cos (11.3,0); %% the real business in this line

draw[ultra thick, red] (11.3,0) sin (11.6,1); %% the real business in this line
draw[ultra thick, red] (11.6,1) cos (11.8,0); %% the real business in this line
draw[ultra thick, red] (11.8,0) sin (12.0,-1); %% the real business in this line
draw[ultra thick, red] (12.0,-1) cos (12.2,0); %% the real business in this line

draw[ultra thick, red] (12.2,0) sin (12.4,1); %% the real business in this line
draw[ultra thick, red] (12.4,1) cos (12.55,0); %% the real business in this line
draw[ultra thick, red] (12.55,0) sin (12.7,-1); %% the real business in this line
draw[ultra thick, red] (12.7,-1) cos (12.85,0); %% the real business in this line

draw[ultra thick, red] (12.85,0) sin (13.0,1); %% the real business in this line
draw[ultra thick, red] (13.0,1) cos (13.1,0); %% the real business in this line
draw[ultra thick, red] (13.1,0) sin (13.2,-1); %% the real business in this line
draw[ultra thick, red] (13.2,-1) cos (13.3,0); %% the real business in this line

draw[ultra thick, red] (13.3,0) sin (13.4,1); %% the real business in this line
draw[ultra thick, red] (13.4,1) cos (13.48,0); %% the real business in this line
draw[ultra thick, red] (13.48,0) sin (13.56,-1); %% the real business in this line
draw[ultra thick, red] (13.56,-1) cos (13.62,0); %% the real business in this line

draw[ultra thick, red] (13.62,0) sin (13.69,1); %% the real business in this line
draw[ultra thick, red] (13.69,1) cos (13.76,0); %% the real business in this line
draw[ultra thick, red] (13.76,0) sin (13.82,-1); %% the real business in this line
draw[ultra thick, red] (13.82,-1) cos (13.88,0); %% the real business in this line
draw[ultra thick, red] (13.88,0) sin (13.92,1); %% the real business in this line
end{tikzpicture}


Current attempt










share|improve this question






















  • You could use pgfplots and y=sin((a*x+b)*x)
    – John Kormylo
    Dec 7 '17 at 14:42










  • There is actually no need to define all the points of your plot, as you did. See tex.stackexchange.com/questions/231052/…
    – Sina Ahmadi
    Dec 7 '17 at 14:53














2












2








2


2





I'm trying to recreate this image of the EM spectrum:



Electromagnetic Spectrum



I would like to draw a sin/cos wave of changing frequency as in the picture.



So far I've been doing something extremely hacky but this less than ideal because I can't change the form of the wave without manually going through and changing all the numbers. Can anyone suggest a more elegant solution that perhaps uses a single sine/cosine function?



begin{tikzpicture}
draw (0,0) -- (12,0);
draw (0.2,1)node[left,font=tiny] {$y=1$} -- (11.8,1);
draw (0.2,-1)node[left,font=tiny] {$y=-1$} -- (11.8,-1);
foreach x in {0,0.5,...,12}{
draw (x,-0.2)node [below,font=tiny,] {x} -- (x,0.2) ;
}
draw[ultra thick, red] (0,0) sin (1,1); %% the real business in this line
draw[ultra thick, red] (1,1) cos (2.0,0); %% the real business in this line
draw[ultra thick, red] (2.0,0) sin (3,-1); %% the real business in this line
draw[ultra thick, red] (3,-1) cos (3.9,0); %% the real business in this line
draw[ultra thick, red] (3.9,0) sin (4.8,1); %% the real business in this line
draw[ultra thick, red] (4.8,1) cos (5.6,0); %% the real business in this line
draw[ultra thick, red] (5.6,0) sin (6.4,-1); %% the real business in this line
draw[ultra thick, red] (6.4,-1) cos (7.2,0);

draw[ultra thick, red] (7.2,0) sin (7.9,1); %% the real business in this line
draw[ultra thick, red] (7.9,1) cos (8.55,0); %% the real business in this line
draw[ultra thick, red] (8.55,0) sin (9.2,-1); %% the real business in this line
draw[ultra thick, red] (9.2,-1) cos (9.7,0.0);

draw[ultra thick, red] (9.7,0) sin (10.2,1); %% the real business in this line
draw[ultra thick, red] (10.2,1) cos (10.6,0); %% the real business in this line
draw[ultra thick, red] (10.6,0) sin (11.0,-1); %% the real business in this line
draw[ultra thick, red] (11.0,-1) cos (11.3,0); %% the real business in this line

draw[ultra thick, red] (11.3,0) sin (11.6,1); %% the real business in this line
draw[ultra thick, red] (11.6,1) cos (11.8,0); %% the real business in this line
draw[ultra thick, red] (11.8,0) sin (12.0,-1); %% the real business in this line
draw[ultra thick, red] (12.0,-1) cos (12.2,0); %% the real business in this line

draw[ultra thick, red] (12.2,0) sin (12.4,1); %% the real business in this line
draw[ultra thick, red] (12.4,1) cos (12.55,0); %% the real business in this line
draw[ultra thick, red] (12.55,0) sin (12.7,-1); %% the real business in this line
draw[ultra thick, red] (12.7,-1) cos (12.85,0); %% the real business in this line

draw[ultra thick, red] (12.85,0) sin (13.0,1); %% the real business in this line
draw[ultra thick, red] (13.0,1) cos (13.1,0); %% the real business in this line
draw[ultra thick, red] (13.1,0) sin (13.2,-1); %% the real business in this line
draw[ultra thick, red] (13.2,-1) cos (13.3,0); %% the real business in this line

draw[ultra thick, red] (13.3,0) sin (13.4,1); %% the real business in this line
draw[ultra thick, red] (13.4,1) cos (13.48,0); %% the real business in this line
draw[ultra thick, red] (13.48,0) sin (13.56,-1); %% the real business in this line
draw[ultra thick, red] (13.56,-1) cos (13.62,0); %% the real business in this line

draw[ultra thick, red] (13.62,0) sin (13.69,1); %% the real business in this line
draw[ultra thick, red] (13.69,1) cos (13.76,0); %% the real business in this line
draw[ultra thick, red] (13.76,0) sin (13.82,-1); %% the real business in this line
draw[ultra thick, red] (13.82,-1) cos (13.88,0); %% the real business in this line
draw[ultra thick, red] (13.88,0) sin (13.92,1); %% the real business in this line
end{tikzpicture}


Current attempt










share|improve this question













I'm trying to recreate this image of the EM spectrum:



Electromagnetic Spectrum



I would like to draw a sin/cos wave of changing frequency as in the picture.



So far I've been doing something extremely hacky but this less than ideal because I can't change the form of the wave without manually going through and changing all the numbers. Can anyone suggest a more elegant solution that perhaps uses a single sine/cosine function?



begin{tikzpicture}
draw (0,0) -- (12,0);
draw (0.2,1)node[left,font=tiny] {$y=1$} -- (11.8,1);
draw (0.2,-1)node[left,font=tiny] {$y=-1$} -- (11.8,-1);
foreach x in {0,0.5,...,12}{
draw (x,-0.2)node [below,font=tiny,] {x} -- (x,0.2) ;
}
draw[ultra thick, red] (0,0) sin (1,1); %% the real business in this line
draw[ultra thick, red] (1,1) cos (2.0,0); %% the real business in this line
draw[ultra thick, red] (2.0,0) sin (3,-1); %% the real business in this line
draw[ultra thick, red] (3,-1) cos (3.9,0); %% the real business in this line
draw[ultra thick, red] (3.9,0) sin (4.8,1); %% the real business in this line
draw[ultra thick, red] (4.8,1) cos (5.6,0); %% the real business in this line
draw[ultra thick, red] (5.6,0) sin (6.4,-1); %% the real business in this line
draw[ultra thick, red] (6.4,-1) cos (7.2,0);

draw[ultra thick, red] (7.2,0) sin (7.9,1); %% the real business in this line
draw[ultra thick, red] (7.9,1) cos (8.55,0); %% the real business in this line
draw[ultra thick, red] (8.55,0) sin (9.2,-1); %% the real business in this line
draw[ultra thick, red] (9.2,-1) cos (9.7,0.0);

draw[ultra thick, red] (9.7,0) sin (10.2,1); %% the real business in this line
draw[ultra thick, red] (10.2,1) cos (10.6,0); %% the real business in this line
draw[ultra thick, red] (10.6,0) sin (11.0,-1); %% the real business in this line
draw[ultra thick, red] (11.0,-1) cos (11.3,0); %% the real business in this line

draw[ultra thick, red] (11.3,0) sin (11.6,1); %% the real business in this line
draw[ultra thick, red] (11.6,1) cos (11.8,0); %% the real business in this line
draw[ultra thick, red] (11.8,0) sin (12.0,-1); %% the real business in this line
draw[ultra thick, red] (12.0,-1) cos (12.2,0); %% the real business in this line

draw[ultra thick, red] (12.2,0) sin (12.4,1); %% the real business in this line
draw[ultra thick, red] (12.4,1) cos (12.55,0); %% the real business in this line
draw[ultra thick, red] (12.55,0) sin (12.7,-1); %% the real business in this line
draw[ultra thick, red] (12.7,-1) cos (12.85,0); %% the real business in this line

draw[ultra thick, red] (12.85,0) sin (13.0,1); %% the real business in this line
draw[ultra thick, red] (13.0,1) cos (13.1,0); %% the real business in this line
draw[ultra thick, red] (13.1,0) sin (13.2,-1); %% the real business in this line
draw[ultra thick, red] (13.2,-1) cos (13.3,0); %% the real business in this line

draw[ultra thick, red] (13.3,0) sin (13.4,1); %% the real business in this line
draw[ultra thick, red] (13.4,1) cos (13.48,0); %% the real business in this line
draw[ultra thick, red] (13.48,0) sin (13.56,-1); %% the real business in this line
draw[ultra thick, red] (13.56,-1) cos (13.62,0); %% the real business in this line

draw[ultra thick, red] (13.62,0) sin (13.69,1); %% the real business in this line
draw[ultra thick, red] (13.69,1) cos (13.76,0); %% the real business in this line
draw[ultra thick, red] (13.76,0) sin (13.82,-1); %% the real business in this line
draw[ultra thick, red] (13.82,-1) cos (13.88,0); %% the real business in this line
draw[ultra thick, red] (13.88,0) sin (13.92,1); %% the real business in this line
end{tikzpicture}


Current attempt







tikz-pgf






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Dec 7 '17 at 14:19









user1654183

22816




22816












  • You could use pgfplots and y=sin((a*x+b)*x)
    – John Kormylo
    Dec 7 '17 at 14:42










  • There is actually no need to define all the points of your plot, as you did. See tex.stackexchange.com/questions/231052/…
    – Sina Ahmadi
    Dec 7 '17 at 14:53


















  • You could use pgfplots and y=sin((a*x+b)*x)
    – John Kormylo
    Dec 7 '17 at 14:42










  • There is actually no need to define all the points of your plot, as you did. See tex.stackexchange.com/questions/231052/…
    – Sina Ahmadi
    Dec 7 '17 at 14:53
















You could use pgfplots and y=sin((a*x+b)*x)
– John Kormylo
Dec 7 '17 at 14:42




You could use pgfplots and y=sin((a*x+b)*x)
– John Kormylo
Dec 7 '17 at 14:42












There is actually no need to define all the points of your plot, as you did. See tex.stackexchange.com/questions/231052/…
– Sina Ahmadi
Dec 7 '17 at 14:53




There is actually no need to define all the points of your plot, as you did. See tex.stackexchange.com/questions/231052/…
– Sina Ahmadi
Dec 7 '17 at 14:53










3 Answers
3






active

oldest

votes


















7














With blueshift.



documentclass[12pt]{article}
usepackage{tikz}
usepackage{pgfplots}

begin{document}
begin{tikzpicture}
begin{axis}[hide axis,red,width=16cm,height=4cm,thick]
addplot[domain=20:300,samples=800,
colormap={}{ % Define the colormap from https://tex.stackexchange.com/questions/243689/create-a-plot-line-with-a-gradient
color(2cm)=(red);
color(16cm)=(blue);
},
ultra thick, point meta=x*x,mesh]{sin(pow(x,2)/15)};
end{axis}
end{tikzpicture}
end{document}


enter image description here






share|improve this answer























  • marmot...this is what I'm looking for...
    – RenatoP
    Dec 11 '18 at 9:14










  • marmot, how can I obtain inverted frequency? I mean: - before major frequency - the low frequency
    – RenatoP
    Dec 13 '18 at 7:57












  • @RenatoP Try addplot[domain=20:300,samples=800, colormap={}{ color(2cm)=(red); color(16cm)=(blue); }, 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}
    – marmot
    Dec 13 '18 at 8:07












  • yes, it works! I have one error (unexpected end {document} after begin {axis} the first begin {axis} is not closed, but the file is well compiled and is ok) My last question is: is it possible to have more hight wave and amplitude as you procede?
    – RenatoP
    Dec 13 '18 at 9:09










  • @RenatoP Could you please ask a separate question? There is no charge. ;-) (I mean official question, not just comment.)
    – marmot
    Dec 13 '18 at 9:14





















5














A sine wave with increasing frequency has the expression sin(deg((fmin+x*((fmax-fmin))/xmax)*x)) if the frequency increase is linear, and sin(deg(exp(ln(fmin)+x/xmax*(ln(fmax)-ln(fmin)))*x)) if the frequency increase is exponential. I have seen that the exponential increase seems to provide better looking results. In the following code, set xmax to the maximum value of x, fmin to the minimum frequency, and fmax to the maximum frequency. The commented line uses linear frequency increase, and the uncommented line uses exponential frequency increase.



documentclass{standalone}
usepackage{tikz}
usepackage{pgfplots}

begin{document}
newcommand{xmax}{14}
newcommand{fmin}{(pi/3)}
newcommand{fmax}{(2*pi)}
begin{tikzpicture}[domain=0:xmax, samples=500]
draw (0,0) -- (12,0);
draw (0.2,1)node[left,font=tiny] {$y=1$} -- (11.8,1);
draw (0.2,-1)node[left,font=tiny] {$y=-1$} -- (11.8,-1);
foreach x in {0,0.5,...,12}{
draw (x,-0.2)node [below,font=tiny,] {x} -- (x,0.2) ;
}

% The following line uses linear frequency increase
%draw[ultra thick, red] plot (x, {sin(deg((fmin+x*((fmax-fmin))/xmax)*x))} );
% The following line uses exponential frequency increase
draw[ultra thick, red] plot (x, {sin(deg(exp(ln(fmin)+x/xmax*(ln(fmax)-ln(fmin)))*x))} );

end{tikzpicture}
end{document}


enter image description here






share|improve this answer





















  • how can I invert the frequency: first greater frequency and after less frequency.Finaly I should have first short wave, after hight wave. I do not know "the function. Renato
    – RenatoP
    Dec 12 '18 at 8:51










  • javi_gg1 I'munable to made the invertion (before more frequency after less)
    – RenatoP
    Dec 14 '18 at 12:17



















3














A PSTricks solution only for comparison purposes.



documentclass[pstricks]{standalone}
usepackage{pst-plot,pst-calculate}
begin{document}
begin{pspicture}[algebraic](0,-1.5)(pscalculate{2*pi},1.5)
psplot[plotpoints=3000]{0}{2 Pi mul}{sin(x^3/2)}
end{pspicture}
end{document}


enter image description here



Flipped version



documentclass[pstricks]{standalone}
usepackage{pst-plot,pst-calculate}
begin{document}
begin{pspicture}[algebraic](0,-1.5)(pscalculate{2*pi},1.5)
psplot[plotpoints=3000]{0}{2 Pi mul}{sin((x-TwoPi)^3/2)}
end{pspicture}
end{document}


enter image description here






share|improve this answer























  • how can I invert the frequency: first greater frequency and after less frequency.Finaly I should have first short wave, after hight wave. I do not know "the function.
    – RenatoP
    Dec 14 '18 at 7:50










  • cannot compile, thi is th error: ------------------------------------------------------------------------------------------------------- Package xkeyval Error: potpoints' undefined in families ,pstricks,pst-tools,pst-node,pst-arrow,pst-3d,pstricks-add,pst-plot'. See the xkeyval package documentation for explanation. Type H <return> for immediate help I' ve upload pst-calculate and pst-plot Use pdflatex to compile
    – RenatoP
    Dec 14 '18 at 9:07












  • @RenatoP: Compile it with xelatex or latex-dvips-ps2pdf.
    – God Must Be Crazy
    Dec 14 '18 at 12:27











Your Answer








StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "85"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f405048%2fsin-wave-with-changing-frequency%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























3 Answers
3






active

oldest

votes








3 Answers
3






active

oldest

votes









active

oldest

votes






active

oldest

votes









7














With blueshift.



documentclass[12pt]{article}
usepackage{tikz}
usepackage{pgfplots}

begin{document}
begin{tikzpicture}
begin{axis}[hide axis,red,width=16cm,height=4cm,thick]
addplot[domain=20:300,samples=800,
colormap={}{ % Define the colormap from https://tex.stackexchange.com/questions/243689/create-a-plot-line-with-a-gradient
color(2cm)=(red);
color(16cm)=(blue);
},
ultra thick, point meta=x*x,mesh]{sin(pow(x,2)/15)};
end{axis}
end{tikzpicture}
end{document}


enter image description here






share|improve this answer























  • marmot...this is what I'm looking for...
    – RenatoP
    Dec 11 '18 at 9:14










  • marmot, how can I obtain inverted frequency? I mean: - before major frequency - the low frequency
    – RenatoP
    Dec 13 '18 at 7:57












  • @RenatoP Try addplot[domain=20:300,samples=800, colormap={}{ color(2cm)=(red); color(16cm)=(blue); }, 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}
    – marmot
    Dec 13 '18 at 8:07












  • yes, it works! I have one error (unexpected end {document} after begin {axis} the first begin {axis} is not closed, but the file is well compiled and is ok) My last question is: is it possible to have more hight wave and amplitude as you procede?
    – RenatoP
    Dec 13 '18 at 9:09










  • @RenatoP Could you please ask a separate question? There is no charge. ;-) (I mean official question, not just comment.)
    – marmot
    Dec 13 '18 at 9:14


















7














With blueshift.



documentclass[12pt]{article}
usepackage{tikz}
usepackage{pgfplots}

begin{document}
begin{tikzpicture}
begin{axis}[hide axis,red,width=16cm,height=4cm,thick]
addplot[domain=20:300,samples=800,
colormap={}{ % Define the colormap from https://tex.stackexchange.com/questions/243689/create-a-plot-line-with-a-gradient
color(2cm)=(red);
color(16cm)=(blue);
},
ultra thick, point meta=x*x,mesh]{sin(pow(x,2)/15)};
end{axis}
end{tikzpicture}
end{document}


enter image description here






share|improve this answer























  • marmot...this is what I'm looking for...
    – RenatoP
    Dec 11 '18 at 9:14










  • marmot, how can I obtain inverted frequency? I mean: - before major frequency - the low frequency
    – RenatoP
    Dec 13 '18 at 7:57












  • @RenatoP Try addplot[domain=20:300,samples=800, colormap={}{ color(2cm)=(red); color(16cm)=(blue); }, 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}
    – marmot
    Dec 13 '18 at 8:07












  • yes, it works! I have one error (unexpected end {document} after begin {axis} the first begin {axis} is not closed, but the file is well compiled and is ok) My last question is: is it possible to have more hight wave and amplitude as you procede?
    – RenatoP
    Dec 13 '18 at 9:09










  • @RenatoP Could you please ask a separate question? There is no charge. ;-) (I mean official question, not just comment.)
    – marmot
    Dec 13 '18 at 9:14
















7












7








7






With blueshift.



documentclass[12pt]{article}
usepackage{tikz}
usepackage{pgfplots}

begin{document}
begin{tikzpicture}
begin{axis}[hide axis,red,width=16cm,height=4cm,thick]
addplot[domain=20:300,samples=800,
colormap={}{ % Define the colormap from https://tex.stackexchange.com/questions/243689/create-a-plot-line-with-a-gradient
color(2cm)=(red);
color(16cm)=(blue);
},
ultra thick, point meta=x*x,mesh]{sin(pow(x,2)/15)};
end{axis}
end{tikzpicture}
end{document}


enter image description here






share|improve this answer














With blueshift.



documentclass[12pt]{article}
usepackage{tikz}
usepackage{pgfplots}

begin{document}
begin{tikzpicture}
begin{axis}[hide axis,red,width=16cm,height=4cm,thick]
addplot[domain=20:300,samples=800,
colormap={}{ % Define the colormap from https://tex.stackexchange.com/questions/243689/create-a-plot-line-with-a-gradient
color(2cm)=(red);
color(16cm)=(blue);
},
ultra thick, point meta=x*x,mesh]{sin(pow(x,2)/15)};
end{axis}
end{tikzpicture}
end{document}


enter image description here







share|improve this answer














share|improve this answer



share|improve this answer








edited Dec 7 '17 at 15:17

























answered Dec 7 '17 at 14:52









marmot

88k4101189




88k4101189












  • marmot...this is what I'm looking for...
    – RenatoP
    Dec 11 '18 at 9:14










  • marmot, how can I obtain inverted frequency? I mean: - before major frequency - the low frequency
    – RenatoP
    Dec 13 '18 at 7:57












  • @RenatoP Try addplot[domain=20:300,samples=800, colormap={}{ color(2cm)=(red); color(16cm)=(blue); }, 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}
    – marmot
    Dec 13 '18 at 8:07












  • yes, it works! I have one error (unexpected end {document} after begin {axis} the first begin {axis} is not closed, but the file is well compiled and is ok) My last question is: is it possible to have more hight wave and amplitude as you procede?
    – RenatoP
    Dec 13 '18 at 9:09










  • @RenatoP Could you please ask a separate question? There is no charge. ;-) (I mean official question, not just comment.)
    – marmot
    Dec 13 '18 at 9:14




















  • marmot...this is what I'm looking for...
    – RenatoP
    Dec 11 '18 at 9:14










  • marmot, how can I obtain inverted frequency? I mean: - before major frequency - the low frequency
    – RenatoP
    Dec 13 '18 at 7:57












  • @RenatoP Try addplot[domain=20:300,samples=800, colormap={}{ color(2cm)=(red); color(16cm)=(blue); }, 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}
    – marmot
    Dec 13 '18 at 8:07












  • yes, it works! I have one error (unexpected end {document} after begin {axis} the first begin {axis} is not closed, but the file is well compiled and is ok) My last question is: is it possible to have more hight wave and amplitude as you procede?
    – RenatoP
    Dec 13 '18 at 9:09










  • @RenatoP Could you please ask a separate question? There is no charge. ;-) (I mean official question, not just comment.)
    – marmot
    Dec 13 '18 at 9:14


















marmot...this is what I'm looking for...
– RenatoP
Dec 11 '18 at 9:14




marmot...this is what I'm looking for...
– RenatoP
Dec 11 '18 at 9:14












marmot, how can I obtain inverted frequency? I mean: - before major frequency - the low frequency
– RenatoP
Dec 13 '18 at 7:57






marmot, how can I obtain inverted frequency? I mean: - before major frequency - the low frequency
– RenatoP
Dec 13 '18 at 7:57














@RenatoP Try addplot[domain=20:300,samples=800, colormap={}{ color(2cm)=(red); color(16cm)=(blue); }, 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}
– marmot
Dec 13 '18 at 8:07






@RenatoP Try addplot[domain=20:300,samples=800, colormap={}{ color(2cm)=(red); color(16cm)=(blue); }, 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}
– marmot
Dec 13 '18 at 8:07














yes, it works! I have one error (unexpected end {document} after begin {axis} the first begin {axis} is not closed, but the file is well compiled and is ok) My last question is: is it possible to have more hight wave and amplitude as you procede?
– RenatoP
Dec 13 '18 at 9:09




yes, it works! I have one error (unexpected end {document} after begin {axis} the first begin {axis} is not closed, but the file is well compiled and is ok) My last question is: is it possible to have more hight wave and amplitude as you procede?
– RenatoP
Dec 13 '18 at 9:09












@RenatoP Could you please ask a separate question? There is no charge. ;-) (I mean official question, not just comment.)
– marmot
Dec 13 '18 at 9:14






@RenatoP Could you please ask a separate question? There is no charge. ;-) (I mean official question, not just comment.)
– marmot
Dec 13 '18 at 9:14













5














A sine wave with increasing frequency has the expression sin(deg((fmin+x*((fmax-fmin))/xmax)*x)) if the frequency increase is linear, and sin(deg(exp(ln(fmin)+x/xmax*(ln(fmax)-ln(fmin)))*x)) if the frequency increase is exponential. I have seen that the exponential increase seems to provide better looking results. In the following code, set xmax to the maximum value of x, fmin to the minimum frequency, and fmax to the maximum frequency. The commented line uses linear frequency increase, and the uncommented line uses exponential frequency increase.



documentclass{standalone}
usepackage{tikz}
usepackage{pgfplots}

begin{document}
newcommand{xmax}{14}
newcommand{fmin}{(pi/3)}
newcommand{fmax}{(2*pi)}
begin{tikzpicture}[domain=0:xmax, samples=500]
draw (0,0) -- (12,0);
draw (0.2,1)node[left,font=tiny] {$y=1$} -- (11.8,1);
draw (0.2,-1)node[left,font=tiny] {$y=-1$} -- (11.8,-1);
foreach x in {0,0.5,...,12}{
draw (x,-0.2)node [below,font=tiny,] {x} -- (x,0.2) ;
}

% The following line uses linear frequency increase
%draw[ultra thick, red] plot (x, {sin(deg((fmin+x*((fmax-fmin))/xmax)*x))} );
% The following line uses exponential frequency increase
draw[ultra thick, red] plot (x, {sin(deg(exp(ln(fmin)+x/xmax*(ln(fmax)-ln(fmin)))*x))} );

end{tikzpicture}
end{document}


enter image description here






share|improve this answer





















  • how can I invert the frequency: first greater frequency and after less frequency.Finaly I should have first short wave, after hight wave. I do not know "the function. Renato
    – RenatoP
    Dec 12 '18 at 8:51










  • javi_gg1 I'munable to made the invertion (before more frequency after less)
    – RenatoP
    Dec 14 '18 at 12:17
















5














A sine wave with increasing frequency has the expression sin(deg((fmin+x*((fmax-fmin))/xmax)*x)) if the frequency increase is linear, and sin(deg(exp(ln(fmin)+x/xmax*(ln(fmax)-ln(fmin)))*x)) if the frequency increase is exponential. I have seen that the exponential increase seems to provide better looking results. In the following code, set xmax to the maximum value of x, fmin to the minimum frequency, and fmax to the maximum frequency. The commented line uses linear frequency increase, and the uncommented line uses exponential frequency increase.



documentclass{standalone}
usepackage{tikz}
usepackage{pgfplots}

begin{document}
newcommand{xmax}{14}
newcommand{fmin}{(pi/3)}
newcommand{fmax}{(2*pi)}
begin{tikzpicture}[domain=0:xmax, samples=500]
draw (0,0) -- (12,0);
draw (0.2,1)node[left,font=tiny] {$y=1$} -- (11.8,1);
draw (0.2,-1)node[left,font=tiny] {$y=-1$} -- (11.8,-1);
foreach x in {0,0.5,...,12}{
draw (x,-0.2)node [below,font=tiny,] {x} -- (x,0.2) ;
}

% The following line uses linear frequency increase
%draw[ultra thick, red] plot (x, {sin(deg((fmin+x*((fmax-fmin))/xmax)*x))} );
% The following line uses exponential frequency increase
draw[ultra thick, red] plot (x, {sin(deg(exp(ln(fmin)+x/xmax*(ln(fmax)-ln(fmin)))*x))} );

end{tikzpicture}
end{document}


enter image description here






share|improve this answer





















  • how can I invert the frequency: first greater frequency and after less frequency.Finaly I should have first short wave, after hight wave. I do not know "the function. Renato
    – RenatoP
    Dec 12 '18 at 8:51










  • javi_gg1 I'munable to made the invertion (before more frequency after less)
    – RenatoP
    Dec 14 '18 at 12:17














5












5








5






A sine wave with increasing frequency has the expression sin(deg((fmin+x*((fmax-fmin))/xmax)*x)) if the frequency increase is linear, and sin(deg(exp(ln(fmin)+x/xmax*(ln(fmax)-ln(fmin)))*x)) if the frequency increase is exponential. I have seen that the exponential increase seems to provide better looking results. In the following code, set xmax to the maximum value of x, fmin to the minimum frequency, and fmax to the maximum frequency. The commented line uses linear frequency increase, and the uncommented line uses exponential frequency increase.



documentclass{standalone}
usepackage{tikz}
usepackage{pgfplots}

begin{document}
newcommand{xmax}{14}
newcommand{fmin}{(pi/3)}
newcommand{fmax}{(2*pi)}
begin{tikzpicture}[domain=0:xmax, samples=500]
draw (0,0) -- (12,0);
draw (0.2,1)node[left,font=tiny] {$y=1$} -- (11.8,1);
draw (0.2,-1)node[left,font=tiny] {$y=-1$} -- (11.8,-1);
foreach x in {0,0.5,...,12}{
draw (x,-0.2)node [below,font=tiny,] {x} -- (x,0.2) ;
}

% The following line uses linear frequency increase
%draw[ultra thick, red] plot (x, {sin(deg((fmin+x*((fmax-fmin))/xmax)*x))} );
% The following line uses exponential frequency increase
draw[ultra thick, red] plot (x, {sin(deg(exp(ln(fmin)+x/xmax*(ln(fmax)-ln(fmin)))*x))} );

end{tikzpicture}
end{document}


enter image description here






share|improve this answer












A sine wave with increasing frequency has the expression sin(deg((fmin+x*((fmax-fmin))/xmax)*x)) if the frequency increase is linear, and sin(deg(exp(ln(fmin)+x/xmax*(ln(fmax)-ln(fmin)))*x)) if the frequency increase is exponential. I have seen that the exponential increase seems to provide better looking results. In the following code, set xmax to the maximum value of x, fmin to the minimum frequency, and fmax to the maximum frequency. The commented line uses linear frequency increase, and the uncommented line uses exponential frequency increase.



documentclass{standalone}
usepackage{tikz}
usepackage{pgfplots}

begin{document}
newcommand{xmax}{14}
newcommand{fmin}{(pi/3)}
newcommand{fmax}{(2*pi)}
begin{tikzpicture}[domain=0:xmax, samples=500]
draw (0,0) -- (12,0);
draw (0.2,1)node[left,font=tiny] {$y=1$} -- (11.8,1);
draw (0.2,-1)node[left,font=tiny] {$y=-1$} -- (11.8,-1);
foreach x in {0,0.5,...,12}{
draw (x,-0.2)node [below,font=tiny,] {x} -- (x,0.2) ;
}

% The following line uses linear frequency increase
%draw[ultra thick, red] plot (x, {sin(deg((fmin+x*((fmax-fmin))/xmax)*x))} );
% The following line uses exponential frequency increase
draw[ultra thick, red] plot (x, {sin(deg(exp(ln(fmin)+x/xmax*(ln(fmax)-ln(fmin)))*x))} );

end{tikzpicture}
end{document}


enter image description here







share|improve this answer












share|improve this answer



share|improve this answer










answered Dec 7 '17 at 15:09









javi_gg1

1,165211




1,165211












  • how can I invert the frequency: first greater frequency and after less frequency.Finaly I should have first short wave, after hight wave. I do not know "the function. Renato
    – RenatoP
    Dec 12 '18 at 8:51










  • javi_gg1 I'munable to made the invertion (before more frequency after less)
    – RenatoP
    Dec 14 '18 at 12:17


















  • how can I invert the frequency: first greater frequency and after less frequency.Finaly I should have first short wave, after hight wave. I do not know "the function. Renato
    – RenatoP
    Dec 12 '18 at 8:51










  • javi_gg1 I'munable to made the invertion (before more frequency after less)
    – RenatoP
    Dec 14 '18 at 12:17
















how can I invert the frequency: first greater frequency and after less frequency.Finaly I should have first short wave, after hight wave. I do not know "the function. Renato
– RenatoP
Dec 12 '18 at 8:51




how can I invert the frequency: first greater frequency and after less frequency.Finaly I should have first short wave, after hight wave. I do not know "the function. Renato
– RenatoP
Dec 12 '18 at 8:51












javi_gg1 I'munable to made the invertion (before more frequency after less)
– RenatoP
Dec 14 '18 at 12:17




javi_gg1 I'munable to made the invertion (before more frequency after less)
– RenatoP
Dec 14 '18 at 12:17











3














A PSTricks solution only for comparison purposes.



documentclass[pstricks]{standalone}
usepackage{pst-plot,pst-calculate}
begin{document}
begin{pspicture}[algebraic](0,-1.5)(pscalculate{2*pi},1.5)
psplot[plotpoints=3000]{0}{2 Pi mul}{sin(x^3/2)}
end{pspicture}
end{document}


enter image description here



Flipped version



documentclass[pstricks]{standalone}
usepackage{pst-plot,pst-calculate}
begin{document}
begin{pspicture}[algebraic](0,-1.5)(pscalculate{2*pi},1.5)
psplot[plotpoints=3000]{0}{2 Pi mul}{sin((x-TwoPi)^3/2)}
end{pspicture}
end{document}


enter image description here






share|improve this answer























  • how can I invert the frequency: first greater frequency and after less frequency.Finaly I should have first short wave, after hight wave. I do not know "the function.
    – RenatoP
    Dec 14 '18 at 7:50










  • cannot compile, thi is th error: ------------------------------------------------------------------------------------------------------- Package xkeyval Error: potpoints' undefined in families ,pstricks,pst-tools,pst-node,pst-arrow,pst-3d,pstricks-add,pst-plot'. See the xkeyval package documentation for explanation. Type H <return> for immediate help I' ve upload pst-calculate and pst-plot Use pdflatex to compile
    – RenatoP
    Dec 14 '18 at 9:07












  • @RenatoP: Compile it with xelatex or latex-dvips-ps2pdf.
    – God Must Be Crazy
    Dec 14 '18 at 12:27
















3














A PSTricks solution only for comparison purposes.



documentclass[pstricks]{standalone}
usepackage{pst-plot,pst-calculate}
begin{document}
begin{pspicture}[algebraic](0,-1.5)(pscalculate{2*pi},1.5)
psplot[plotpoints=3000]{0}{2 Pi mul}{sin(x^3/2)}
end{pspicture}
end{document}


enter image description here



Flipped version



documentclass[pstricks]{standalone}
usepackage{pst-plot,pst-calculate}
begin{document}
begin{pspicture}[algebraic](0,-1.5)(pscalculate{2*pi},1.5)
psplot[plotpoints=3000]{0}{2 Pi mul}{sin((x-TwoPi)^3/2)}
end{pspicture}
end{document}


enter image description here






share|improve this answer























  • how can I invert the frequency: first greater frequency and after less frequency.Finaly I should have first short wave, after hight wave. I do not know "the function.
    – RenatoP
    Dec 14 '18 at 7:50










  • cannot compile, thi is th error: ------------------------------------------------------------------------------------------------------- Package xkeyval Error: potpoints' undefined in families ,pstricks,pst-tools,pst-node,pst-arrow,pst-3d,pstricks-add,pst-plot'. See the xkeyval package documentation for explanation. Type H <return> for immediate help I' ve upload pst-calculate and pst-plot Use pdflatex to compile
    – RenatoP
    Dec 14 '18 at 9:07












  • @RenatoP: Compile it with xelatex or latex-dvips-ps2pdf.
    – God Must Be Crazy
    Dec 14 '18 at 12:27














3












3








3






A PSTricks solution only for comparison purposes.



documentclass[pstricks]{standalone}
usepackage{pst-plot,pst-calculate}
begin{document}
begin{pspicture}[algebraic](0,-1.5)(pscalculate{2*pi},1.5)
psplot[plotpoints=3000]{0}{2 Pi mul}{sin(x^3/2)}
end{pspicture}
end{document}


enter image description here



Flipped version



documentclass[pstricks]{standalone}
usepackage{pst-plot,pst-calculate}
begin{document}
begin{pspicture}[algebraic](0,-1.5)(pscalculate{2*pi},1.5)
psplot[plotpoints=3000]{0}{2 Pi mul}{sin((x-TwoPi)^3/2)}
end{pspicture}
end{document}


enter image description here






share|improve this answer














A PSTricks solution only for comparison purposes.



documentclass[pstricks]{standalone}
usepackage{pst-plot,pst-calculate}
begin{document}
begin{pspicture}[algebraic](0,-1.5)(pscalculate{2*pi},1.5)
psplot[plotpoints=3000]{0}{2 Pi mul}{sin(x^3/2)}
end{pspicture}
end{document}


enter image description here



Flipped version



documentclass[pstricks]{standalone}
usepackage{pst-plot,pst-calculate}
begin{document}
begin{pspicture}[algebraic](0,-1.5)(pscalculate{2*pi},1.5)
psplot[plotpoints=3000]{0}{2 Pi mul}{sin((x-TwoPi)^3/2)}
end{pspicture}
end{document}


enter image description here







share|improve this answer














share|improve this answer



share|improve this answer








edited Dec 14 '18 at 7:57

























answered Dec 13 '18 at 19:16









God Must Be Crazy

5,64011039




5,64011039












  • how can I invert the frequency: first greater frequency and after less frequency.Finaly I should have first short wave, after hight wave. I do not know "the function.
    – RenatoP
    Dec 14 '18 at 7:50










  • cannot compile, thi is th error: ------------------------------------------------------------------------------------------------------- Package xkeyval Error: potpoints' undefined in families ,pstricks,pst-tools,pst-node,pst-arrow,pst-3d,pstricks-add,pst-plot'. See the xkeyval package documentation for explanation. Type H <return> for immediate help I' ve upload pst-calculate and pst-plot Use pdflatex to compile
    – RenatoP
    Dec 14 '18 at 9:07












  • @RenatoP: Compile it with xelatex or latex-dvips-ps2pdf.
    – God Must Be Crazy
    Dec 14 '18 at 12:27


















  • how can I invert the frequency: first greater frequency and after less frequency.Finaly I should have first short wave, after hight wave. I do not know "the function.
    – RenatoP
    Dec 14 '18 at 7:50










  • cannot compile, thi is th error: ------------------------------------------------------------------------------------------------------- Package xkeyval Error: potpoints' undefined in families ,pstricks,pst-tools,pst-node,pst-arrow,pst-3d,pstricks-add,pst-plot'. See the xkeyval package documentation for explanation. Type H <return> for immediate help I' ve upload pst-calculate and pst-plot Use pdflatex to compile
    – RenatoP
    Dec 14 '18 at 9:07












  • @RenatoP: Compile it with xelatex or latex-dvips-ps2pdf.
    – God Must Be Crazy
    Dec 14 '18 at 12:27
















how can I invert the frequency: first greater frequency and after less frequency.Finaly I should have first short wave, after hight wave. I do not know "the function.
– RenatoP
Dec 14 '18 at 7:50




how can I invert the frequency: first greater frequency and after less frequency.Finaly I should have first short wave, after hight wave. I do not know "the function.
– RenatoP
Dec 14 '18 at 7:50












cannot compile, thi is th error: ------------------------------------------------------------------------------------------------------- Package xkeyval Error: potpoints' undefined in families ,pstricks,pst-tools,pst-node,pst-arrow,pst-3d,pstricks-add,pst-plot'. See the xkeyval package documentation for explanation. Type H <return> for immediate help I' ve upload pst-calculate and pst-plot Use pdflatex to compile
– RenatoP
Dec 14 '18 at 9:07






cannot compile, thi is th error: ------------------------------------------------------------------------------------------------------- Package xkeyval Error: potpoints' undefined in families ,pstricks,pst-tools,pst-node,pst-arrow,pst-3d,pstricks-add,pst-plot'. See the xkeyval package documentation for explanation. Type H <return> for immediate help I' ve upload pst-calculate and pst-plot Use pdflatex to compile
– RenatoP
Dec 14 '18 at 9:07














@RenatoP: Compile it with xelatex or latex-dvips-ps2pdf.
– God Must Be Crazy
Dec 14 '18 at 12:27




@RenatoP: Compile it with xelatex or latex-dvips-ps2pdf.
– God Must Be Crazy
Dec 14 '18 at 12:27


















draft saved

draft discarded




















































Thanks for contributing an answer to TeX - LaTeX Stack Exchange!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.





Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


Please pay close attention to the following guidance:


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f405048%2fsin-wave-with-changing-frequency%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Biblatex bibliography style without URLs when DOI exists (in Overleaf with Zotero bibliography)

How to change which sound is reproduced for terminal bell?

Title Spacing in Bjornstrup Chapter, Removing Chapter Number From Contents