Drexel dragonThe Math ForumDonate to the Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.

Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: vector-based transparent image
Replies: 2   Last Post: Nov 19, 2013 12:57 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
Bjorn Gustavsson

Posts: 430
Registered: 12/7/04
Re: vector-based transparent image
Posted: Nov 19, 2013 12:57 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

"Ross Anderson" wrote in message <l6dou7$dsk$1@newscl01ah.mathworks.com>...
> I'm trying to add an alphadata property to some data and save a vector-based (as opposed to bitmap) image. I can't find any way to do it at the moment, but I supposed that someone has by now found a way around this matlab flaw, so I thought I'd ask. I read elsewhere that plot2svg was a workaround, but it's not working for me for images. An example:
> p = peaks(20);
> r =rand(20);
> h = imagesc(p);
> set(h,'alphadata', r);
> plot2svg('testtransparency.svg'); %claims to offer vector-based transparency, doesn't work here
> export_fig('testtransparency.pdf'); %nope
> print -painters -depsc2 testtransparency.eps %transparency not supported
> export_fig('testtransparency.png'); %not vector-based

A couple of other options to do the same as Oliver suggests are:


Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2015. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.