Graphics, Figures & TablesPNG and PSTricks

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

PNG and PSTricks

Post by coachbennett1981 »

Is there a way to include a PNG graphic using the \includegraphics command when I am using PSTricks figures as well? I have included a sample of my file. I am using TeXShop. I have tried the \rput command but to no avail.

Code: Select all

\documentclass[12pt]{exam}
\usepackage{graphicx}
\usepackage{geometry}
\usepackage{pstricks}
\usepackage{pstricks-add}           
                 
%\geometry{landscape}               
%\usepackage[parfill]{parskip}    

\usepackage{graphics}
\usepackage{amsfonts} 
\usepackage{amssymb}
\usepackage{multicol}
\usepackage{amsmath}
\addpoints
\DeclareGraphicsRule{.tif}{png}{.png}{`convert #1 `dirname #1`/`basename #1 .tif`.png}
\pagestyle{headandfoot}
\firstpageheader{Section 1.1}{Collecting and Organizing Data}{}
\runningheader{}{Algebra II}{Mr. Bennett}
\firstpagefooter{}{}{}
\begin{document}


\paragraph{Using Scatter Plots}

\begin{center}
\begin{pspicture}(5,5.5)
\psaxes[xAxisLabel=Independent Variable,yAxisLabel=Dependent Variable]{->}(0,0)(9,6)[$x$,-90][$y$,180]
\psdots[dotsize=5pt](4,.5)(3,1)(2,2)(1.5,3)(.5,4)(1,35)
\uput[90](4,-2){Independent Variable}
\uput[180]{90}(-1,2){Dependent Variable}

\end{pspicture}

\end{center}

\vspace{1in}
\section*{Types of Correlation}

\begin{pspicture}(5,5.5)
\rput(3,3){correlation}
\end{pspicture}
			
\end{document}

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

Post Reply