PSTricks - Graphics for T<span class="e">e</span>X and L<span class="a">a</span>T<span class="e">e</span>X


Welcome to the PSTricks web site

Grids
TUG logo

Main page

Index
Bug list
Documentation
Doc errors
Examples
2D Gallery
3D Gallery
Packages
References
CTAN
Search CTAN:
Germany
USA

Statistics

 


Extended translation of the the 5th edition

 


the 7th edition, total of 960 colored pages

 


2nd edition, 212 pages, includes 32 color pages

 


 


 


 


 


 

 

 


 


Axes and grid |  Grid and font |  Grid as an overlay |  Grid plot |  Gridstyle |  Millimeter paper | 


Axes and Grids
grid0.png
\begin{pspicture}(-3,-3)(3,3)
  \psgrid[subgriddiv=0,griddots=10,gridlabels=7pt]
  \psaxes[linewidth=1pt,%
  	ticks=none,%
  	labels=none]{->}(0,0)(-3,-3)(3,3)
  \uput[-30](3,0){$\mathbf{x}$}
  \uput[120](0,3){$\mathbf{y}$}
\end{pspicture}
grid1.png
\psset{xunit=0.0333,yunit=3}
\begin{pspicture}(0,-0.25)(190,1.25)
  \psgrid[subgriddiv=0,%
  	griddots=5,%
  	gridlabels=0,%
  	xunit=30,%
  	yunit=0.2](6,5)
  \psaxes[linewidth=1pt,%
  	ticks=none,%
  	showorigin=false,%
  	Dx=30,Dy=0.2]{->}(190,1.2)
  \uput{0.5}[-30](180,0){$\mathbf{\alpha}$}
  \uput{0.7}[90](0,1){$\mathbf{I/I_0}$}
\end{pspicture}
grid2.png
\psset{xunit=0.003,yunit=1.5}
\begin{pspicture}(-0.25,-0.25)(1950,4)
  \psgrid[subgriddiv=0,%
  	griddots=7,%
  	gridlabels=0pt,%
  	xunit=200](9,4)
  \psaxes[Dx=400]{->}(1800,4)
\end{pspicture}

Font Special gridstyle
By default the labels are set in the default font, which is not easy to change, when you choose for example package mathptmx. With the following definition of \myGrid it is possible to have also the labels in times.
\documentclass[12pt]{article}
\usepackage{pstricks}
\usepackage{pst-plot}
\usepackage{mathptmx}

\def\myGrid(#1,#2)(#3,#4){%
  \def\pshlabel##1{\footnotesize $##1$}%
  \def\psvlabel##1{\footnotesize $##1$}%
  \psgrid[gridlabels=0pt,subgriddiv=1,griddots=10]
  \psaxes[Ox=#1,Oy=#2,linestyle=none](#1,#2)(#3,#4)
}
\begin{document}

\begin{pspicture}(-4,-4)(4,4)
  \myGrid(-4,-4)(4,4)
   This is some text in times
\end{pspicture}

\end{document}

mmPaper.png
\documentclass{article}
\usepackage{pstricks}
\usepackage{pst-plot}
\definecolor{orange}{cmyk}{0,0.61,0.87,0}
\pagestyle{empty}
\begin{document}
\begin{pspicture}(10,10)
  \psgrid[subgriddiv=10,%
  	gridlabels=0,%
  	gridwidth=1pt,%
  	gridcolor=orange,
    subgridwidth=0.1pt,%
    subgridcolor=orange](10,10)
  \psset{unit=10}%
  \psaxes[axesstyle=frame,Dx=.2,Dy=.2,
          linewidth=0.5pt,linewidth=1pt](0,0)(1,1)
\end{pspicture}
\end{document}

Special overlays
overlay0.png overlay0.png

local time: Thu Nov 14 17:36:17 CET 2024 ; file is: 773.049490740741 days old
contact webmaster _at_ perce.de