[pstricks] a small problem
Germain Boyer
germain.boyer at ac-toulouse.fr
Tue Feb 27 16:03:08 CET 2018
Hello !
Look at this picture :
\documentclass[a4paper,french,11pt,oneside]{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{fourier}
\usepackage[scaled=0.875]{helvet}
\usepackage{courier}
\usepackage{mathtools}
\usepackage{pstricks-add}
\renewcommand*{\pshlabel}[1]{$#1$}
\renewcommand*{\psvlabel}[1]{\vspace*{-0.5mm}$#1$}
\usepackage[french]{babel}
\frenchbsetup{StandardLists=true,AutoSpacePunctuation=false}
\DecimalMathComma % ou bien \usepackage{icomma}
\begin{document}
\psset{xunit=0.8cm,yunit=25cm,algebraic=true}
\def\xmin {1.4}
\def\xmax {18.6}
\def\ymin {-0.025}
\def\ymax {0.22}
\begin{pspicture*}(\xmin,\ymin)(\xmax,\ymax)
\def\m{10}% moyenne
\def\s{2}% écart type
\def\f{1/(\s*sqrt(2*PI))*EXP((-((x-\m)/\s)^2)/2)}
\psplot[plotpoints=100]{1}{19}{\f}
\pscustom[fillstyle=solid,fillcolor=lightgray]{%
\psplot{1}{8}{\f}
\psline(8,0)(1,0)
}%
\small
\psaxes[comma,showorigin=true,ticksize=-3pt 4pt, Dx=1,
Dy=0.04,Ox=10]{->}(10,0)(\xmin,-0.025)(\xmax,0.22)
\normalsize
\rput(9.73,-0.015){$10$}
\rput(9.75,0.01){$0$}
\end{pspicture*}
\end{document}
The label of origin is not small !!!
Look at this picture :
\psset{xunit=0.8cm,yunit=25cm,algebraic=true}
\def\xmin {1.4}
\def\xmax {18.6}
\def\ymin {-0.025}
\def\ymax {0.22}
\begin{pspicture*}(\xmin,\ymin)(\xmax,\ymax)
\def\m{10}% moyenne
\def\s{2}% écart type
\def\f{1/(\s*sqrt(2*PI))*EXP((-((x-\m)/\s)^2)/2)}
\psplot[plotpoints=100]{1}{19}{\f}
\pscustom[fillstyle=solid,fillcolor=lightgray]{%
\psplot{1}{8}{\f}
\psline(8,0)(1,0)
}%
%\small
\psaxes[labelFontSize=\scriptstyle,comma,showorigin=true,ticksize=-3pt
4pt, Dx=1, Dy=0.04,Ox=10]{->}(10,0)(\xmin,-0.025)(\xmax,0.22)
%\normalsize
\rput(9.73,-0.015){$10$}
\rput(9.75,0.01){$0$}
\end{pspicture*}
The y labels are not \scriptstyle
Is it possible to correct this
Thanks for your answer.
Germain
More information about the PSTricks
mailing list