octave-maintainers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: svg output preference


From: Ben Abbott
Subject: Re: svg output preference
Date: Wed, 31 Aug 2011 15:07:56 -0400

On Aug 31, 2011, at 2:30 PM, Michael D Godfrey wrote:

> On 08/31/2011 11:01 AM, Ben Abbott wrote:
>> There's been some discussion on the bug-tracker about gnu-plots svg output.
>> 
>> Gnuplot versions < 4.5 produced a dynamic result (resizeable). While the 
>> current development sources for gnuplot produced a fixed size output.
>> 
>> The gl2ps library also produced a fixed size output.
>> 
>> I think both the gnuplot and OpenGL backends should behave consistently. 
>> Does anyone have a strong preference for dynamic or fixed output?
>> 
>> Ben
>> 
>> 
> I think that the default should be resizable, but fixed could possibly be an 
> option.
> 
> Michael

I'll prepare a changeset for the gnuplot backend.

The fix for gl2ps is trivial ...

$ svn diff
Index: gl2ps.c
===================================================================
--- gl2ps.c     (revision 549)
+++ gl2ps.c     (working copy)
@@ -4882,8 +4882,8 @@
   gl2psPrintf("<?xml version=\"1.0\" encoding=\"UTF-8\" 
standalone=\"no\"?>\n");
   gl2psPrintf("<svg xmlns=\"http://www.w3.org/2000/svg\"\n";);
   gl2psPrintf("     xmlns:xlink=\"http://www.w3.org/1999/xlink\"\n";
-              "     width=\"%dpx\" height=\"%dpx\" viewBox=\"%d %d %d %d\">\n",
-              width, height, x, y, width, height);
+              "     viewBox=\"%d %d %d %d\">\n",
+              x, y, width, height);
   gl2psPrintf("<title>%s</title>\n", gl2ps->title);
   gl2psPrintf("<desc>\n");
   gl2psPrintf("Creator: GL2PS %d.%d.%d%s, %s\n"

... After some testing and time for others to express their opinions, I'll 
check with the author of gl2ps to see if he is receptive to this change.

Ben


reply via email to

[Prev in Thread] Current Thread [Next in Thread]