Graphics, Figures & TablesTikZ / LaTeX problem for ticks labels on axis in plot

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
drgz
Posts: 44
Joined: Sat Apr 18, 2009 8:40 pm

TikZ / LaTeX problem for ticks labels on axis in plot

Post by drgz »

Not sure whether this is a "problem" related to TikZ, or if it's LaTeX on it's own that makes it this way.

In the PDF I've attached I've plotted four plots where the data is extracted from MATLAB.

The thing that bothers me is that the y-ticks are not consistent - is there any way to make ALL of the ticks to be on a purely decimal form or what to call it, and not expressed as a power of ten?

The "preamble" of the TikZ-file looks like

Code: Select all

\begin{tikzpicture}
\begin{axis}[
scale only axis,
width=2in,
height=2.5in,
xmin=0, xmax=10,
ymin=-0.2, ymax=0.15,
axis on top,
legend entries={1},
legend style={nodes=right}]

\addplot[
color=blue,
solid
]
In the main LaTeX-file the preamble looks like this

Code: Select all

\usepackage[T1]{fontenc}
\usepackage{amsmath,amssymb,amsfonts}
\usepackage{graphicx}
\usepackage[obeyall]{siunitx}
\usepackage{subfig}
\usepackage{tikz,pgfplots,pgf}
\usepackage{circuitikz}
\usetikzlibrary{arrows}
\usetikzlibrary{plotmarks}
Hope someone can help me out :)
Attachments
test.pdf
(95.29 KiB) Downloaded 346 times

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

drgz
Posts: 44
Joined: Sat Apr 18, 2009 8:40 pm

Re: TikZ / LaTeX problem for ticks labels on axis in plot

Post by drgz »

Funny enough I found the solution in this thread:

http://www.latex-community.org/forum/vi ... 54&start=0


So problem solved. :)
Post Reply