I do not know why that syntax doesn't work, but you can use the syntax of the calc
library. While not exactly the same, it does allow you to place axes relative to other nodes/coordinates. Note that the default anchor
for the axis
is south west
, change that if desirable.
In the code below I used at={($(nodeOne)+(0cm,1.5cm)$)}
. When no anchor for the node is supplied (e.g. nodeOne.west
), the center
anchor is assumed. As you can see, the lower left corner (anchor=south west
) of the axis
is 1.5cm above the center of nodeOne
.
\documentclass{standalone}
\usepackage{pgfplots}
\usetikzlibrary{positioning,calc}
\pagecolor{yellow!15}
\begin{document}
\begin{tikzpicture}
\tikzset{
nn/.style={rectangle,draw,minimum width=4cm,minimum height=2cm,line width=1pt,inner sep=0pt},
ni/.style={rectangle,draw,minimum width=2cm,minimum height=2cm,draw=red}}
\node[nn,anchor=south west] (nodeOne) at (0,0) {One};
\node[nn,rotate=90] (nodeTwo) [right=6cm of nodeOne] {\emph{Two}} ;
\node[ni]
(nodeIndicator) [above right=0cm and 1.5cm of nodeOne] {} ;
\begin{axis}[%
at={($(nodeOne)+(0cm,1.5cm)$)},
anchor=south west,
inner sep=0pt,
width=4cm,
height=3cm,
scale only axis
]
\addplot coordinates { (0,0) (1,1) } ;
\end{axis}
% graphical rulers in tikz - via grid:
% x ruler:
\draw[red] (0,0) grid[step=1cm] ({current bounding box.east|-(0cm,0.5cm);});
% y ruler:
\draw[red] (0,0) grid[step=1cm] ({current bounding box.north-|(0.5cm,0cm);});
\end{tikzpicture}
\end{document}
use
\begin{landscape}
\resizebox{!}{0.95\textheight}{\input{erd.tikz.tex}}
\end{landscape}
The image is too big. The reason why it is placed on the following page.
Best Answer
You can use the method of this answer. There a combination of surface colors, opacities and plots get close to the desired result.
Your intersection is
x=0
,y=-1:1
,z=0
with\addplot3+
you can draw this line.mark=none
disables the marks. Optional you can use the stylethick
.MWE: