|
From: Daniel J S. <dan...@ie...> - 2006-09-03 03:15:39
|
Theo Hopman wrote:
> Daniel J Sebald wrote:
>
>> Below is the before and after screen shot for a non-resized x11 window.
>
>
> In the "after" screen shot, the arrows are no longer at integer
> multiples of 45 degrees. I don't know whether they were intended to be,
> but in the "before" shot, they look like they are.
>
> THeo
I was wondering if anyone would catch that. I think the symmetry wasn't intended in this case. Here's the code:
xl = t->h_tic * 7;
yl = t->v_tic * 7;
i = curr_arrow_headfilled;
curr_arrow_headfilled = 0;
(*t->arrow) (x, y, x + xl, y, END_HEAD);
curr_arrow_headfilled = 1;
(*t->arrow) (x, y, x - xl, y, END_HEAD);
curr_arrow_headfilled = 2;
etc. It uses the horizontal and vertical tic, both of which are constants in x11.trm and defined as:
/* approximations for typical font/screen sizes */
# define X11_VCHAR (X11_YMAX/25)
# define X11_HCHAR (X11_XMAX/100)
# define X11_VTIC (X11_YMAX/100)
# define X11_HTIC (X11_XMAX/150)
How these definitions should have any relation to the screen or font "guesstimates", I'm not sure.
Suffice it to say that with the above definitions the xl and yl are not the same. However, I patched gnuplot so that the plot size gnuplot is told matches the default in gplt_x11.c. (Until someone manually resizes the window.) The ratio for this test plot is 1:1. Hence, to get symmetry xl and yl should be equal.
Dan
|