Hello,
I'm using pgfplots to draw a figure with four plots using a
semilogy-axis (code below). Everything works perfectly fine. X- and
Y-axis cross at (0,0) and form a box.
---- CODE ----
\begin{tikzpicture}[
/pgfplots/width=0.95\textheight,
/pgfplots/height=\textwidth,
rotate=-90]
\begin{semilogyaxis}[
xlabel={X},
ylabel={Y},
legend columns=4,
xmin=0,
xmax=51,
ymin=0,
ymax=1e6,
minor x tick num=4,
%/pgfplots/axis x line=middle,
%/pgfplots/axis y line=left,
legend style= {at={(0.5,0.02)}, anchor=south}
]
\addplot[no markers, black!30!white, densely dotted] file {A.dat};
\addplot[no markers, loosely dashed] file {B.dat};
\addplot[no markers, black!80!white] file {C.dat};
\addplot[no markers, densely dashed] file {D.dat};
\legend{A, B, C, D}
\end{semilogyaxis}
\end{tikzpicture}
---- CODE END ----
I then added "/pgfplots/axis x line=bottom,/pgfplots/axis y line=left"
to the options of my "semilogyaxis" to get rid of the box. Now the
axes cross at (0,1). 1 is indeed yMin when examing the plotted data,
but not the specified yMin from the axis options. I then tried "axis x
line=center", but the x-axis is still drawn at 10^0=1, not 0 as stated
in the manual. Did I misunterstood something?
Another problem occurs when using "axis x line=center" together with
the "rotate=-90": The figure is moved off to the right side of the
page, the bottom is visible in the page margin. The label for the
y-axis is shown in the top left corner of the page... This doesn't
happen with "bottom" or if I remove the "rotate".
So, is there any way to have a X axis from 0 to 1e6 and a Y axis from
0 to 51 without boxing the plots? Any help is appreciated!
Thanks,
Moritz
------------------------------------------------------------------------------
This SF.net email is sponsored by
Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev
_______________________________________________
Pgfplots-features mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pgfplots-features