[pstricks] Help: again problem with bardiag
Herbert Voss
Herbert.Voss at alumni.TU-Berlin.DE
Wed Oct 15 17:09:10 CEST 2003
kris schrieb:
> I have a problem while trying to process the following command:
>
> "latex test.tex"
>
> Actually all works OK like it is now but when you would outcomment the tree
> following lines
>
> \usepackage{barddoc}
> \usepackage{xr}
> \externaldocument{bardiag}
>
> and try to process the file again, a problem occurs.
Why do you need the barddoc style file? It makes only sense
for document of bardiag. It is no problem to load the
interesting parts, if there are any, direct into your
own preamble.
Attached your doc with some modification. I always used
\fileplot{data.dat}
which makes more sense than the \pscurve with tons of
data records in your document. The data files have the
structure
x y
I converted them into this space separeted list. Let me know
if you like to get these files.
Herbert
\documentclass[12pt,a4paper]{article}
%-------- set margins with geometry --------
\usepackage[lmargin=1.2in,rmargin=1.2in,%
tmargin=1.2in,bmargin=1.2in]{geometry}
\usepackage[dvips]{graphicx}
%-------- load only graphicx --------
%\usepackage{supertabular}
\usepackage{wrapfig}
\usepackage{cite}
%-------- times is out of date --------
\usepackage{mathptmx}
\usepackage[scaled=0.92]{helvet}
\usepackage{subfigure}
\usepackage{caption2}
%\usepackage{doublespace}
\usepackage{array}
%\usepackage{natbib}
\usepackage{amsmath}
\usepackage{amssymb}
\usepackage{pstcol}
\usepackage{pst-node} % PSTricks package for nodes
\usepackage{pst-tree} % PSTricks package for trees
\usepackage{pst-plot}
%\input pst-axes
\usepackage{textcomp}
%\usepackage[nomarkers]{endfloat}
%\usepackage{simplemargins}
%\usepackage{barddoc}
%-------- packages make no sense --------
\usepackage{xr}
%\externaldocument{bardiag}
%-------- load setspace --------
\usepackage{setspace}
\doublespacing
\begin{document}
\definecolor{red}{rgb}{1,0,0}
\definecolor{black}{rgb}{0,0,0}
\subcapstyle{hang}
\centering
\begin{figure}[!ht]
\begin{center}
\unitlength .5cm
%\fbox{%
\subfigure[Averaged Pressure and Flow Cycle]
{\label(SubFig1){fig:hemo_data_a}
%\begin{center}
%\scalebox{0.15}{\includegraphics{figures/omnicarbon_valve}}
%\end{center}
\psset{xunit=6cm,yunit=0.015cm}
\renewcommand{\pshlabel}[1]{\scriptsize{\textsf{#1}}}
\renewcommand{\psvlabel}[1]{\scriptsize{\textsf{#1}}}
\begin{tabular}{c}
\begin{pspicture}[](-0.4,-40)(1.4,240.0)
\psaxes[Dx=2,Dy=40,tickstyle=bottom,Oy=-20]{->}(0,-20)(1.2,220)
\psaxes[Dx=0.25,Dy=40,tickstyle=bottom,Oy=-20,labels=none]{->}(0,-20)(1.2,220)
\rput(-0.2,90){\rotateleft{\scriptsize{\textsf{pressure [mmHg]}}}}
\psline[linestyle=dashed,linewidth=.02](0.6,120)(0.8,120)
\rput[l](0.85,120){\scriptsize{\textsf{Aorta}}}
\psline[linewidth=.02](0.6,145)(0.8,145)
\rput[l](0.85,145){\scriptsize{\textsf{LV}}}
%\rput(1.3,-20){\textsf{t [s]}}
%\psdot*(0.4,0.04)
%\rput(0.4,-.05){t$_o$}
%\psline[linestyle=dashed,linewidth=.02](0.4,0.04)(0.4,0.0) % 0.025
%\psdot*(1.307,0.04)
%\rput(1.307,-.05){0.37$\cdot$T$_p$+t$_o$}
%\psline[linestyle=dashed,linewidth=.02](1.307,0.04)(1.307,0.0) % 0.025
%\psdot*(2.45,0)
%\rput(2.45,-.05){T$_p$}
\rput(-0.03,235){\scriptsize{\textsf{v [m/s]}}}
\fileplot[linewidth=0.5pt,linestyle=dashed]{data1.dat}
\fileplot[linewidth=0.5pt]{data2.dat}
\end{pspicture}\\
\psset{xunit=6cm,yunit=0.005cm}
\begin{pspicture}[](-0.384,-300)(1.4,550.0)
\psaxes[Dx=0.25,Dy=100,tickstyle=bottom,Oy=-100]{->}(0,-100)(1.2,520)
\rput(0.5,-275){\scriptsize{\textsf{time [s]}}}
\rput(-0.2,200){\rotateleft{\scriptsize{\textsf{flow [ml/s]}}}}
\psline[linestyle=dashed,linewidth=.01](0.02,-100.0)(0.02,1300)
\psline[linewidth=.005](0,0)(1.2,0)
\psline[linestyle=dashed,linewidth=.01](0.3625,-100.0)(0.3625,1300)
\psline[linestyle=dashed,linewidth=.01]{<->}(0.02,1290)(0.3625,1290)
\rput[c](0.19,1320){\tiny{\textsf{forward flow}}}
\rput[c](0.19,1260){\tiny{\textsf{(systole)}}}
\psline[linestyle=dashed,linewidth=.01]{<->}(0.3625,1290)(1,1290)
\rput[c](0.68,1320){\tiny{\textsf{regurgitation}}}
\rput[c](0.68,1260){\tiny{\textsf{(diastole)}}}
\fileplot[linewidth=0.5pt]{data3.dat}
\pscustom{%
\fileplot[linewidth=0.5pt]{data4.dat}
% \gsave
\pscurve[liftpen=1](1.20,300)(1,300)(0.760,300)
\fill[fillstyle=hlines,fillcolor=gray,hatchwidth=0.4pt,hatchsep=1.5pt]
% \grestore%
}
\pscurve[linewidth=0.5pt](1.20,300)(1,300)(0.760,300)
\psline[linewidth=.01]{->}(1,290)(1.1,440)
\rput[c](1.1,470){\tiny{\textsf{leak volume}}}
\psline[linewidth=.01]{->}(0.78,200)(1,100)
\rput[l](1.02,100){\tiny{\textsf{closing volume}}}
\end{pspicture}
\end{tabular}%}
}\\
%\fbox{%
\scriptsize{
\subfigure[Continuous Wave Doppler Measurement]
{\label(SubFig2){fig:hemo_data_b}
%\scalebox{0.2}{\includegraphics{figures/foto4}}
\psset{xunit=1,yunit=1}
\begin{pspicture}[](-4,-2)(4,2)
% \rput(0,0){\scalebox{0.4}{\includegraphics{figures/doppler}}}
\pscircle[fillstyle=none,linewidth=0.05cm](-3,0){1}
\rput[c](-3,1.8){\color{black}\textsf{\textbf{\underline{Vertical Valve
Position}}}}
\rput[c](-3,-1.8){\color{red}\textsf{Vertical Scan Plane}}
\rput[c](3,-1.8){\color{red}\textsf{Vertical Scan Plane}}
\rput[c](-2.8,-1.5){\color{red}\textsf{V}}
\rput[c](3.2,-1.5){\color{red}\textsf{V}}
\psline[linewidth=0.05cm](-3.5,-0.6)(-3.5,0.6)
\psline[linecolor=red,linestyle=dashed,linewidth=0.05cm](-3,1.5)(-3,-1.5)
\psline[linecolor=red,linestyle=dashed,linewidth=0.05cm](-4.5,0)(-1.5,0)
\pscircle[fillstyle=none,linewidth=0.05cm](3,0){1}
\rput[c](3,1.8){\color{black}\textsf{\textbf{\underline{Horizontal Valve
Position}}}}
\rput[c](0,-1.2){\color{black}\textsf{Direction of the Flow}}
\pscircle[fillstyle=solid,fillcolor=black,linewidth=0.02cm](0,-0.8){0.05}
\pscircle[fillstyle=none,linewidth=0.02cm](0,-0.8){0.15}
\rput[c](0,-0.15){\color{red}\textsf{Horizontal Scan Plane}}
\rput[c](0,0.15){\color{red}\textsf{H}}
\psline[linewidth=0.05cm](2.4,0.5)(3.6,0.5)
\psline[linecolor=red,linestyle=dashed,linewidth=0.05cm](3,1.5)(3,-1.5)
\psline[linecolor=red,linestyle=dashed,linewidth=0.05cm](4.5,0)(1.5,0)
\end{pspicture}}
%}
}\\
\end{center}
\caption{Example of an averaged pressure and flow cycle for an
Omnicarbon valve (valve A)
measured in vertical position at 60 beats/min and aortic
systolic pressure of 150 mmHg.}
\label{fig:hemo_data}
\end{figure}
\end{document}
More information about the PSTricks
mailing list