от Уикипедия, свободната енциклопедия
	    
	    	    	    
	    
[edit] Summary
Example for en:Cartesian coordinate system. Created by Gustavb using en:PSTricks.
[edit] Licensing
| I, the author of this work, hereby publish it under the following license: | 
[edit] Source
[edit] Cartesian_coordinates_2D.tex (PSTricks source)
\input pst-eps\input pst-plot\input pst-node\TeXtoEPS
\psset{linecolor=black,linewidth=1pt,arrowsize=8pt,unit=0.29cm}
\pspicture*(-15.3,-15.3)(17.4,15.3)
% Axes
\psaxes[Dx=5,Dy=5]{<->}(0,0)(-14.5,-14.5)(14.5,14.5)
\psset{linewidth=.4pt}
\psaxes[Dx=1,Dy=1,labels=none,ticksize=1.5pt](0,0)(-13,-13)(13,13)
\uput{10pt}[0](0,14){\psscalebox{1.25}{\it y-axis}}
\uput{10pt}[70](14,0){\psscalebox{1.25}{\it x-axis}}
% Origin
\pnode(0,0){O}
\uput{35pt}[310](0,0){\rnode{Ot}{\psscalebox{1.1}{
        \vbox{\halign{\hfil#\hfil\cr$(0,0)$\cr\it origin\cr}}}}}
\nccurve[angleA=315,angleB=145,arrowsize=4pt,
        nodesepA=2pt,nodesepB=-3pt,linecolor=gray]{<-}{O}{Ot}
% Point
\psdots[dotstyle=*,dotscale=1.2](3,5)
\psline[linestyle=dotted,linewidth=.8pt](3,0)(3,5)(0,5)
\uput{2.5pt}[53](3,5){\psscalebox{1.1}{$P(3,5)$}}
% Quadrants
\uput{3cm}[45](0,0){\psscalebox{1.6}{\bf I}}
\uput{3cm}[135](0,0){\psscalebox{1.6}{\bf II}}
\uput{3cm}[225](0,0){\psscalebox{1.6}{\bf III}}
\uput{3cm}[315](0,0){\psscalebox{1.6}{\bf IV}}
\endpspicture
\endTeXtoEPS
\nopagenumbers
\end
[edit] Instructions
- Create EPS
 
$ tex Cartesian_coordinates_2D.tex && dvips -E Cartesian_coordinates_2D.dvi
 
- Outline fonts
 
$ eps2eps -dNOCACHE Cartesian_coordinates_2D.ps Cartesian_coordinates_2D2.eps
 
- Fix bounding box
 
$ ps2epsi Cartesian_coordinates_2D2.eps Cartesian_coordinates_2D.eps
 
- Convert to Sketch
 
$ pstoedit -f sk Cartesian_coordinates_2D.eps Cartesian_coordinates_2D.sk
 
- Convert to SVG
 
$ skconvert Cartesian_coordinates_2D.sk Cartesian_coordinates_2D.svg
 
- Fix Cartesian_coordinates_2D.svg with Inkscape
 Препратки към файла
Следните страници сочат към файла: