Mathematica 9 is now available
Services & Resources / Wolfram Forums
MathGroup Archive
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2004

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Two y-axes in one graph

  • To: mathgroup at
  • Subject: [mg52104] Re: [mg52080] Two y-axes in one graph
  • From: yehuda ben-shimol <benshimo at>
  • Date: Thu, 11 Nov 2004 04:52:03 -0500 (EST)
  • References: <>
  • Sender: owner-wri-mathgroup at

You can use Abort[ ]. The print in the following example is for 
demonstration only.
lmaa := Module[



If[i > 3, Print["exit with value ", i];Abort[]],

{i, 1, 5}


Return[{"not from inside"}]




Harry Schmidt wrote:

>   I want to plot two functions in one graph with two y-axes with
>different scales in Mathematica 5.0.1.  I found
>but the suggested function TwoAxisPlot doesn't exist:
>  In[1]:= ?TwoAxisPlot
>          Information::notfound: Symbol TwoAxisPlot not found.
>Do I have to load a package to use it?

  • Prev by Date: Re: Two y-axes in one graph
  • Next by Date: Re: First question
  • Previous by thread: Two y-axes in one graph
  • Next by thread: Re: Two y-axes in one graph