Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #14853 > unrolled thread

Re: problems with FrameTicks

Started byAlexei Boulbitch <Alexei.Boulbitch@iee.lu>
First post2013-06-14 08:51 +0000
Last post2013-06-14 08:51 +0000
Articles 1 — 1 participant

Back to article view | Back to comp.soft-sys.math.mathematica


Contents

  Re: problems with FrameTicks Alexei Boulbitch <Alexei.Boulbitch@iee.lu> - 2013-06-14 08:51 +0000

#14853 — Re: problems with FrameTicks

FromAlexei Boulbitch <Alexei.Boulbitch@iee.lu>
Date2013-06-14 08:51 +0000
SubjectRe: problems with FrameTicks
Message-ID<kpeli6$hsf$1@smc.vnet.net>
Dear All,
 I have problems in getting FrameTicks do what I would like it to do.
The problem is the following:
in plotting

Plot[{3*10^20, 4*10^20}, {x, 0, 105},
 PlotStyle -> Black,
 Filling -> {2 -> {1}},
 FillingStyle -> LightRed,
 Frame -> True,
 Axes -> None,
 FrameLabel -> {"x", None, None, "y"},
 BaseStyle -> {FontSize -> 32, FontFamily -> "Arial"},
 FrameStyle -> Directive[Black, AbsoluteThickness[3]],
 PlotRange -> {All, {0, 6*10^20}},
 PlotRangePadding -> {10, 0},
 FrameTicks -> {{None,
    Table[{n*10^20, n*Superscript[10, 20]}, {n, 1, 6}]}, {Automatic,
    None}}]


I would like to have on the y axis (on the right) nice looking ticks. That =
means:
- starting with "1*10^20" (why does it drop the "1"?)
- with a multiplication symbol in between the prefactor "n" and the "10^20"

thank you in advance, Luigi


Hi, Luigi,

This is slightly different from the answer of Bob Hanlon ():

Plot[{3*10^20, 4*10^20}, {x, 0, 105}, PlotStyle -> Black,
 Filling -> {2 -> {1}}, FillingStyle -> LightRed, Frame -> True,
 Axes -> None, FrameLabel -> {"x", None, None, "y"},
 BaseStyle -> {FontSize -> 32, FontFamily -> "Arial"},
 FrameStyle -> Directive[Black, AbsoluteThickness[3]],
 PlotRange -> {All, {0, 6*10^20}}, PlotRangePadding -> {10, 0},
 FrameTicks -> {{None,
    Table[{n*10^20,
      " " <> ToString[n] <>
       "\[Times]\!\(\*SuperscriptBox[\(10\), \(20\)]\)"}, {n, 1,
      6}]}, {Automatic, None}}, FrameTicksStyle -> Directive[16]]

Try to play with the parameters of the FrameTicksStyle

Have fun, Alexei

Alexei BOULBITCH, Dr., habil.
IEE S.A.
ZAE Weiergewan,
11, rue Edmond Reuter,
L-5326 Contern, LUXEMBOURG

Office phone :  +352-2454-2566
Office fax:       +352-2454-3566
mobile phone:  +49 151 52 40 66 44

e-mail: alexei.boulbitch@iee.lu




[toc] | [standalone]


Back to top | Article view | comp.soft-sys.math.mathematica


csiph-web