Multiple plots with different scales in one graph.

<p>Is there a way to plot a single graph with multiple functions, where I can set a different scale for each function?</p>
<p>I want to get something similar to this:</p>
<p><a href="http://www.mapleprimes.com/viewfile/2818"><img alt="" src="http://www.mapleprimes.com/scripts/image.php?image=http://www.mapleprimes.com/files/9471_plot.png&amp;width=300&amp;height=300" /></a></p>
<p>I can plot multiple functions in one graph with display(); but it is the multiple scales part that's giving me a headache...</p>
<p>&nbsp;</p>
<p>Thanks</p>
<p>Thomas</p>

Doug Meade's picture

plots[dualaxisplot]

One of the new features in Maple 12 is the ability to create plots with two different scales. Here are three examples from ?plots[dualaxisplot]. Note that the second one is an animation. Very nice, even though I'm not sure these plots have a whole lot of meaing in and of themselves.

dualaxisplot(plot(x^2, x = 0 .. 10, labels = [x, x^2], legend = x^2), plot(x^3, x = 0 .. 10, color = blue, labels = [x, x^3], legend = x^3));

dualaxisplot(animate(plot, [A*x^3, color = blue, labels = [x, x^3]], A = 0 .. 1), plot(x^2, labels = [x, x^2]));

dualaxisplot(inequal({x-y <= 1, 0 < x+y}, x = -3 .. 3, y = -3 .. 3, optionsexcluded = (color = white)), conformal(z^2, z = 0 .. 2+2*I));

I hope this is helpful.

Doug

---------------------------------------------------------------------
Douglas B. Meade  <><
Math, USC, Columbia, SC 29208  E-mail: mailto:meade@math.sc.edu       
Phone:  (803) 777-6183         URL:    http://www.math.sc.ed

Very helpful!

Very helpful! Thanks.

Thomas

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
}