Skip to main content
Post Closed as "Duplicate" by Mr.Wizard
added 267 characters in body
Source Link
Dr. belisarius
  • 116.8k
  • 13
  • 208
  • 466

I want to express the ticks in scientific form. I tried two ways as following

ListLogPlot[Table[{x, 10^x}, {x, -1, 1}], Ticks -> {Automatic, {10^-1, 10^0, 10^1}}] ListLogPlot[Table[{x, 10^x}, {x, -1, 1}], Ticks -> {Automatic, ScientificForm[{10^-1, 10^0, 10^1}]}] 

enter image description here

but they just could not work as you can see; the latter even is wrong.

Why & how?

Edit by @belisarius

Scientific Notation is usually understood as ${1.\times 10^{-2}}$, however the OP wants just ${10^{-2}}$. Solutions for both cases can be found in the answers below.

I want to express the ticks in scientific form. I tried two ways as following

ListLogPlot[Table[{x, 10^x}, {x, -1, 1}], Ticks -> {Automatic, {10^-1, 10^0, 10^1}}] ListLogPlot[Table[{x, 10^x}, {x, -1, 1}], Ticks -> {Automatic, ScientificForm[{10^-1, 10^0, 10^1}]}] 

enter image description here

but they just could not work as you can see; the latter even is wrong.

Why & how?

I want to express the ticks in scientific form. I tried two ways as following

ListLogPlot[Table[{x, 10^x}, {x, -1, 1}], Ticks -> {Automatic, {10^-1, 10^0, 10^1}}] ListLogPlot[Table[{x, 10^x}, {x, -1, 1}], Ticks -> {Automatic, ScientificForm[{10^-1, 10^0, 10^1}]}] 

enter image description here

but they just could not work as you can see; the latter even is wrong.

Why & how?

Edit by @belisarius

Scientific Notation is usually understood as ${1.\times 10^{-2}}$, however the OP wants just ${10^{-2}}$. Solutions for both cases can be found in the answers below.

Tweeted twitter.com/#!/StackMma/status/236521953052217344

I want to express the ticks in scientific form. I tried two ways as following

ListLogPlot[Table[{x, 10^x}, {x, -1, 1}], Ticks -> {Automatic, {10^-1, 10^0, 10^1}}]

ListLogPlot[Table[{x, 10^x}, {x, -1, 1}], Ticks -> {Automatic, ScientificForm[{10^-1, 10^0, 10^1}]}]

ListLogPlot[Table[{x, 10^x}, {x, -1, 1}], Ticks -> {Automatic, {10^-1, 10^0, 10^1}}] ListLogPlot[Table[{x, 10^x}, {x, -1, 1}], Ticks -> {Automatic, ScientificForm[{10^-1, 10^0, 10^1}]}] 

enter image description here

but they just could not work as you can see; the latter even is wrong.

WHYWhy & HOWhow?

I want to express the ticks in scientific form. I tried two ways as following

ListLogPlot[Table[{x, 10^x}, {x, -1, 1}], Ticks -> {Automatic, {10^-1, 10^0, 10^1}}]

ListLogPlot[Table[{x, 10^x}, {x, -1, 1}], Ticks -> {Automatic, ScientificForm[{10^-1, 10^0, 10^1}]}]

enter image description here

but they just could not work as you can see; the latter even is wrong.

WHY & HOW?

I want to express the ticks in scientific form. I tried two ways as following

ListLogPlot[Table[{x, 10^x}, {x, -1, 1}], Ticks -> {Automatic, {10^-1, 10^0, 10^1}}] ListLogPlot[Table[{x, 10^x}, {x, -1, 1}], Ticks -> {Automatic, ScientificForm[{10^-1, 10^0, 10^1}]}] 

enter image description here

but they just could not work as you can see; the latter even is wrong.

Why & how?

Source Link
Mathieu
  • 467
  • 1
  • 4
  • 8

How to express ticks in scientific form?

I want to express the ticks in scientific form. I tried two ways as following

ListLogPlot[Table[{x, 10^x}, {x, -1, 1}], Ticks -> {Automatic, {10^-1, 10^0, 10^1}}]

ListLogPlot[Table[{x, 10^x}, {x, -1, 1}], Ticks -> {Automatic, ScientificForm[{10^-1, 10^0, 10^1}]}]

enter image description here

but they just could not work as you can see; the latter even is wrong.

WHY & HOW?