RE: Multiple scales for Y axis of plot?
- To: mathgroup at smc.vnet.net
- Subject: [mg31108] RE: [mg31094] Multiple scales for Y axis of plot?
- From: David.Annetts at csiro.au
- Date: Wed, 10 Oct 2001 03:43:20 -0400 (EDT)
- Sender: owner-wri-mathgroup at wolfram.com
Hi Cristopher,
> I have a typical multi-expression plot like this:
>
> Plot[ {f1, f2}, {x,a,b}, PlotStyle->{RGBColor[1,0,0], RGBColor[0,0,1]}
> ].
>
> On the Y axis, I want to have a different scale for each of the two
> functions. How can I generate another scaled Y axis adjacent to the
> default one, or in general acheive this sort of thing? I anticipate a
> lengthy process of building up all the graphics primitives,
> but before I
> figure all that out, I'm wondering if there is a reasonably easy way.
It's straightforward (and instructive) if a little messy using a brute-force
generate-separately-an-combine approach. So you may want to check the FAQ.
Provided you have > V3.0, you can have the dirty work done for you using the
function at
http://support.wolfram.com/mathematica/graphics/decorations/twoaxisgraph.htm
l
Regards,
Dave.
--------------------------------------------------------------
David Annetts, EM Modelling Analyst, CSIRO DEM, North Ryde
Tel: (+612) 9490 5416
Fax: (+612) 9490 5467 David.Annetts at dem.csiro.au
Include "usual_disclaimers"
--------------------------------------------------------------