Re: Graphics--Need Help: How to show legends for graphics under Show Command?
- To: mathgroup at smc.vnet.net
- Subject: [mg71274] Re: Graphics--Need Help: How to show legends for graphics under Show Command?
- From: "dimitris" <dimmechan at yahoo.com>
- Date: Sun, 12 Nov 2006 06:48:58 -0500 (EST)
- References: <ej43jg$rc4$1@smc.vnet.net>
Something like the following? Plot[{Cos[x], Sin[x]}, {x, -Pi/2, Pi/2}, PlotStyle -> {Hue[0.6], Hue[0.8]}, Frame -> {True, True, False, False}, Axes -> False, PlotLegend -> TraditionalForm /@ {Cos[x], Sin[x]}, LegendShadow -> None, LegendPosition -> {0.4, -0.25}, LegendSize -> {0.3, 0.3}, ImageSize -> {500, 400}, TextStyle -> {FontSize -> 16, FontFamily -> "Times"}, PlotLabel -> "a basic plot\n", FrameLabel -> {"x", "f(x)"}] Execute the following command and start...reading about plotting. FrontEndExecute[{HelpBrowserLookup["MainBook", "1.9"]}] Here is also some useful links for ploting basics http://library.wolfram.com/infocenter/Conferences/181/ (*intensive*) http://library.wolfram.com/infocenter/Conferences/179/ (*elementary*) Also highly recomended is to download the tutorial of WRI (technical notes) from here http://library.wolfram.com/infocenter/TechNotes/263/ Regards Dimitris abdou.oumaima at hotmail.com wrote: > Hello MathGroup, > > I'm triying to show legend to all my graphics functions but still unable to do it. Hereby a sample of my code: > > << Graphics`Legend` > pp = Plot[Sin[x], {x, -Pi/2, Pi/2}, DisplayFunction -> Identity, PlotStyle -> Hue[0.6]]; > pm = Plot[Cos[x], {x, Pi/2, 3 Pi/2}, DisplayFunction -> Identity, PlotStyle -> Hue[0.8]]; > Show[{pp, pm}, DisplayFunction -> $DisplayFunction]; > ShowLegend[%, Sin, Cos] > > How can I show legends or labels for all my graphics please. For Cosinus Function put "Cos (x) " and Sinus function graphic put "Sin (x) ". > > Any suggestion will veryyyyyyyyyyy welcome! > > Cheers. > Lian. > (http://lian.blog-center.com/) > > Link to the forum page for this post: > http://www.mathematica-users.org/webMathematica/wiki/wiki.jsp?pageName=Special:Forum_ViewTopic&pid=15268#p15268 > Posted through http://www.mathematica-users.org [[postId=15268]]