Ich habe diverse pgfplotstables vom Typ

Öffne in Overleaf
\pgfplotstableread[]{
    1 2
    1 2 
    }\matrixII

Wie kann ich diese z.B. in der Form

Öffne in Overleaf
matrixI    neben    matrixII
matrixIII  neben    matrixI

eben tabellenartig anordnen.

Ich habe tabular und array versucht, was beides keine pgfplotstables innerhalb akzeptiert.

Was könnte ich da tun?

alt text

Öffne in Overleaf
\documentclass[border=3mm, varwidth]{standalone}
\usepackage{pgfplotstable, amsmath}
\pgfplotstableset{header=false,
every head row/.style={output empty row},% KEINEN verdammten Header!
}

% Matrizen eingeben
\pgfplotstableread[]{
1 2 3 4
1 2 3 4
}\matrixI

\pgfplotstableread[]{
1 2
1 2 
}\matrixII

\pgfplotstableread[]{
1 2 3 4 5
1 2 3 4 5
}\matrixIII

\begin{document}
Schlechtes Anordnungsbild:\\
\pgfplotstabletypeset[]{\matrixI} neben \pgfplotstabletypeset[]{\matrixII} \\
\pgfplotstabletypeset[]{\matrixIII} neben \pgfplotstabletypeset[]{\matrixI}

Versuche: \\
%Normal: \pgfplotstabletypeset[]{\matrixII}  geht. \\
%Mathemodus: $\pgfplotstabletypeset[]{\matrixII}$ geht. \\

Wieder pgfplotstable \pgfplotstabletypeset[col sep=&, row sep=\\, string type]{
matrixI & matrixII \\
%\pgfplotstabletypeset[]{\matrixI} &  \pgfplotstabletypeset[]{\matrixI} \\
} geht nicht. \\

array $\begin{array}{l l}
matrixI & matrixII \\
%\pgfplotstabletypeset[]{\matrixII} & \pgfplotstabletypeset[]{\matrixII} \\
\end{array}$ geht nicht. 
\end{document}

gefragt 10 Okt '18, 11:08

cis's gravatar image

cis
9.5k74452491
Akzeptiert-Rate: 29%

bearbeitet 10 Okt '18, 11:10


Mit einer TikZ-Matrix bekomme ich es hin:

Öffne in Overleaf
\matrix[matrix of nodes, ....] (m) {
{\pgfplotstabletypeset[]{\matrixI}} & neben & {\pgfplotstabletypeset[]{\matrixII}} \\
{\pgfplotstabletypeset[]{\matrixIII}} & neben & {\pgfplotstabletypeset[]{\matrixII}} \\
{\pgfplotstabletypeset[]{\matrixII}} & neben & {\pgfplotstabletypeset[]{\matrixIII}} \\
};

Ja krass, ich hatte auf eine harmlose Standard LaTeX-Methode gehofft...

alt text

Öffne in Overleaf
\documentclass[border=3mm, varwidth]{standalone}
\usepackage{pgfplotstable, amsmath}
\usepackage{tikz}
\usetikzlibrary{matrix}

\pgfplotstableset{header=false,
every head row/.style={output empty row}}% KEINEN verdammten Header!

% Anordnung der Matrizen
\tikzset{nodes={text width=3cm},% für Matrizen
myset/.style={column #1/.style={nodes={text width=3em}}
},
myset/.list={2,4,6,...,100}, % für step-Spalten
}

% Matrizen eingeben
\pgfplotstableread[]{
1 2 3 4
1 2 3 4
}\matrixI

\pgfplotstableread[]{
1 2
1 2 
}\matrixII

\pgfplotstableread[]{
1 2 3 4 5
1 2 3 4 5
}\matrixIII

\begin{document}
Schlechtes Anordnungsbild:\\
\pgfplotstabletypeset[]{\matrixI} neben \pgfplotstabletypeset[]{\matrixII} \\
\pgfplotstabletypeset[]{\matrixIII} neben \pgfplotstabletypeset[]{\matrixI}
\bigskip
%Versuche: \\
%Normal: \pgfplotstabletypeset[]{\matrixII}  geht. \\
%Mathemodus: $\pgfplotstabletypeset[]{\matrixII}$ geht. \\

%Wieder pgfplotstable \pgfplotstabletypeset[col sep=&, row sep=\\, string type]{
%matrixI & matrixII \\
%%\pgfplotstabletypeset[]{\matrixI} &  \pgfplotstabletypeset[]{\matrixI} \\
%} geht nicht. \\
%
%array $\begin{array}{l l}
%matrixI & matrixII \\
%%\pgfplotstabletypeset[]{\matrixII} & \pgfplotstabletypeset[]{\matrixII} \\
%\end{array}$ geht nicht.

TikZ-Matrix: \\
\begin{tikzpicture}
%\pgfplotstabletypeset[]{\matrixII} & 
%\node{\pgfplotstabletypeset[]{\matrixII}};

\matrix[matrix of nodes, nodes in empty cells,nodes={align=left}] (m) {
{\pgfplotstabletypeset[]{\matrixI}} & neben & {\pgfplotstabletypeset[]{\matrixII}} \\
{\pgfplotstabletypeset[]{\matrixIII}} & neben & {\pgfplotstabletypeset[]{\matrixII}} \\
{\pgfplotstabletypeset[]{\matrixII}} & neben & {\pgfplotstabletypeset[]{\matrixIII}} \\
};

%\node[] at (m-1-1) {\pgfplotstabletypeset[]{\matrixII}};
\end{tikzpicture}

\end{document}
Permanenter link

beantwortet 10 Okt '18, 17:52

cis's gravatar image

cis
9.5k74452491
Akzeptiert-Rate: 29%

Deine Antwort
Vorschau umschalten

Folgen dieser Frage

Per E-Mail:

Wenn sie sich anmelden, kommen Sie für alle Updates hier in Frage

Per RSS:

Antworten

Antworten und Kommentare

Markdown-Grundlagen

  • *kursiv* oder _kursiv_
  • **Fett** oder __Fett__
  • Link:[Text](http://url.com/ "Titel")
  • Bild?![alt Text](/path/img.jpg "Titel")
  • nummerierte Liste: 1. Foo 2. Bar
  • zum Hinzufügen ein Zeilenumbruchs fügen Sie einfach zwei Leerzeichen an die Stelle an der die neue Linie sein soll.
  • grundlegende HTML-Tags werden ebenfalls unterstützt

Frage-Themen:

×39
×4

gestellte Frage: 10 Okt '18, 11:08

Frage wurde gesehen: 3,855 Mal

zuletzt geändert: 10 Okt '18, 17:52