supposed, you have got your data points in a nice logarithmic sampling,...
In[5]:=
flist = Table[With[{x = 2^t}, {x, x^5}], {t, 0, Log[2, 100.], Log[2,
100.]/20}]
...you may hack, combining a MultipleListPlot of the logarithms of this
list...
In[4]:= << Graphics`MultipleListPlot`
In[12]:=
gx = MultipleListPlot[Log[10, flist], SymbolShape -> {PlotSymbol[Box]},
SymbolStyle -> {Hue[0]}, PlotRange -> All, PlotJoined -> True]
...with an empty LogLogPlot
In[1]:= << Graphics`Graphics`
In[13]:=
gblank = LogLogPlot[.1 &[x], {x, 1, 100}, PlotRange -> {All, {1, 10^10}}]
In[14]:= Show[gblank, gx]
There is however a more educated way to use the tick function from
Graphics`Grahics` directly with MultipleListPlot:
In[3]:= ?LogScale
Now get the (logarithmic) ranges
In[6]:= Transpose[Log[10, flist[[{1, -1}]]]]
Out[6]= {{0, 2.}, {0, 10.}}
In[7]:= tt = LogScale @@@ %
...and plot the logarithms:
In[9]:=
g = MultipleListPlot[Log[10, flist],
Ticks -> LogScale @@@ Transpose[Log[10, flist[[{1, -1}]]]],
SymbolShape -> {PlotSymbol[Box, 3]}, SymbolStyle -> {Hue[2/3]},
PlotStyle -> {Hue[2/3]}, PlotJoined -> True]
--
Hartmut
One approach would be to take the logarithm of all the data yourself and do
a regular MultipleListPlot. You would have to fiddle with the Ticks options
to get the tick labels that you want, but it is possible.
--
Curt Fischer
js
--
Joshua A. Solomon
http://www.staff.city.ac.uk/~solomon
On 11/12/03 10:41 am, in article br9hlf$d09$1...@smc.vnet.net, "Nathan Moore"
On Thu, 11 Dec 2003, Wolf, Hartmut wrote:
>
> >-----Original Message-----
> >From: Nathan Moore [mailto:nmo...@physics.umn.edu]
> >Sent: Thursday, December 11, 2003 11:28 AM
> >To: math...@smc.vnet.net
> >Subject: log-log plot with error bars, different data markers
> >
> >
> >That standard way that Mathematica allows one to plot with different
> >data markers (open circles, triangles etc) is with the command
> >"MulltipleListPlot". This is also the command that allows one to
> >plot with error bars. Is there a way to have the scale of such a plot
> >to be log-log rather than linear style? I don't see this as
> >an option.
> >
> >
> That standard way that Mathematica allows one to plot with different
> data markers (open circles, triangles etc) is with the command
> "MulltipleListPlot". This is also the command that allows one to
> plot with error bars. Is there a way to have the scale of
> such a plot
> to be log-log rather than linear style? I don't see this as
> an option.
Yep.
MultipleListPlot[Log10[yourdata], Ticks->{LogScale, LogScale}]
Regards,
Dave.
==========================================
Dr. David Annetts
EM Modelling Analyst
CSIRO DEM Tel: +612 9490 5416
North Ryde Fax: +612 9490 5467
Australia David....@csiro.au
===========================================
> That standard way that Mathematica allows one to plot with different
> data markers (open circles, triangles etc) is with the command
> "MulltipleListPlot". This is also the command that allows one to
> plot with error bars. Is there a way to have the scale of such a plot
> to be log-log rather than linear style?
Yes and no. Yes, it is possible to create log-log plots with different symbols and error bars. But no, doing so isn't an option of one of the standard packages so as to be easily automated. You will most likely find you need to use some of Mathematica's graphics primitives to achieve what you want.
If I were to do this with the standard packages, I might try creating separate log-log plots using PlotStyle for each data set I wanted plotted with a different symbol and combine them with DisplayTogether. To add error bars, I might use Epilog to add lines to the plots.
Another approach would be to use the package DrawGraphics David Park created. That package allows each of the elements of a plot to be treated almost like a graphics primitive. Indvidual elements can then be easily combined to create a final plot not easily done with the routines in the packages that come with Mathematica.
--
To reply via email subtract one hundred and nine