Re: Scientific Notation in ListPlot Axes

• To: mathgroup at smc.vnet.net
• Subject: [mg47385] Re: [mg47336] Scientific Notation in ListPlot Axes
• From: Tomas Garza <tgarza01 at prodigy.net.mx>
• Date: Wed, 7 Apr 2004 03:16:53 -0400 (EDT)
• References: <200404061036.GAA09163@smc.vnet.net>
• Sender: owner-wri-mathgroup at wolfram.com

```One obvious possibility (no doubt, there are much better ones):
In[1]:=
data = {{10^(-6), 72}, {10^(-5), 60}, {10^(-4), 45},
{10^(-3), 31}, {10^(-2), 33}, {10^(-1), 32}};

<< "Graphics`Graphics`"

LogLinearListPlot[data, Ticks ->
{{{10^(-6), "10^-6"}, {10^(-5), "10^-5"},
{10^(-4), "10^-4"}, {10^(-3), "10^-3"},
{10^(-2), "10^-2"}, {10^(-1), "10^-1"}},
Automatic}, PlotRange -> {0, 100}];

I.e., write your tick values as strings using the above correspondence.

Tomas Garza
Mexcio City

----- Original Message -----
From: "Patrick Spicer" <pspicer at fuse.net>
To: mathgroup at smc.vnet.net
Subject: [mg47385] [mg47336] Scientific Notation in ListPlot Axes

> Hi,
>
> I apologize up front for posting a seemingly FAQ...but I searched the
> archives and did not find what I need.
>
> How can I format the axis of a LogLinearListPlot to display tick
> labels as scientific notation without the "1 x " portion?  In other
> words, I'd just like to display the base 10 and superscript exponent.
> Here is an example of a plot whose x-axis I'd like to label in this
> way:
>
> data = {{10^-6,72},{10^-5,60},{10^-4,45},{10^-3,31},{10^-2,33},{10^-1,32}}
> << Graphics`Graphics`
> LogLinearListPlot[data,
> Ticks->{{10^-6,10^-5,10^-4,10^-3,10^-2,10^-1},Automatic},
> PlotRange->{0, 100}]
>
>
> Best regards,
>
> Pat
>
>

```

• Prev by Date: Re: All combinations
• Next by Date: Re: Scientific Notation in ListPlot Axes
• Previous by thread: Scientific Notation in ListPlot Axes
• Next by thread: Re: Scientific Notation in ListPlot Axes