Error message
- To: mathgroup at smc.vnet.net
- Subject: [mg77849] Error message
- From: Robert Pigeon <robert.pigeon at videotron.ca>
- Date: Mon, 18 Jun 2007 06:59:25 -0400 (EDT)
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