Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2011

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: Scientific Number Format on Frame

  • To: mathgroup at smc.vnet.net
  • Subject: [mg116669] Re: Scientific Number Format on Frame
  • From: Alexei Boulbitch <alexei.boulbitch at iee.lu>
  • Date: Wed, 23 Feb 2011 05:25:21 -0500 (EST)

Dear Luigi,

This may be what you want:


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, 6}],
    Automatic, Automatic, None}, PlotRange ->  {0, 100}]


Alternatively you may want this:


ListLogLinearPlot[data, Frame ->  True,
  FrameTicks ->  {Table[{10^-n,
      ScientificForm[1.*10^(-n), NumberFormat ->  (10^#3&)]}, {n, 6}],
    None, Automatic}, PlotRange ->  {0, 100}]


But do not ask my, why.

Have fun, Alexei







Dear all,
  I would like to plot my data with the option Frame->True and use a
scientific number format for the x-axis.
This is what I have got:


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, 6}],
    Automatic}, PlotRange ->  {0, 100}]

However, I would like to have the numbers only on the bottom x-axis. I
cannot do it without messing up the number format.
Any help?

Thanks, L

-- 
Alexei Boulbitch, Dr. habil.
Senior Scientist
Material Development

IEE S.A.
ZAE Weiergewan
11, rue Edmond Reuter
L-5326 CONTERN
Luxembourg

Tel: +352 2454 2566
Fax: +352 2454 3566
Mobile: +49 (0) 151 52 40 66 44

e-mail: alexei.boulbitch at iee.lu

www.iee.lu

--

This e-mail may contain trade secrets or privileged, undisclosed or
otherwise confidential information. If you are not the intended
recipient and have received this e-mail in error, you are hereby
notified that any review, copying or distribution of it is strictly
prohibited. Please inform us immediately and destroy the original
transmittal from your system. Thank you for your co-operation.



  • Prev by Date: How to local files on ParallelKernels
  • Next by Date: Re: Rational[a,b] vs Rational[1,2]
  • Previous by thread: Re: Scientific Number Format on Frame
  • Next by thread: outputting C code