Hi Christian,

I have to provide it for the right axis.

The preamble command \pgfplotsset{compat=1.3} appears to work only for 
the left axis.

I have now something like this:


\begin{tikzpicture}

\pgfplotstableread{daten.txt}\data
        
\begin{axis}[
   xlabel={...},
   ylabel={...},
   grid=both,
   scale only axis,
   axis y line=left,
   height=5cm,
]
                                
   \addplot table[x=Time, y=Data1] {\data};
\end{axis}
        
\begin{axis}[
   ylabel={...},
   grid=both,
   xmin=0, xmax=2,
   ymin=-500, ymax=500,
   ytick={-500,-250,0,250,500},
   scale only axis,
   axis y line=right,
   axis x line=none,
   height=5cm,
   compat=1.3,
]

   \addplot table[x=Time, y=Data2] {\data};
\end{axis}      
        
\end{tikzpicture}


Thank you


Holger

Am 25.07.2011 08:25, schrieb Christian Feuersaenger:
> Hi Holger,
>
> it should work by providing the compat=1.3 key as optional argument to
> the left axis, i.e.
> \begin{axis}[compat=1.3]
> ...
>
> Does that help?
>
> Best regards
>
> Christian
>
> Am 24.07.2011 18:14, schrieb Holger Maune:
>> Hi,
>>
>> is it possible that the key "\pgfplotsset{compat=1.3}" only works for
>> the left axis. In a two axes environment I had to use "every axis y
>> label/.append style={anchor=near ticklabel}" to have the right distance
>> between ticks and label.
>>
>>
>>
>> Thank You
>>
>>
>> Best Regards,
>>
>>
>> Holger
>>
>>
>> ------------------------------------------------------------------------------
>> Magic Quadrant for Content-Aware Data Loss Prevention
>> Research study explores the data loss prevention market. Includes in-depth
>> analysis on the changes within the DLP market, and the criteria used to
>> evaluate the strengths and weaknesses of these DLP solutions.
>> http://www.accelacomm.com/jaw/sfnl/114/51385063/
>> _______________________________________________
>> Pgfplots-features mailing list
>> Pgfplots-features@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/pgfplots-features
>
>
> ------------------------------------------------------------------------------
> Storage Efficiency Calculator
> This modeling tool is based on patent-pending intellectual property that
> has been used successfully in hundreds of IBM storage optimization engage-
> ments, worldwide.  Store less, Store more with what you own, Move data to
> the right place. Try It Now! http://www.accelacomm.com/jaw/sfnl/114/51427378/


------------------------------------------------------------------------------
Storage Efficiency Calculator
This modeling tool is based on patent-pending intellectual property that
has been used successfully in hundreds of IBM storage optimization engage-
ments, worldwide.  Store less, Store more with what you own, Move data to 
the right place. Try It Now! http://www.accelacomm.com/jaw/sfnl/114/51427378/
_______________________________________________
Pgfplots-features mailing list
Pgfplots-features@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pgfplots-features

Reply via email to