|
From: Benjamin R. <ben...@ou...> - 2012-02-16 20:19:59
|
On Thu, Feb 16, 2012 at 1:53 PM, Jeffrey Blackburne < jbl...@al...> wrote: > Hi William, > > I am fairly certain that matplotlib does not have the capability to > do what you are looking for. (If I am wrong, I'm sure someone will > correct me.) > > You may have better luck using something like Scribus or Inkscape. > > Best, > Jeff > > William, This is correct. Matplotlib currently has no import feature available. Along these lines has been several requests for an ability to import Matlab .fig files as well. I believe the official position is that matplotlib is primarily an exporter library, not an importer library. The exception to this rule appears to be imread()... There is absolutely no reason why a module could not be made for this, given that everything in matplotlib is assumed to be vector-based. You just need a library that can load up the data in the SVG file into information that is sensibly organized. Then you run through that data, producing the relevant artists and collections, adding them to the axes object. Maybe pySVG might be a good start? Cheers! Ben Root |