[pstricks] a pst-graph and a pst-tools problem
Cyrille Piatecki
cyrille.piatecki at univ-orleans.fr
Fri Dec 7 11:57:50 CET 2012
Dear all,
sorry but in my last invoice I have forgotten to join the revvcons.dat file
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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/pstricks/attachments/20121207/1cd40109/attachment.html>
-------------- next part --------------
{{241.6,205.5},
{262.0,219.3},
{276.8,234.5},
{284.9,246.2},
{294.7,257.5},
{311.1,265.3},
{327.6,278.3},
{343.8,297.6},
{362.5,310.5},
{372.3,310.6},
{381.8,317.2},
{413.4,331.5},
{433.2,350.5},
{463.0,375.6},
{491.7,400.7},
{523.3,422.8},
{548.5,440.0},
{577.1,460.4},
{605.3,482.9},
{632.2,503.1},
{677.2,534.9},
{719.2,560.0},
{757.6,591.9},
{791.9,621.1},
{844.3,657.8},
{883.9,681.2},
{874.0,700.0},
{912.3,734.9},
{944.9,755.1},
{981.7,789.6},
{1015.6,816.},
{1032.2,831.},
{1042.3,850.},
{1067.5,880.},
{1080.6,892.},
{1096.8,902.},
{1114.5,922.},
{1139.6,952.},
{1166.8,982.},
{1221.3,1014.3},
{1272.4,1040.6},
{1305.8,1067.9},
{1319.3,1082.0},
{1338.8,1099.2},
{1329.9,1108.6},
{1359.8,1121.3},
{1387.6,1134.4},
{1402.4,1154.4},
{1433.1,1161.0},
{1481.5,1188.6},
{1530.2,1222.5},
{1586.6,1258.4},
{1615.7,1284.5},
{1630.7,1309.6},
{1645.4,1332.8},
{1687.2,1357.3},
{1718.0,1385.8},
{1760.4,1413.1},
{1800.7,1443.3},
{1799.2,1451.1},
{1742.6,1464.5},
{1771.6,1487.9},
{1801.6,1492.0}}
More information about the PSTricks
mailing list