[pstricks] How do you reverse sign on axis labels

Buddy Ledger buddyledger at gmail.com
Fri Mar 14 15:34:05 CET 2014


I am producing two figures which together represent a 3-axis system.
Unfortunately I cannot change the axes orientation.  When representing the
plan view I need to show a "y" axis which starts at 300 in the lower left
and ends at -300 in the upper left.  If there is no standard option (which
I expect there is not), can someone help me find where this labeling is
defined so that I can define \mypsgragh and insert an negative sign.
Alternatively can I draw this by switching the axes and rotating within the
subfloat?  Any help is appreciated.  Example code below.


Thanks, Buddy



\documentclass[]{article}

\usepackage[labelfont={rm,bf},textfont=rm,listformat=simple]{caption,subfig}

\usepackage{pstricks-add}

\begin{document}

\psset{lly=-0.55in,llx=-0.55in,ury=0.25in,urx=0.15in,xAxisLabelPos={c,-0.35in},yAxisLabelPos={-0.5in,c}}

\psset{xEnd=,xStart=,decimals=2,valuewidth=50,fontscale=10,PstDebug=0}

\begin{figure}[!htbp]

\centering

\psset{xAxisLabel=\small z-position(mm),yAxisLabel=\small (-y)-position(mm)}

\subfloat[Plan view.]{

\begin{psgraph}[axesstyle=frame,Dx=100,Dy=100,xsubticks=5,ysubticks=5,Ox=0,Oy=-300](-100,-300)(900,300){3.5in}{!}

%%

\psdot(0,0)

\psset{linecolor=gray}

\multido{\i=352+89,\iz=1+1}{6}{%   z-dir

  \multido{\I=-223+89,\Iy=6+-1}{6}{%    y-dir

    \psellipse(\i,\I)(22,22)

                \rput(\i,\I){\tiny \iz\Iy}}}

\psset{linecolor=black}

%%%

\end{psgraph}}

\\

\psset{xAxisLabel=\small z-position(mm),yAxisLabel=\small x-position(mm)}

\subfloat[Side view.]{

\begin{psgraph}[axesstyle=frame,Dx=100,Dy=100,xsubticks=5,ysubticks=5,Ox=0,Oy=-600](-100,-600)(900,200){3.5in}{!}

%

\psdot(0,0)

\psset{linecolor=gray}

\multido{\IA=330+89,\IB=375+89}{6}{%

    \psframe(\IA,-510)(\IB,100)}

\psset{linecolor=black}

%

\end{psgraph}}

\caption[Air jet orientation and position.]{Air jet orientation and
position.}

\label{fig:nozpos}

\end{figure}

\end{document}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/pstricks/attachments/20140314/baa65816/attachment.html>


More information about the PSTricks mailing list