[pstricks] labelsize/font in psaxes
Herbert Voss
Herbert.Voss at alumni.TU-Berlin.DE
Sat Feb 7 15:10:30 CET 2004
Richard J. Cattien wrote:
> How can i change the size and/or the font of the labels in psaxes? I've
> read in http://www.perce.de/LaTeX/pst-plot/psaxes.pdf how to modify the
> labelstyle for logarithmic axes, but not for normal axes.
the easiesrt way is to use pstricks-add, available from the
pstricks.de webpage. Use always pstcol instead of color,
it has some modification for pstricks. I did some for changes
to the code, have a look at it.
Herbert
\documentclass[12pt]{scrartcl}
\usepackage{pst-plot}
\usepackage{pstricks-add}
\begin{document}
\begin{pspicture}(-5,-5)(5,5)
\psaxes[xyLabel=\scriptsize]{->}(0,0)(-5,-5)(5,5)
\psgrid[griddots=10,subgriddiv=0,gridlabels=0pt,griddots=5](-5,-5)(5,5)
\psplot[plotstyle=curve,linecolor=red,linewidth=2pt]{-3}{3}{x 2 exp 4
sub}
\psplot[plotstyle=curve,linecolor=blue,linewidth=2pt]{-1.71}{1.71}{x
3 exp}
\uput[-90](4.8,0){$\mathbf{x}$}
\uput[0](0,4.8){$\mathbf{y}$}
\psset{framearc=0.5}
\rput[lb](1.5,-4){\psframebox{\red$f(x)=x^2-4$}}
\rput[lb](-4,-4){\psframebox{\blue$g(x)=x^3$}}
\end{pspicture}
\end{document}
--
http://www.pstricks.de/
More information about the PSTricks
mailing list