[pstricks] Problems with psgraph

Martin Sievers scharmuetzler at gmx.de
Tue Jul 25 13:52:52 CEST 2006


Herbert Voss schrieb:
> Martin Sievers wrote:
>
>   
>> I have a problem with the psgraph-environment. The following example
>> results in a graph which is too wide. Why is that and how can I get an
>> exactly 12cm graph?
>>     
>
> a problem with TeX's floating point arithmetic. Use
> bigger values for the x-axis.
>
>   
>> Additionally I'd like to change the labelsizes with the labelFontSize
>> parameter. When using as an optional parameter for psgraph I always get
>> four Font warnings (as there are four, I guess the come from the
>> x-Axis): Command \small invalid in math mode. In the documentation
>> (chapter 19.1) I can't find an explanation for that, except that there's
>> just an psaxes command while the psgraph environment is supposed to pass
>> the options to psaxes, so it shouldn't make a difference.
>>     
>
> no problem here, see example
>
> Herbert
>
>
> \documentclass{article}
> \usepackage[ngerman]{babel}
> \usepackage[latin9]{inputenc}
> \usepackage[T1]{fontenc}
> \usepackage[prologue,dvipsnames,showerrors]{pstricks}
> \usepackage{pst-plot}
> \usepackage{pstricks-add}
> \listfiles
> %
> \begin{document}
>
> \begin{pspicture}(0,0)(12,9)
> \psset{xunit=0.1,algebraic,Ox=1,Dx=0.05,Dy=5,dx=3cm,
>    xAxisLabelPos={7.85,0},xAxisLabel={$d$},yAxisLabel={$n^*$},
>    subticks=5,labelFontSize={\footnotesize}}%
> %
> \begin{psgraph}(10,0)(7.9,0)(10,40){12cm}{9cm}%
> \end{psgraph}
> \end{pspicture}
>
> \end{document}
>
>
> _______________________________________________
> pstricks mailing list
> pstricks at tug.org
> http://tug.org/mailman/listinfo/pstricks
>
>
>   
Hello Herbert,
thanks for your help. Labelsizes are changed, but where are the warnings
coming from. Do you get them as well?

Is there a possibility for getting a "correct" 12cm psgraph without
explicitly giving dx, that means to let dx and dy be calculated by
pstricks as this is one of the advantages of psgraph?

Martin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://tug.org/pipermail/pstricks/attachments/20060725/8131fad6/attachment.html 


More information about the PSTricks mailing list