h***r 发帖数: 726 | 1 在pspicture里,x, y坐标和数学上的坐标是一致的。
但是有时候屏幕坐标更方便,即从左到右x增加 (与数学上一样)
从上到下增加(与数学上相反)。
有没有办法把pspicture的坐标系统改成屏幕坐标呀?
谢谢
(有一个flip选项是flip x and y的,不满足我的要求) |
|
c*******h 发帖数: 1096 | 2 surround your table or figure by a pspicture environment, and draw whatever
you want. pspicture is a main ingredient of pstricks. if you do not want to
load pstricks, you may use the simple latex environment---picture. same
drawing, but different grammars. |
|
s*****g 发帖数: 5159 | 3 Say I have drawn a cube
%%%%%
\begin{pspicture}(0,0)(12,3)
\psframe[linestyle=none,%
fillstyle=solid,%
fillcolor=Apricot]%
(0,0)(2,2)
\pspolygon[linestyle=none,%
fillstyle=solid,%
fillcolor=Tan]%
(0,2)(2,2)(3,3)(1,3)
\pspolygon[linestyle=none,%
fillstyle=solid,%
fillcolor=Mahogany]%
(2,0)(3,1)(3,3)(2,2)
\end{pspicture}
%%%%%
with starts at (0,0) and has a upper right corner of (3,3).
I wish to draw another two cubes looks the same at (4,0) (7,3) and (8,0) (11
,3).
Is there a way for me to use th |
|
S**I 发帖数: 15689 | 4 \def\myCube{
\psframe[linestyle=none,%
fillstyle=solid,%
fillcolor=Apricot]%
(0,0)(2,2)
\pspolygon[linestyle=none,%
fillstyle=solid,%
fillcolor=Tan]%
(0,2)(2,2)(3,3)(1,3)
\pspolygon[linestyle=none,%
fillstyle=solid,%
fillcolor=Mahogany]%
(2,0)(3,1)(3,3)(2,2)
}
\begin{pspicture}(0,0)(12,3)
\rput(0,0){\myCube}
\rput(4,0){\myCube}
\rput(8,0){\myCube}
\end{pspicture}
11
SAME |
|
a**e 发帖数: 5794 | 5 你试试就知道了。下面的源文件可以直接用xelatex编译。
\documentclass{article}
\usepackage{pstricks}
\begin{document}
\begin{pspicture}(0,0)(4,2)%
\psdot(0,0)%
\psdots(0,2)(2,2)(4,2)%
\end{pspicture}%
\end{document} |
|
G********t 发帖数: 334 | 6 \documentclass[clock]{slides}
%\usepackage{float}
\usepackage[dvips]{color, graphicx}
\usepackage{pstricks,pst-node,pst-coil,pst-grad}
\begin{document}
\begin{slide}
\textbf{Vibrations of the Linear Symmetric Triatomic Molecule}
\begin{itemize}
\item Symmetric Stretch
\begin{pspicture}(-.5, -.5)%(1, 1)
\cnode[fillstyle=solid,fillcolor=gray](-2.7,-1.5){.3}{A}
\cnode[fillstyle=solid,fillcolor=gray](.0,-1.5){.3}{B}
\cnode[fillstyle=solid,fillcolor=gray](2.7,-1.5){.3}{C}
\nccoil[ |
|