I tried a lot, but since gouplot is new, and I can't handle it very well, i couldn't rotate the number on the x_axis.

 group style={
  group size=1 by 4,  % sets number of columns and rows in groupplot array
  vertical sep=0pt,   % vertical distance between axes
 axis y line=left, % y axis line on left side only
 xmin=0,xmax=10,   % set axis
 ymin=0,           % limits
 domain=1:9,       % domain, just for example
 width=10cm,       % width
 height=3cm,       % and height for each axis
 scale only axis,  % disregard labels and ticks for scaling
 no markers, 
 enlarge y limits=upper,
 xticklabel style={/pgf/number format/.cd,fixed zerofill,precision=5} %sets the precision

    ylabel style={at={(rel axis cs:0,1)},above,rotate=-90}, %move ylabel a bit
    axis x line=none] % remove x-axis lines

\nextgroupplot[axis x line=none]
 \addplot{-x + 10}; 

\nextgroupplot[axis x line=none]

    axis x line=bottom, % only x axis line at bottom
    xlabel style={at={(rel axis cs:1,0)},right}]
 \addplot+[samples=200] {abs(sin(x*180/pi))}; 

  • 4
    xticklabel style={rotate=-90,/pgf/number format/.cd,fixed zerofill,precision=5} instead of xticklabel style={/pgf/number format/.cd,fixed zerofill,precision=5}?
    – user228539
    Nov 15, 2020 at 20:32
  • oh my good, thank you!
    – Noob_Latex
    Nov 15, 2020 at 21:09
  • @abcdefg, do you want to write an answer or shall we close the question as answered in the comments? Nov 16, 2020 at 17:32
  • @StefanPinnow Either way. Probably closing is easier.
    – user228539
    Nov 16, 2020 at 17:34
  • 3
    I’m voting to close this question because it was solved in the comments. Nov 16, 2020 at 17:35


Browse other questions tagged .