<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-15"
 http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Herbert Voss schrieb:
<blockquote cite="mid44C5F44B.30303@zedat.fu-berlin.de" type="cite">
  <pre wrap="">Martin Sievers wrote:

  </pre>
  <blockquote type="cite">
    <pre wrap="">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?
    </pre>
  </blockquote>
  <pre wrap=""><!---->
a problem with TeX's floating point arithmetic. Use
bigger values for the x-axis.

  </pre>
  <blockquote type="cite">
    <pre wrap="">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.
    </pre>
  </blockquote>
  <pre wrap=""><!---->
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
<a class="moz-txt-link-abbreviated" href="mailto:pstricks@tug.org">pstricks@tug.org</a>
<a class="moz-txt-link-freetext" href="http://tug.org/mailman/listinfo/pstricks">http://tug.org/mailman/listinfo/pstricks</a>


  </pre>
</blockquote>
Hello Herbert,<br>
thanks for your help. Labelsizes are changed, but where are the
warnings coming from. Do you get them as well?<br>
<br>
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? <br>
<br>
Martin<br>
</body>
</html>