Tell me more ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I have the problem, that I can't change the location of my ylable. They are located both and the same side. What ever I tried to do, I am not getting them on different sides. I want to have the plot like that:

ylabels left side minimum left value all the top ... line in the picture I provided. x from -180...180 colorbar on the right side

I think it is messed up because I am rotating the surf plot.

\begin{tikzpicture}
\begin{axis}[
view={0}{-90},
 % % view={0}{-90},
 %      xlabel=$x$,
 %      ylabel=$y$,
 %      colorbar left,

    title = Received Power in dB,
 %          xlabel = Angle in Degree,
 %      xmin=-180, xmax=180, grid=major,
    xtick={-180,-150,..., 180},
 %      title=View from top,
 %      ylabel style={align=right},
    yticklabel pos=left,
    width=0.8\textwidth]
    \addplot3[surf,mesh/rows=25,mesh/cols=90, mesh/ordering=y varies] table{images/5-FieldTrials/img_dats/ft_test.dat};
\end{axis}
\end{tikzpicture}

the data file I used is this ...

 -1.8000000e+002 -1.8400000e+001 -3.5069693e+001
 -1.6500000e+002 -1.8400000e+001 -3.2140668e+001
 -1.5000000e+002 -1.8400000e+001 -3.0955007e+001
 -1.3500000e+002 -1.8400000e+001 -3.3567900e+001
 -1.2000000e+002 -1.8400000e+001 -3.5525557e+001
 -1.0500000e+002 -1.8400000e+001 -3.0409761e+001
 -9.0000000e+001 -1.8400000e+001 -2.6075223e+001
 -7.5000000e+001 -1.8400000e+001 -2.5677335e+001
 -6.0000000e+001 -1.8400000e+001 -2.9248069e+001
 -4.5000000e+001 -1.8400000e+001 -2.9936167e+001
 -3.0000000e+001 -1.8400000e+001 -3.9938917e+001
 -1.5000000e+001 -1.8400000e+001 -2.9954948e+001
  0.0000000e+000 -1.8400000e+001 -3.6605382e+001
  1.5000000e+001 -1.8400000e+001 -3.6605382e+001
  3.0000000e+001 -1.8400000e+001 -3.9737221e+001
  4.5000000e+001 -1.8400000e+001 -3.8939401e+001
  6.0000000e+001 -1.8400000e+001 -3.3260847e+001
  7.5000000e+001 -1.8400000e+001 -2.7739007e+001
  9.0000000e+001 -1.8400000e+001 -3.8495181e+001
  1.0500000e+002 -1.8400000e+001 -3.3628687e+001
  1.2000000e+002 -1.8400000e+001 -3.7597417e+001
  1.3500000e+002 -1.8400000e+001 -3.9304045e+001
  1.5000000e+002 -1.8400000e+001 -3.9298197e+001
  1.6500000e+002 -1.8400000e+001 -3.6501155e+001
  1.8000000e+002 -1.8400000e+001 -3.1771159e+001
 -1.8000000e+002 -1.7894382e+001 -3.5396621e+001
 -1.6500000e+002 -1.7894382e+001 -3.1812082e+001
 -1.5000000e+002 -1.7894382e+001 -3.1024403e+001
 -1.3500000e+002 -1.7894382e+001 -3.4043075e+001
 -1.2000000e+002 -1.7894382e+001 -3.6384572e+001
 -1.0500000e+002 -1.7894382e+001 -3.0889120e+001
 -9.0000000e+001 -1.7894382e+001 -2.6610006e+001
 -7.5000000e+001 -1.7894382e+001 -2.6088705e+001
 -6.0000000e+001 -1.7894382e+001 -2.9566243e+001
 -4.5000000e+001 -1.7894382e+001 -3.0605040e+001
 -3.0000000e+001 -1.7894382e+001 -4.0807972e+001
 -1.5000000e+001 -1.7894382e+001 -2.9954219e+001
  0.0000000e+000 -1.7894382e+001 -3.6190117e+001
  1.5000000e+001 -1.7894382e+001 -3.6190117e+001
  3.0000000e+001 -1.7894382e+001 -3.9643382e+001
  4.5000000e+001 -1.7894382e+001 -3.9953920e+001
  6.0000000e+001 -1.7894382e+001 -3.2553613e+001
  7.5000000e+001 -1.7894382e+001 -2.7857679e+001
  9.0000000e+001 -1.7894382e+001 -3.8496596e+001
  1.0500000e+002 -1.7894382e+001 -3.4679726e+001
  1.2000000e+002 -1.7894382e+001 -3.7715156e+001
  1.3500000e+002 -1.7894382e+001 -3.9865187e+001
  1.5000000e+002 -1.7894382e+001 -3.8655482e+001
  1.6500000e+002 -1.7894382e+001 -3.6874160e+001
  1.8000000e+002 -1.7894382e+001 -3.2587559e+001
 -1.8000000e+002 -1.7388764e+001 -3.5637026e+001
 -1.6500000e+002 -1.7388764e+001 -3.1630636e+001
 -1.5000000e+002 -1.7388764e+001 -3.1156415e+001
 -1.3500000e+002 -1.7388764e+001 -3.4553928e+001
 -1.2000000e+002 -1.7388764e+001 -3.7317158e+001
 -1.0500000e+002 -1.7388764e+001 -3.1396195e+001
 -9.0000000e+001 -1.7388764e+001 -2.7110324e+001
 -7.5000000e+001 -1.7388764e+001 -2.6572328e+001
 -6.0000000e+001 -1.7388764e+001 -2.9928623e+001
 -4.5000000e+001 -1.7388764e+001 -3.1361572e+001
 -3.0000000e+001 -1.7388764e+001 -4.0997259e+001
 -1.5000000e+001 -1.7388764e+001 -3.0082638e+001
  0.0000000e+000 -1.7388764e+001 -3.5697537e+001
  1.5000000e+001 -1.7388764e+001 -3.5697537e+001
  3.0000000e+001 -1.7388764e+001 -3.9369804e+001
  4.5000000e+001 -1.7388764e+001 -4.0126643e+001
  6.0000000e+001 -1.7388764e+001 -3.1922097e+001
  7.5000000e+001 -1.7388764e+001 -2.8129910e+001
  9.0000000e+001 -1.7388764e+001 -3.8777491e+001
  1.0500000e+002 -1.7388764e+001 -3.5913894e+001
  1.2000000e+002 -1.7388764e+001 -3.7584751e+001
  1.3500000e+002 -1.7388764e+001 -4.0352540e+001
  1.5000000e+002 -1.7388764e+001 -3.8304870e+001
  1.6500000e+002 -1.7388764e+001 -3.7390350e+001
  1.8000000e+002 -1.7388764e+001 -3.3504513e+001

I tried to relocate the colorbar and the ylabels. Nothing seems to work. Thanks for your hints

share|improve this question
Welcome to tex.sx! While code snippets are useful, it is usually recommended to include a full minimal working example (MWE), including the preamble and document class. Data files can be provided using the filecontents environment. – T. Verron Feb 15 at 10:14
@user25979: Also, make sure that your code works and reproduces the problem. As it is now, even if the code snippet is embedded in a minimal document, it doesn't compile because of the empty line in the axis options, and it doesn't reproduce the issue because the ylabel is commented out. Also, please try to clarify the problem: What do you mean with "they are located both on the same side"? Why "both"? There's only one ylabel. – Jake Feb 15 at 10:30

closed as not a real question by Jake, Martin Schröder, Kurt, lockstep, Marco Daniel Feb 17 at 7:18

It's difficult to tell what is being asked here. This question is ambiguous, vague, incomplete, overly broad, or rhetorical and cannot be reasonably answered in its current form. For help clarifying this question so that it can be reopened, see the FAQ.

Browse other questions tagged or ask your own question.