Export plot result as pdf with "readable" text?



Hi Edwin,

thank you for your answer and for your example!

Sorry, it seems that I did not write clearly what I want to do.

AFAIK gnuplot can produce pdf files which contain "real" TrueType text.

I want to edit Maxima plots with another tool (IPE) before including them as
a PDF in my LaTeX document.
As I also want to edit or re-format the axis labels and numbers with IPE, I
need "real text" in the PDF.

With wxMaxima on MacOS X there is an application called Aquaterm which can
display a window with the gnuplot output of wxMaxima and the contents of
this window can be saved as EPS or PDF.
However, if I save them as a PDF, the text in the pdf is "rendered" as a
vector graphic and is not editable any more (e. g. in IPE).

In wxMaxima the plots created "inline" with WXplot2d can only be saved as
bitmap images (.png, .jpg, .bmp), so then I also loose the text information.
It would be great if there was a context menu in wxMaxima allowing me to
directly save a plot result to PDF.

If I get you right, this is not possible, or is there a way or workaround to
save a plot from wxMaxima to PDF?

The workaround I have found (and which is ok, if I don't use it too often):
Maxima sends the plot (plot2d) to Aquaterm,
I save it from Aquaterm as EPS, then run eps2pdf in the terminal, and the
resulting pdf contains the "real text" I need.

If anybody has a better solution to export to pdf directly from wxMaxima,
I'd be glad to know how.

Kind regards

Martin


> Von: Edwin Woollett <woollett at charter.net>
> Datum: Thu, 12 May 2011 15:38:22 -0700
> An: <Elwood151 at web.de>
> Cc: maxima mailing list <maxima at math.utexas.edu>
> Betreff: Export plot result as pdf with "readable" text?
> 
> On May 10, M wrote:
> -------------------
> I'm using wxMaxima 0.8.5 on MacOS X 10.6.5
> 
> I want to create pdf files from plots made with wxMaxima.
> It was possible when using Aquaterm as the output, which lets me save the
> ploted graph as EPS or PDF.
> 
> However, in the PDF all the text (axes labels and numbers) is rendered as a
> vector graphic, so it is not searchable and "readable" text any more.
> 
> I've seen PDF graphics created with gnuplot which contain "real searchable"
> text, so I assume that can also be done with wxMaxima.
> 
> Is there a tutorial how to achieve that or can anyone help?
> 
> Kind regards
> 
> Martin
> ---------------------------
> Hi Martin,
> 
> Are you looking for an export tab/button
> which will automatically create pdf from your
> figure created inside Maxima?
> 
> Although I am not very familiar with wxmaxima,
> (I use xmaxima) I don't think that feature exists yet.
> 
> So just use, say, the normal latex to dvi to pdf route,
> using an eps file save.
> 
> The following tex file has suitable plot2d code
> (as a comment) to test your system:
> 
> ----------------------
> % file wxplot2d.tex
> \documentclass[11pt]{article}
> %\usepackage{fullpage}
> \usepackage[dvips,top=1.5cm,left=1.5cm,right=1.5cm,foot=1cm,bottom=1.5cm]{geom
> etry}
> \usepackage{times,amsmath,amsbsy,graphicx,fancyvrb,url}
> \usepackage[usenames]{color}
> \title{wxplot2d test }
> \author{Edwin Woollett}
> \begin{document}
> \maketitle
> \section{wxplot2d test with wxplot2d.tex and wx-black-red.eps}
> Test wxmaxima, ver. 5.23.2 with plot2d creating an eps file.
> \smallskip
> \begin{figure}[h]
>  \centerline{\includegraphics[scale=1]{wx-black-red.eps} }
>  \caption{ wxmaxima plot2d test with eps file }
> \end{figure}
> 
> % plot2d code
> % plot2d( [u^2, u^3],[u,0,2], [x, -.2, 2.5],
> %          [style, [lines,8,5],[lines,8,2]],
> %           [y,-1,4] , [psfile, "c:/work5/wx-black-red.eps"] )$
> %
> 
> Does this look ok??
> \end{document}
> -----------------------------
> The output dvi and pdf produced look ok using
> wxmaxima 5.23.2 (with windows xp).
> 
> Ted Woollett
> http://www.csulb.edu/~woollett
> 
>