Graphics, Figures & TablesProblem with \psaxes

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
carlos
Posts: 1
Joined: Fri May 14, 2010 2:10 am

Problem with \psaxes

Post by carlos »

Hi,

I've a problem using \psaxes plotting a simple axe (I've omitted some graph parts), the figure code is:

\centering \scalebox{1}{
\psset{xunit=1cm,yunit=1cm}
\begin{pspicture}(-0.5,-0.5)(12,6)
\psaxes[Dx=5,dx=1cm,Dy=4000,dy=1cm,tickstyle=below,ticksize=3pt]{->}(0,0)(11,6)
\end{pspicture}}

... and I receive an error: "...Dimension to large". Then, I try to change "yunit" and other things but I've always the same error.
On the contrary, if I change Dy value to 3000 it works!. I don't understand the problem. The problem has begun after
an upgrade to ubuntu Lucide. I'll be very grateful to any comments, thanks in advance.

Carlos

Recommended reading 2024:

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

Learn LaTeX easily with newest books:

The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis

The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more

LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis

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

Re: Problem with \psaxes

Post by coachbennett1981 »

I have looked at the code and I have no problems running this. I have an error with your \scalebox, but other than that, the axis shows up exactly as it should. I am using TexShop on a mac, I am not sure if that has anything to do with it, but lets face it, macs kick ass :D . I hope you figured out your problem.
CrazyHorse
Posts: 351
Joined: Sat Aug 02, 2008 8:47 am

Problem with \psaxes

Post by CrazyHorse »

carlos wrote:... and I receive an error: "...Dimension to large". Then, I try to change "yunit" and other things but I've always the same error.
On the contrary, if I change Dy value to 3000 it works!. I don't understand the problem. The problem has begun after
an upgrade to ubuntu Lucide. I'll be very grateful to any comments, thanks in advance.

Carlos

Code: Select all

\documentclass{article}
\usepackage{pstricks-add}

\begin{document}

\begin{pspicture}(-0.5,-0.5)(12,6)
\psaxes[Dx=5,dx=1cm,Dy=4,dy=1cm,ylabelFactor=\cdot10^3,
showorigin=false,ticksize=3pt]{->}(0,0)(11,6)
\end{pspicture}

\end{document}
Herbert
coachbennett1981
Posts: 274
Joined: Fri Feb 05, 2010 10:15 pm

Re: Problem with \psaxes

Post by coachbennett1981 »

Sorry it took so long to thank you in this matter. I appreciate all your comments to my problems. Couldn't do it without you!
Post Reply