Re: Frameticks and ListLogLinearPlot

• To: mathgroup at smc.vnet.net
• Subject: [mg124016] Re: Frameticks and ListLogLinearPlot
• From: Szabolcs Horvát <szhorvat at gmail.com>
• Date: Thu, 5 Jan 2012 06:00:14 -0500 (EST)
• Delivered-to: l-mathgroup@mail-archive0.wolfram.com
• References: <je18hn\$3eo\$1@smc.vnet.net>

```On 2012.01.04. 11:09, Luigi B wrote:
> Dear all,
>   I have the problem of adding ticks to a ListLogLinearPlot.
> I use the code:
>
> data = {{10^(-6), 72}, {10^(-5), 60}, {10^(-4), 45}, {10^(-3),
>       31}, {10^(-2), 33}, {10^(-1), 32}};
>
>
> ListLogLinearPlot[data, Frame ->   True,
>    FrameTicks ->   {Table[{10^-n,
>        ScientificForm[1.*10^(-n), NumberFormat ->   (10^#3&)]}, {n,
> -1,6}],
>      Automatic, Automatic, None}, PlotRange ->   {0, 100}]
>
>
> this works well as long as the mantissa of the tick is different than
> 0. However, when this happens it does not work any more.
>
> Could you pls help me out? Or suggest another code to do the same?
>

Hi Luigi,

To show 10^0 verbatim, a workaround is using Superscript[]

Table[{10^-n, Superscript[10, -n]}, {n, -1, 6}]

Please see several alternative solutions here:

http://stackoverflow.com/questions/7860400/exponential-form-of-tick-marks-for-log-plot-in-mathematica

--
Szabolcs Horvát
Mma QA site proposal: http://area51.stackexchange.com/proposals/37304

```

• Prev by Date: NDSolve and "periodic" boundary conditions
• Next by Date: Re: Plotting after integrating the solution of system of differential equations
• Previous by thread: Re: Frameticks and ListLogLinearPlot
• Next by thread: Why does the Front End freeze when using a TCPIP-mode connection with the kernel?