Message Boards Message Boards

1
|
4721 Views
|
2 Replies
|
2 Total Likes
View groups...
Share
Share this post:

[?] Plot an asymptote with conditions?

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
2 Replies

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

Thank you Gianluca. I will sleep well tonight.

:)

POSTED BY: Ernesto Espinosa
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract