Graphics, Figures & Tablespst-plot | Graph without Arrows not displayed

Information and discussion about graphics, figures & tables in LaTeX documents.
Post Reply
Mini
Posts: 73
Joined: Thu Aug 06, 2009 12:46 pm

pst-plot | Graph without Arrows not displayed

Post by Mini »

Hello everyone,

I'm having a rather strange issue with psplot...

When I use the following code, the graphic displays fine without any issues:

Code: Select all

\documentclass[12pt, a4paper, fleqn, leqno]{article}

\usepackage{auto-pst-pdf}
\usepackage{pstricks}
\usepackage{pst-plot}

\begin{document}

\begin{pspicture}(-2,-0.5)(2,2)
\psplot[algebraic=true, plotpoints=1000, arrows=<->]{0}{1}{sin(x)}
\end{pspicture}

\end{document}
But when I compile using the following code, the graph does not display in the pdf...

Code: Select all

\documentclass[12pt, a4paper, fleqn, leqno]{article}

\usepackage{auto-pst-pdf}
\usepackage{pstricks}
\usepackage{pst-plot}

\begin{document}

\begin{pspicture}(-2,-0.5)(2,2)
\psplot[algebraic=true, plotpoints=1000]{0}{1}{sin(x)}
\end{pspicture}

\end{document}
The difference being the 'arrows' parameter...

Could someone please tell me what's going on?? :S

Thanks heaps
Last edited by Mini on Wed Nov 16, 2011 4:14 am, 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.

User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Re: pst-plot | Graph without Arrows not displayed

Post by localghost »

Works fine for me. Check the log file for any irregularities. Probably you have to update the involved packages.


Thorsten
Mini
Posts: 73
Joined: Thu Aug 06, 2009 12:46 pm

pst-plot | Graph without Arrows not displayed

Post by Mini »

Hi,

With the following code, I get bad box errors...

Code: Select all

\documentclass{minimal}

\usepackage{auto-pst-pdf}
\usepackage{pstricks}
\usepackage{pst-plot}

\begin{document}

\begin{pspicture}(-2,-0.5)(2,2)
\psplot[algebraic=true]{0}{0.00001}{sin(x)}
\end{pspicture}

\end{document}
I'm still scratching my head to figure out what's wrong...

I've attached the PDF output...

Thanks to anyone who can help me out...
Attachments
Test.log
(11.47 KiB) Downloaded 261 times
Test.pdf
(1.95 KiB) Downloaded 153 times
Mini
Posts: 73
Joined: Thu Aug 06, 2009 12:46 pm

Re: pst-plot | Graph without Arrows not displayed

Post by Mini »

I've forcibly reinstalled all the related packages and it seems to be working now.

Thanks for your help!
Post Reply