Re: [ROOT] SVG problem

From: Olivier Couet (Olivier.Couet@cern.ch)
Date: Wed Mar 19 2003 - 17:23:39 MET


Hi Ed,

 I am happy to see SVG is now used. When you generate the SVG file you get 
the message:

 Warning in <TSVG::TSVG::DrawPolyMarker>: not yet implemented

That explain why you do not get the markers: it is not yet implemented. 
The SVG driver in ROOT is not yet complete but if interest regarding 
SVG is growing the ROOT community we will complete it. 

I take the opportunity of this message to mention that SVG (Scalable 
Vector Graphics) is an XML format allowing to create 2D graphics (a bit 
like PostScript) which can be included in a HTML page. It gives a high 
quality output on web pages. It can be zoomed, panned etc.. The files 
can be compressed. The plugin can be find here:

http://www.adobe.com/svg/viewer/install/main.html

On this page, even if the point number 3 of "Installing Adobe SVG Viewer" 
may let think that it can works on other web browser than IE, I 
personally made it work only with IE. But I am not an expert in managing 
plugins with Netscape.

some examples can be find here:

http://wwwinfo.cern.ch/asd/paw/stats_SVG.html
http://wwwinfo.cern.ch/asd/paw/tutorial_SVG/tut_index.html

and if you search SVG with google you get 573000 hits ...

 Cheers,      Olivier


On Wed, 19 Mar 2003, Ed Oltman wrote:

> Hello,
>  I am using root v3.05/3 on Win2K  I notice that saving a canvas to an SVG
> file does not handle display of simple markers:
> 
> {
>     gROOT->Reset();
>     TGraph *g = new TGraph(10);
>     g->SetMarkerStyle(7);
>     for (int i=0;i<10;i++) g->SetPoint(i,i,i*i);
>     g->Draw("ap");
> }
> 
> the graph displays fine.  the postscript generation works fine too.  Its
> just the svg that fails.
> 
> I am using version 3.0 of Adobe's SVG viewer (English language 11/2001)
> 
> I've also attached the output, graph.svg
> 

-- 
Org:    CERN - European Laboratory for Particle Physics.
Mail:   1211 Geneve 23 - Switzerland                     Mailbox: J25910      
E-Mail: Olivier.Couet@cern.ch                            Phone:   +41 22 7676522
WWW:    http://cern.ch/Olivier.Couet/                    Fax:     +41 22 7677155



This archive was generated by hypermail 2b29 : Thu Jan 01 2004 - 17:50:10 MET