This site is a showcase for using LatexRender for mathematics in WordPress

Using LaTeX in WordPress

Plotting Graphs

Tuesday 31st August 2004

Filed under: — Steve @ 10:04 pm

\psset{unit=0.5cm}
\begin{pspicture}(-4,-0.5)(4,8)
\psgrid[subgriddiv=0,griddots=5,gridlabels=7pt](-4,-0.5)(4,8)
\psline[linewidth=1pt]{->}(-4,0)(+4,0)
\psline[linewidth=1pt]{->}(0,-0.5)(0,8)
\psplot[plotstyle=curve,linewidth=0.5pt]{-4}{0.9}{10 x exp}% postscript function
\rput[l](1,7.5){$10^x$}
\psplot[plotstyle=curve,linecolor=red,linewidth=0.5pt]{-4}{3}{2 x exp}% postscript function
\rput[l](2.2,7.5){\color{blue}$e^x$}
\psplot[plotstyle=curve,linecolor=blue,linewidth=0.5pt]{-4}{2.05}{2.7183 x exp}% postscript function
\rput[l](3.2,7.5){\color{red}$2^x$}
\rput(4,8.5){\color{white}change\normalcolor}
\rput(-4,-1){\color{white}bounding box\normalcolor}
\end{pspicture}

These graphs are courtesy of PSTricks

1 Comment »

RSS feed for comments on this post. TrackBack URI

  1. Neat stuff. I found your post on Google while trying to accomplish a similar task for my blog. Being able to use LaTeX within a blog is simply amazing — so many more possibilities!

    I’ve found that adding a small -blur tag to convert helps the gif look a little bit nicer; also -trim seems to have some weirdness on my version of convert, so I’ve taken it out. Took a bit of experimentation to get it right.

    Anyway, keep up the good work!

    Comment by Titus Barik — Tuesday 21st September 2004 4:57 am #

Leave a comment

XHTML: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>


 

This site is a showcase for using LatexRender for mathematics in WordPress