       Re: Combining Plots with Different Ordinate Axes in Mathematica

• To: mathgroup at smc.vnet.net
• Subject: [mg95110] Re: Combining Plots with Different Ordinate Axes in Mathematica
• From: dh <dh at metrohm.com>
• Date: Wed, 7 Jan 2009 04:05:04 -0500 (EST)
• References: <gjfjv3\$dav\$1@smc.vnet.net>

```
Hi Buz,

you may e.g. use Frame and give the tick marks explicitely. E.g.:

f1[x_] := Exp[-x^2];

f2[x_] := Exp[-4 (x - 1)^2];

Plot[{f1[x], f2[x + 1]}, {x, -1, 1}, Frame -> True,

FrameTicks -> {{Automatic, None}, {Range[-1, 1, .5],

Table[{x, x + 1}, {x, -1, 1, .5}]}}]

hope this helps, Daniel

Buz Barstow wrote:

> Hi All,

>

> I'd like to combine two plots in Mathematica that have different x

> axes, but have similar y axes.

>

> In the first plot, the x range runs from 0 to 1.9, while in the second

> plot the x values run from 2.5 to 3.5.

>

> I'd like to combine these plots together, and have one set of x values

> displayed on the top edge of a frame, and the other set of x values

> displayed on the bottom edge of the frame.

>

> Both plots can have a common y axis.

>

> Thanks! and all the best,

>

> --Buz

>

>

>

```

• Prev by Date: Re: GroebnerBasis never finishes
• Next by Date: Re: Fourier[TriangleWave]
• Previous by thread: Re: GroebnerBasis never finishes
• Next by thread: Re: Combining Plots with Different Ordinate Axes in Mathematica