[pstricks] a pst-graph and a pst-tools problems

Cyrille Piatecki cyrille.piatecki at univ-orleans.fr
Fri Dec 7 11:52:39 CET 2012


Dear all,

1)
I don't understand why the code

\documentclass{minimal}
\usepackage{pstricks, pst-plot,pstricks-add}

\begin{document}
\begin{center}
\readdata[ignoreLines=1]{\data}{revvcons.dat}%
%\pstScalePoints(1,1){1989 sub}{}
\psset{xAxisLabel=PIB,yAxisLabel=Consommation,xAxisLabelPos={c,-0.4cm},yAxisLabelPos={-1.5cm,c}}
\begin{psgraph}[axesstyle=frame,Dx=10,Ox=1920,subticks=0, 
Dy=1](1920,0)(1920,-1)(2011,1){12cm}{50mm}%
\listplot[linecolor=blue,linewidth=5pt,plotNo=3,plotNoMax=5]{\data}
\end{psgraph}
\end{center}
\end{document}

for the joined file give no errors but no prints -- in Bakoma.

2) I want not the graph to be boxed but I have not found the command.

3) In what concerns pst-tools, I think I have not realy understud your 
exemple.

Since I use Bakoma and it is not capable to handle pre process code, I 
was wondering if the call to postscript was not a good solution. Fo 
instance If I can transform the ps result in , for instance a tex 
counter, I can use some other styles like ifthen to compute some clause. 
And I coul also find the value of composed functions.

He is what I have in mind.

\documentclass{minimal}
\usepackage{pst-math,multido}
\usepackage{pst-tools}
\usepackage{calc}
\def\showPSVal{ gsave 0 0 translate 1 -1 scale
    10 string cvs /Helvetica findfont 100 scalefont setfont  show grestore }
\SpecialCoor
\usepackage{ifthen}
\usepackage{calc}
\usepackage{settobox}



\SpecialCoor

\begin{document}


This works.
%%%%%%%%%%%%%

\newcommand{\fsin}[1]{
\psPrintValue [algebraic] {#1, sin(x)}}
\newcommand{\fcos}[1]{\psPrintValue [algebraic,VarName=cosa] {#1, cos(x)}}


$\sin(2) =\, \fsin{2}$
\vspace{.25cm}

$\cos(1) =\, \fcos{1}$

\vspace{.25cm}

This doesn't work
\vspace{.25cm}

\newcommand{\fsq}[1]{\psPrintValue [algebraic] {#1, x^2}}

$3^2 = \,\fsq{2}$

$\cos^2(1) = \fsq{cosa}$

\end{document}


Thanks for your answers and for all the very nice job done by the 
pstricks contributers.

Cyrille Piatecki


More information about the PSTricks mailing list