|
From: <tim...@lp...> - 2007-11-20 08:29:37
|
Ethan Merritt a écrit : > On Monday 19 November 2007 13:27, Allin Cottrell wrote: > >> set size square >> >> But this does not produce a circle in pngcairo and pdfcairo: it >> produces a vertically elongated ellipse. >> > > You are right. > It looks like the aspect ratio code is broken in > all of the cairo-based terminals including wxt. > > Worse, I can't even see how it is _supposed_ to work. > Who/what/where is maintaining the values of > term->xmax and term->ymax > term->h_tic and term->v_tic ? > These are used to calculate aspect ratio, but I think the > cairo drivers are not setting them to useful values either > initially or when the window is resized. > > I'm hoping Timothée can provide a simple fix. > Hi, term->xmax and term->ymax are updated in *_graphics(), the latter also calls *_set_font() which sets term->h_tic, v_tic, v_char, h_char, based on the font size. For me it works: set term wxt set size square set polar plot 1 ...gives a square circle. And it works in pfdcairo and pngcairo too... Could you give the whole sequence of commands you use ? Best regards, Timothée |