Re: Scientific Notation in ListPlot Axes
- To: mathgroup at smc.vnet.net
- Subject: [mg47367] Re: Scientific Notation in ListPlot Axes
- From: bobhanlon at aol.com (Bob Hanlon)
- Date: Wed, 7 Apr 2004 03:16:25 -0400 (EDT)
- References: <c4u20u$9ak$1@smc.vnet.net>
- Sender: owner-wri-mathgroup at wolfram.com
data={{10^-6,72},{10^-5,60},{10^-4,45}, {10^-3,31},{10^-2,33},{10^-1,32}}; Needs["Graphics`Graphics`"]; LogLinearListPlot[data,Ticks->{Table[ {10^-n,ScientificForm[1.*10^(-n), NumberFormat->(10^#3&)]},{n,6}], Automatic},PlotRange->{0,100}]; However, it is difficult to see the exponent on the labels. You could just use the exponents. LogLinearListPlot[data, Ticks->{Table[{10^-n,-n},{n,6}],Automatic}, PlotRange->{0,100}, AxesLabel->{10^x,None}]; Bob Hanlon In article <c4u20u$9ak$1 at smc.vnet.net>, pspicer at fuse.net (Patrick Spicer) wrote: << 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}]