RE: ShowLegend - Re: Error message
- To: mathgroup at smc.vnet.net
- Subject: [mg78709] RE: ShowLegend - Re: [mg77849] Error message
- From: Robert Pigeon <robert.pigeon at videotron.ca>
- Date: Sat, 7 Jul 2007 06:07:25 -0400 (EDT)
- References: <OFDE436ED1.658C7977-ONC1257310.0054500A@icos.be>
Hello Maarten, You are right, no one answered my message. I did not find a solution to it. Mind you, I do get an output that is correct so I just ignore the error message, not really good but I cannot find a better solution. Maybe this time someone will try to answer or find a solution. Robert PS: maybe if you post your problem, it might trigger someone! -----Original Message----- From: Maarten van der Burgt [mailto:maarten.vanderburgt at icos.be] Sent: July-06-07 11:23 To: Robert Pigeon Cc: mathgroup at smc.vnet.net Subject: [mg78709] ShowLegend - Re: [mg77849] Error message Dear Robert, I did not find any replies to this message. Did you find a solution? I would be interested to hear about it since I came across the same problem this afternoon. Thanks, Maarten van der Burgt Robert Pigeon <robert.pigeon@vid To: mathgroup at smc.vnet.net eotron.ca> cc: Subject: [mg77849] Error message 18/06/2007 12:59 Good day all, Could you help me understand the error message I get when evaluating the following notebook ? ---------------------------------------------------------------------------- Needs["PlotLegends`"] cf := 1.33 / Sqrt[re] cft := 0.0306 / (re)^(1/7) cm := cft =96 (2924 / re) for re >= 10^6 ShowLegend[ LogLogPlot[{cf,cft,cm},{re,104,107}, PlotRange=AE{{104,107},{0.0003,0.02}}, PlotLabel=AE"Skin friction coefficient vs Re", PlotStyle=AE{Blue,Red,{Purple,Dashed}}, Frame=AETrue, FrameLabel=AE{"Re","Skin friction coefficient CF"}, GridLines=AE{Automatic,Automatic}, BaseStyle=AE{FontSize=AE12,FontWeight=AE"Bold"}, ImageSize=AE600], { {{Graphics[{Blue,Line[{{0,0},{5,0}}]}],"=C9coulement laminaire"}, {Graphics[{Red,Line[{{0,0},{5,0}}]}],"=C9coulement turbulent"},{Graphics[{Directive[Purple,Dashed],Line[{{0,0},{5,0}}]}],"=C9 coulement mixte"}}, LegendSize=AE{0.7,0.2}, LegendPosition=AE{0,-0.85}, BaseStyle=AE{FontSize=AE12,FontWeight=AE"Bold"} } ] When I run this I get the following error message: Ticks::ticks: (<<1>>) is not a valid tick specification. But I am not using Ticks explicitly. If I add Ticks I get the same error. Now, if I change the command and not use ShowLegend then everything is correct. Or if I change LogLogPlot to just Plot, I do not get the error message and, in both cases the graph is correct. It seems that the legend position is confused with the LogLogPlot command. Any idea ? Thanks for your help, Robert Robert Pigeon