Re: how to make lines wider in legend
- To: mathgroup at smc.vnet.net
- Subject: [mg107079] Re: how to make lines wider in legend
- From: Jan Baetens <jan.baetens at ugent.be>
- Date: Tue, 2 Feb 2010 03:28:14 -0500 (EST)
- References: <hk6ct2$lvc$1@smc.vnet.net>
Hi Philip,
From my experience I must say that the Legend-function has quite some
shortcomings, though you get round this by wrapping a plot function,
such as Listplot for visualizing your data, together with a Graphics
doing the Legend, in a Show.
Something like this should work:
Show[ListPlot[data],
Graphics[{*everything you need for a legend, such Polygon for framed
legend, Text for the labels en Line or Point for showing the appropriate
data labels next to the Point or Line*}]]
By using Graphics for creating a legend you can embrace the power of the
Graphics function for making nice legends!
Succes,
Jan
On 2/1/2010 12:11 PM, Philip R. Schiff wrote:
> Dear MathGroup,
>
> Basically, I have legends that look like
>
> - - - plot 1
> ___ plot 2
>
> but I want them to be
>
> - - - - - - plot 1
> ______ plot 2
>
> I see that this question was posed in 2001 and answered, but I don't really
> understand the solution. Can it be explained for this bozo? I'm good with
> structural programming but don't always follow the more esoteric Mathematica
> commands (usually the "Apply") that he uses to generate the style table.
> But all that aside, I figure out where in the solution
> http://forums.wolfram.com/mathgroup/archive/2001/Sep/msg00012.html
> that he actually makes the lines to be wider. Ideally, this could become a
> feature in a future version...
>
> Best,
> Phil
>
>
>
>
--
ir. Jan Baetens
Ghent University
Department of Applied Mathematics, Biometrics and Process Control
Coupure Links 653
B-9000 Gent
Belgium
jan.baetens at UGent.be
http://users.ugent.be/~jbaetens/
tel: ++32 (0)9 264 59 31
fax: ++32 (0)9 264 62 20