Re: Adding text at various X,Y locations on Multi-Function Graphs
- To: mathgroup at smc.vnet.net
- Subject: [mg30334] Re: [mg30301] Adding text at various X,Y locations on Multi-Function Graphs
- From: Timothy Stiles <tastiles at students.wisc.edu>
- Date: Sat, 11 Aug 2001 03:39:55 -0400 (EDT)
- References: <200108080533.BAA04397@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
The following web pages give some information on this subject http://support.wolfram.com/mathematica/graphics/decorations/showlegend.html http://support.wolfram.com/mathematica/packages/graphics/showlegendexamples.html For your example, the syntax would be something like ShowLegend[Plot[{Sin[x], Sin[2*x]}, {x, -2 Pi, 2 Pi},PlotStyle->{RGBColor[1,0,0],RGBColor[0,0,1]}], {{{Graphics[{RGBColor[1,0,0],Line[{{0,0},{1,0}}]}], "sin(x)"}, {{{Graphics[{RGBColor[0,0,1],Line[{{0,0},{1,0}}]}], "sin(2 x)"}}} ] Good luck --Tim Stiles Will Cooper wrote: > Hello, > Does anyone know the syntax to enter text at various x,y coordinates into a > multi-function graph, e.g. > > ShowLegend[Plot[{Sin[x], Sin[2*x]}, {x, -2 Pi, 2 Pi}]] > > The syntax in the Help file is not clear at all. > > Thanks, > > Will Cooper.
- References:
- Adding text at various X,Y locations on Multi-Function Graphs
- From: "Will Cooper" <wcooper1@san.rr.com>
- Adding text at various X,Y locations on Multi-Function Graphs