Plot Legends For Side By Side Graphs
- To: mathgroup at smc.vnet.net
- Subject: [mg123361] Plot Legends For Side By Side Graphs
- From: Brentt <brenttnewman at gmail.com>
- Date: Sat, 3 Dec 2011 04:13:50 -0500 (EST)
- Delivered-to: l-mathgroup@mail-archive0.wolfram.com
Hello, I want to produce a plot legend for two Plots, with the same scale, placed side by side using GraphicsGrid, to export and put in a document. Both graphs the same legend, so I only want one legend for both graphs. I've been using the "PlotLegends" package but it has some constraints I can't figure out how to work around. I want the legend keys to take on the color of the curves automatically. Using the PlotLegend option does this automatically, but it needs to be an option in both plots, so I either duplicate the same legend for both plots, or the scaling of the plot that I generate the legend for is botched if I only generate the legend for one plot. I've tried using the Legend function to generate a legend in order to expor it to a seperate image file to be placed in the document independently. There doesn't seem to be a way to have the keys take on the curve colors automatically, as the PlotLegends option does. Is there a way to produce one legend for two plots without messing up the scaling of the plot, or to use Legend to generate keys that automatically take on the colors of the curves they correspond to?