MathGroup Archive 2006

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

Search the Archive

RE: Several functions in a single 2D-plot


You can use the Plot statement with a list of functions.

Plot[{function1, function2, function3}, {x, min, max},
  PlotStyle -> {style1, style2, style3}];

That uses the same domain for all three functions. If you want different
domains you could make separate plots and then combine then with
DisplayTogether from the Graphics`Graphics` standard package.

If you want further customization you could try the DrawGraphics package
from my web site.

David Park
djmp at

From: Vicent [mailto:vginer at]
To: mathgroup at

Hi, everyone!

I am new to Mathematica, and I have a quick question that will be very
easy for you, I guess.

How can I plot several functions within the same 2D graphic?

For example, I want to draw the PDF of 3 continuous statistical
distributions (I mean, 3 functions), but put together into the same 2D

Thank you in advance!


  • Prev by Date: Re: calculate Recurrence Equations
  • Next by Date: Re: FileNames subdirectory count discrepancy
  • Previous by thread: Re: Several functions in a single 2D-plot
  • Next by thread: Re: Several functions in a single 2D-plot