From: Christopher Hummersone on
OKO <yuanjiabei(a)gmail.com> wrote in message <d25ee624-f5e5-4564-9560-d3fa5e925835(a)e6g2000prf.googlegroups.com>...
> I used patch in Matlab to generate transparent object for a figure.
> Then the figure need to be exported into a pdf file. The last
> requirement is that, in the generated pdf file, the values (axis and
> characters) need to be searchable, that means you can use text-cursor
> to select those single value or characters.
>
> I tried two methods, but each of them only reach partially my
> requirement. So I was wondering if anyone can find a complete solution
> to this.
>
> Thanks in advance.

[snip]

I know this reply is a bit random but I googled for this, couldn't find a solution, but now have one so thought I would share it.

So if you want to:
- plot lines
- use patch objects (perhaps to shade regions) that are transparent
- export to PDF

You can overlay the line(s) on the patch object(s) instead of using transparency:
- Use plot3 instead of plot, set the Z-data to be ones the same size as X or Y
- Set Z in patch to be zeros the same size as X or Y
- Export to PDF as usual

Hope this helps someone sometime!

Chris