1
$\begingroup$

I have the following function to plot

F[x_] := 0.00150614 Sqrt[1/x]

I know Mathematica plots in a format

Plot[F[x], {xmin, xmax}]

but I would like to plot the other way around:

Plot[F[x], {xmax, xmin}]

How can I do this?

$\endgroup$
4
  • $\begingroup$ What exactly are you trying to do? Normally {x, upperLimit, lowerLimit} also works... But the plot is the same... $\endgroup$ – Kay Apr 15 '16 at 19:05
  • 6
    $\begingroup$ ave you seen this? $\endgroup$ – BlacKow Apr 15 '16 at 19:09
  • $\begingroup$ I am trying to visualize the propagation of electromagnetic wave towards the conical tip along z-axis. As I proceed toward the tip my radius decreases. So R[z]. I want as z->0, R->0 and not z->0, R->Ro which is when you take the origin at the base of the cone. So all I need plotting my function from z-max to 0. $\endgroup$ – hpaudel Apr 15 '16 at 19:14
  • 2
    $\begingroup$ ParametricPlot[{x - 10, F[x]}, {x, 0, 10}, AspectRatio -> 1] ? $\endgroup$ – george2079 Apr 15 '16 at 19:47
5
$\begingroup$

There is a way with ListPlot. You can always generate a list with your function and use with ListPlot or ListLinePlot.

F[x_] := 0.00150614 Sqrt[1/x]
xmin = 0.01; xmax = 1.0;
data = {#, F[#]} & /@ Range[xmin, xmax, 0.01];
ListLinePlot[data, ScalingFunctions -> {"Reverse", Identity}, AxesOrigin -> {xmax, 0}]

enter image description here

$\endgroup$
1
$\begingroup$

One simple thing is to "reverse" the argument to f. For instance, here is f plotted forwards and backwards:

f[x_] := 0.00150614 Sqrt[1/x];
xmin = 0.25; xmax = 3;
Show[Plot[f[x], {x, xmin, xmax}],
 Plot[f[xmax + xmin - x], {x, xmin, xmax}]]

enter image description here

$\endgroup$

Not the answer you're looking for? Browse other questions tagged or ask your own question.