RE: [heur] Scientific Notation on Y-axis of ListPlots
- To: mathgroup at smc.vnet.net
- Subject: [mg68624] RE: [heur] [mg68594] Scientific Notation on Y-axis of ListPlots
- From: "Jaccard Florian" <Florian.Jaccard at he-arc.ch>
- Date: Sun, 13 Aug 2006 05:52:35 -0400 (EDT)
- Sender: owner-wri-mathgroup at wolfram.com
Hello ! Yes, there is. For example : In[92]:= data = Table[Random[Real, {-1.5/10^5, 5/10^6}], {20}] In[93]:= des = ListPlot[data]; In[94]:= Clear[a, b, c, d] In[95]:= tic = (Ticks /. AbsoluteOptions[des])[[2]] In[96]:= tic2 = tic /. {(a_)?NumericQ, (b_)?NumericQ, c_, d_} -> {a, ScientificForm[b], c, d}; In[97]:= ListPlot[data, Ticks -> {Automatic, tic2}] Regards Florian Jaccard florian.jaccard at he-arc.ch -----Message d'origine----- De : Joshua Feinberg [mailto:jfei05 at esc.cam.ac.uk] Envoyé : vendredi, 11. août 2006 10:40 À : mathgroup at smc.vnet.net Objet : [heur] [mg68594] Scientific Notation on Y-axis of ListPlots Dear All, I am plotting data points with y-values between -1.5x10^-5 and 5x10^-6. Mathematica labels the lowermost y-axis tick as "-0.000015" and the uppermost y-axis tick at "5 x 10^-5". Is there any way to ask Mathematica to label all of the y-axis ticks using only scientific notation (rather than a mixture of scientific notation and decimal form)? Thanks in advance for any help you can offer. Joshua Feinberg