Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

#307 enhance wxt, windows, svg terminal

open
nobody
None
5
2013-02-10
2011-11-06
No

In gnuplot 4.5 the terminals wxt and windows are both attractive.
I think the following features could improve them even more.

1. set term wxt|windows|svg size 640, 480 { fixed | dynamic {x|y|xy} }
This describes the behavior of the plot if the user resizes the window
a) fixed: x and y Axis do not change size
b) dynamic x : the x axis is changed with the width of the window
c) dynamic y : the y axis is changed with the height of the window
d) dynamic xy: the x axis changes with the width, y axis with the height of the window
In svg this maps to the attributes of the main svg element:
a) width="640" height="480"
b) width="100%" height="480" preserveAspectRatio="none"
c) width="640" height="100%" preserveAspectRatio="none"
d) widht="100%" height="100%" { preserveAspectRatio="xMinYMin" }

2. set object <id> rect from 100,200 to 400,600 title 'my tooltip'
The title is used to show a tooltip if the oser move the mouse into
the shape in terminals like wxt, windows, svg, canvas ?, more ?
In svg this maps to
<a xlink:title="my tooltip">
<rect x="100" y="200" width="300" height="400"/>
</a>

Discussion

  • Request #1 would be straight forward to implement. But when exactly would such a behaviour for wxt/win be helpful?

     
  • 1. set term wxt|windows|svg size 640, 480 { fixed | dynamic {x|y|xy} }
    rationale:
    Now the behaviour of wxt is "preserveAspectRatio="XMinYMin" and of windows preserveAspectRatio="none".
    for most plots like normal x/y plots, population pyramids independent scaling of x and y is good.
    for geographic maps (I have written a ESRI-shapefile converter to gnuplot) and most plots using "object <id> circle" the aspect ration of x and y must not change.

     
  • set term wxt|windows|svg size 640, 480 { fixed | dynamic {keepaspectratio} }

    my proposal "dynamic {x|y|xy}" is not optimal, better is
    fixed - the size of the plot does not change when the user resizes wxt or windows
    dynamic - behaves like windows term
    dynamic keepaspectratio - behaves like wxt term