Thanks. I have no qualms with the way that behaves. Forcing an aspect r=
ation on the window would then not allow reploting to a different aspect =
ratio. I take it that you are changing your values for
unsigned int xmax,ymax,v_char,h_char,v_tic,h_tic;
in the terminal definition so that it has an effect on the manner in whic=
h the core lays out the plot. (In your example, it appears the fonts bec=
ome a different size relative to the position and the line thickness chan=
ges.) If that is the case, would it be worthwhile to add an escape key t=
hat will print out what your xmax/ymax are? That might give the user som=
e guidance in how to pick these values when transition to a different ter=
minal for an output figure.
Timoth=C3=A9e Lecomte wrote:
> Daniel J Sebald wrote:
>> Timoth=C3=A9e Lecomte wrote:
>>> Dear gnuplot developpers,
>>> I just committed a small peace of code to fill in gray the empty=20
>>> space left aside or below a plot when you resize the wxt terminal=20
>>> window without keeping its aspect ratio constant. This was the=20
>>> easiest way to make this behaviour a little more easy to understand=20
>>> visually. I also modified the help text a little bit to reflect that.=
>>> I would like to know if it's ok for you now. I know that this=20
>>> behaviour was one of the few complaints about the wxt terminal. I am=20
>>> still reluctant to make it behave like the x11 terminal, since I=20
>>> don't like it at all. Moreover, I'm convinced it's not a critical=20
>>> point: at worse, after some time the user will realize he just has to=
>>> type 'replot' or, more easily, to click on the 'replot' icon to have=20
>>> the plot be redrawn completely to fit in the window.
>> Timoth=C3=A9e, could you send or place a screen capture somewhere with=
>> gray area? Another thing you could do is force an aspect ratio on the=
>> window rather than display some area as a different color, i.e., an=20
>> ability to resize by mouse, but not independently in both dimensions.
>> I like the X11 behavior, but it isn't critical that other window=20
>> platforms behave the same way. Maybe an alternative from X11 is good=20
>> at this point.
> Here are four captures of the wxt window :
> =3D> initial window after 'plot x**2'
> =3D> I decrease the height of the window, the plot is downscaled and=
> keeps its aspect ratio, leaving a gray area on the right of the window
> =3D> I increase both the width and the height of the window, the hei=
> is increased more than the width. A gray area is left on the bottom of=20
> the window.
> =3D> I hit the 'replot' icon or type 'replot'. The plot is regenerat=
> fills the whole window, and font sizes and linewidths take their=20
> original value back.
> Best regards,
phone: 608 256 7718
email: daniel DOT sebald AT ieee DOT org
URL: http://webpages DOT charter DOT net/dsebald/