Advertisement
Guest User

Untitled

a guest
Jun 6th, 2013
182
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.90 KB | None | 0 0
  1. \makeatletter
  2. \pgfplotsset{
  3. groupplot xlabel/.initial={},
  4. every groupplot x label/.style={
  5. /pgfplots/every axis x label,
  6. anchor=south,
  7. yshift=2ex
  8. },
  9. groupplot ylabel/.initial={},
  10. every groupplot y label/.style={
  11. /pgfplots/every axis y label,
  12. anchor=south,
  13. yshift=2ex
  14. },
  15. execute at end groupplot/.code={%
  16. \node [/pgfplots/every groupplot x label] at ($(group c1r1.north
  17. west)!0.5!(group c1r\pgfplots@group@columns.south west)$)
  18. {\pgfkeysvalueof{/pgfplots/groupplot xlabel}};
  19. \node [/pgfplots/every groupplot y label] at ($(group c1r1.north
  20. west)!0.5!(group c1r\pgfplots@group@rows.south west)$)
  21. {\pgfkeysvalueof{/pgfplots/groupplot ylabel}};
  22. }
  23. }
  24.  
  25. \def\endpgfplots@environment@groupplot{%
  26. \endpgfplots@environment@opt%
  27. \pgfkeys{/pgfplots/execute at end groupplot}%
  28. \endgroup%
  29. }
  30. \makeatother
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement