Message Boards Message Boards

[✓] Plot an asymptote with conditions?

GROUPS:

I want to place several graphs in the same Show with specified range beforehand. With these conditions I can not graph of the defined function within the specified range. There is an asymptote there. What can I do?

f[x_] := (x)/(Sqrt[x^2 - 4]);

miPlot = Plot[f[x], {x, -10, 10}];

asintotai =   Graphics[{Thickness[0.001], Dashed, Line[{{-2, -20}, {-2, 20}}]}];

asintotad =    Graphics[{Thickness[0.001], Dashed, Line[{{2, -20}, {2, 20}}]}];

Show[ miPlot, asintotai, asintotad, PlotRange -> {{-10, 10}, {-20, 20}} ]
Attachments:
POSTED BY: Ernesto Espinosa
Answer
7 months ago

You must give the PlotRange to miPlot. With Show it's too late, the clipping was already done:

miPlot = Plot[f[x], {x, -10, 10}, PlotRange -> All];
POSTED BY: Gianluca Gorni
Answer
7 months ago

Thank you Gianluca. I will sleep well tonight.

:)

POSTED BY: Ernesto Espinosa
Answer
7 months ago

Group Abstract Group Abstract