Graphics, Figures & TablesAxes labels

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
coachbennett1981
Posts: 274
Joined: Fri Feb 05, 2010 10:15 pm

Axes labels

Post by coachbennett1981 »

CHANGE FROM ORIGINAL POST:

I am wondering how to change the x axis for the following code.
I want the x axis to start at 0, but the fist coordinate along the x axis to be Monday followed by Tuesday. Is there an easy way to do this or do I have to sue the uput command?

Code: Select all

   \documentclass[12pt]{article}
    \usepackage{pstricks-add}

    \begin{document}
   
   \psset{unit=0.66}
	\begin{pspicture}(0,0)(10,7)
		\psaxes[Ox=0,Oy=0,Dx=10,Dy=1000,dx=2,dy=1.25,tickstyle=bottom]
		(10.5,7.5)
		\psline[linewidth=1.5pt](1,1.5)(2,4)(3,5.5)(4,6.6)(5,7)
	
	\end{pspicture}
    \end{document}



Thank you for your input
Last edited by coachbennett1981 on Tue Dec 28, 2010 11:11 pm, edited 1 time in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

coachbennett1981
Posts: 274
Joined: Fri Feb 05, 2010 10:15 pm

Axes labels

Post by coachbennett1981 »

Here is the code that I used. I am not putting the code for the MWE here. I just wanted to let you know I have a solution.

Code: Select all


\begin{center}
\psset{xAxisLabel=Time,yAxisLabel=Total Drinks Sold,llx=-.5cm,lly=-1cm,ury=0.5cm,
xAxisLabelPos={c,-3},yAxisLabelPos={-2,c}}
\psgraph[axesstyle=frame,Dx=10,Ox=1960,dx=2,ylabelFactor=0,Oy=0,showorigin=false,labels=y](0,0)(12,9){4in}{3in}%
\psdots*[dotsize=.25,dotstyle=pentagon*](2,1.5)(4,4)(6,5.5)(8,6.5)(10,7)
\psline[linewidth=1.5pt](2,1.5)(4,4)(6,5.5)(8,6.5)(10,7)
\uput[90]{45}(1.5,-2){7:00 AM}
\uput[90]{45}(3.5,-2){8:00 AM}
\uput[90]{45}(5.5,-2){9:00 AM}
\uput[90]{45}(7.5,-2.5){10:00 AM}
\uput[90]{45}(9.5,-2){11:00 AM}
\uput[90](6,8){\large{Spiff's Coffeeshop}}
\endpsgraph
\end{center}

Post Reply