PDA

Archiv verlassen und diese Seite im Standarddesign anzeigen : tabelle oder Zeilenumbruch in "rput"



masteroffdisast
08-01-2012, 16:58
Hallo Ihr Lieben,
ich habe ein Problem, was nich nicht allein lösen kann:
hier das Beispiel

\begin{figure}
\centering
\psset{llx=-1cm,urx=1cm,lly=-1cm,ury=1cm,
xAxisLabel={},
xAxisLabelPos={c,-1cm},
yAxisLabel={},
yAxisLabelPos={-2cm,c}}
\readdata[ignoreLines=1]{\myData}{Daten-sm-deutschland.txt}
\pstScalePoints(1,1){2000 sub}{}
\begin{psgraph}[
axesstyle=frame,
mathLabel=false,labelFontSize=\small,
Dy=10, Dx=1,
Oy=0, Ox=2000,
%xticksize=0 900, yticksize=0 30
](0,0)(11,100){12cm}{5cm}
%\psframe*[linecolor=black!50,opacity=0.2](30,0)(100,1)
\listplot[plotstyle=line,plotNoMax=6,plotNo=1,linestyle=soli d,showpoints,dotstyle=*]{\myData}
\listplot[plotstyle=line,plotNoMax=6,plotNo=2,linestyle=dash ed,showpoints,dotstyle=*]{\myData}
\listplot[plotstyle=line,plotNoMax=6,plotNo=3,linewidth=2pt, linestyle=dotted,showpoints,dotstyle=*]{\myData}
\listplot[plotstyle=line,plotNoMax=6,plotNo=4,linestyle=soli d,showpoints,dotstyle=+]{\myData}
\listplot[plotstyle=line,plotNoMax=6,plotNo=5,linestyle=dash ed,showpoints,dotstyle=+]{\myData}
\listplot[plotstyle=line,plotNoMax=6,plotNo=6,linewidth=2pt, linestyle=dotted,showpoints,dotstyle=+]{\myData}



jetzt möchte in die Grafik, wo halt Platz ist eine Legende einfügen, aber nicht jedesmal einen neuen rput setzen...


\rput[l](8,60){\centering\tabular{cc}
Linie 1 & \psline[linestyle=solid](1.5,0) \\
Linie 2 & \psline[linestyle=dashed](1.5,0)
\endtabular
}
Ich habe schon viel versucht aber nichts geht- es wird immer nur die erste Zeile abgebildet, mir würde es ja schon genügen, wenn ich in dem rput Befehl einen Zeilenumbruch machen könnte.
Hat jemand eine Idee...
Danke Thomas

mechanicus
09-01-2012, 16:56
Hi,

package eine parbox in den rput-Befehl.

Gruß
Marco