|
From: Tatsuro M. <tma...@ya...> - 2010-02-19 11:49:37
|
Hello The gnuplot 4.4rc1-CVS binaries for windows, djgpp and cygwin are uploaded. Windows, djgpp http://www.tatsuromatsuoka.com/gnuplot/Eng/winbin/ 0004 gp44rc1CVSwinbin.zip (Latest ChangeLog Date 2010-02-18) 0005 gp44rc1CVSwinbin-wxt-diff.zip (Latest ChangeLog Date 2010-02-18) 0006 gp44rc1CVSdj2bin.zip (Latest ChangeLog Date 2010-02-18) Cygwin 7. gp44rc1CVSwinbinX11.zip (Latest ChangeLog Date 2010-02-18) These are the latest snapshot of 4.4rc1 on the CVS repository bug are extensively fixed from the original 4.4rc1 and some features are added. Especially features for the windows terminals are improved. Please enjoy !! If you have found problem, please report on this ML. Regards Tatsuro -------------------------------------- VANCOUVER 2010 Olympic News [Yahoo! Sports/sportsnavi] http://pr.mail.yahoo.co.jp/olympic/ |
|
From: don t. <dt...@to...> - 2010-02-19 17:16:23
|
> The gnuplot 4.4rc1-CVS binaries for windows, djgpp and cygwin are uploaded. > ... > If you have found problem, please report on this ML. I ran the 4.4rc1CVS and 4.5CVS wgnuplot binaries on a virtual Windows XP machine in Vmware. They work fine, and the emf cutting and pasting is greatly improved. Thanks. One problem I note in both cases: Font changes made with the "Choose Font" Windows dialog do not take effect unless followed by a replot command. The plot is immediately redrawn when the dialog is dismissed with 'Okay', but the font does not change and if the Choose Font dialog is called again without an intervening replot, the old font is displayed. This separate replot command should not be necessary. There is something missing from the code that redraws the plot when the dialog is closed. I'm sure that someone who is more of a Windows programmer than I can fix this easily. Don Taber |
|
From: Benjamin L. <lin...@gm...> - 2010-02-22 17:24:59
|
> One problem I note in both cases: Font changes made with the "Choose
> Font" Windows dialog do not take effect unless followed by a replot
> command. The plot is immediately redrawn when the dialog is dismissed
> with 'Okay', but the font does not change and if the Choose Font
> dialog is called again without an intervening replot, the old font is
> displayed. This separate replot command should not be necessary.
> There is something missing from the code that redraws the plot when
> the dialog is closed. I'm sure that someone who is more of a Windows
> programmer than I can fix this easily.
No, there is nothing missing in the code that redraws the plot.
And I'm not sure this can be easily fixed.
This is a manifestation of a principal problem in gnuplot's plotting
algorithm.
One of the very first commands (actually when I debugged this problem,
*the* first command) sent to the terminal when creating a plot is a
reset-font-to-the-default-font command.
Calling stack:
do_plot() (graphics.c)
boundary() (graphics.c)
find_maxl_keys() (graphics.c)
ignore_enhanced() (term.c)
term->set_font("")
This command will contain the default font at startup. Fine.
Now you change the default font from the dialog box. This changes the
default font name for the terminal. But redrawing the graph simply
re-executes the queued plotting commands. And these do not change unless
you execute a "replot".
Which means that the font hasn't really changed, until you issue a replot.
The reason this works for the line styles is that the line style itself
is not hard-coded into the command queue. It just queues the style
number to use, not the style definition (so if you change the style
definition and re-execute the commands you'll get an updated display).
However, the font names are hard-coded. So there is no special command
for "set to the default font". It's just "set to font FOO" (which
happens to be the default font at the time the command is queued).
benjamin
|
|
From: don t. <dt...@to...> - 2010-02-22 22:38:31
|
> > One problem I note in both cases: Font changes made with the "Choose > > Font" Windows dialog do not take effect unless followed by a replot > > There is something missing from the code that redraws the plot when > > the dialog is closed. I'm sure that someone who is more of a Windows > > programmer than I can fix this easily. > > No, there is nothing missing in the code that redraws the plot. > And I'm not sure this can be easily fixed. > > This is a manifestation of a principal problem in gnuplot's plotting > algorithm. > Benjamin, Thanks for the explanation of why the current code needs the replot. This analysis seems to suggest that my (revised) patch calling do_string_replot(), as suggested by Ethan, is the best solution. Don Taber |
|
From: Tatsuro M. <tma...@ya...> - 2010-02-23 02:38:21
|
Hello
Thanks for the fix.
I have confirmed the fix on the gnuplot 4.5 (CVS).
2010-02-22 Don Taber <dt...@to...>
* src/win/wgraph.c (SelFont): After a font change, call
do_string_replot("") so that it is immediately visible.
On the 4.4cvs, the above fix cannot be found. I would like to just confirm that whether the patch is
applied only to the 4.5.
Regards
Tatsuro
--- don taber wrote:
> > > One problem I note in both cases: Font changes made with the "Choose
> > > Font" Windows dialog do not take effect unless followed by a replot
>
> > > There is something missing from the code that redraws the plot when
> > > the dialog is closed. I'm sure that someone who is more of a Windows
> > > programmer than I can fix this easily.
> >
> > No, there is nothing missing in the code that redraws the plot.
> > And I'm not sure this can be easily fixed.
> >
> > This is a manifestation of a principal problem in gnuplot's plotting
> > algorithm.
> >
>
> Benjamin,
>
> Thanks for the explanation of why the current code needs
> the replot. This analysis seems to suggest that my (revised) patch
> calling do_string_replot(), as suggested by Ethan, is
> the best solution.
>
> Don Taber
>
--------------------------------------
VANCOUVER 2010 Olympic News [Yahoo! Sports/sportsnavi]
http://pr.mail.yahoo.co.jp/olympic/
|
|
From: Ethan M. <merritt@u.washington.edu> - 2010-02-23 03:08:55
|
On Monday 22 February 2010 17:38:10 Tatsuro MATSUOKA wrote:
> Hello
>
> Thanks for the fix.
>
> I have confirmed the fix on the gnuplot 4.5 (CVS).
>
> 2010-02-22 Don Taber <dt...@to...>
>
> * src/win/wgraph.c (SelFont): After a font change, call
> do_string_replot("") so that it is immediately visible.
>
> On the 4.4cvs, the above fix cannot be found. I would like to just confirm that whether the patch is
> applied only to the 4.5.
Yes. I was reluctant to put it in the 4.4 cvs so close to release date.
But if people think it is important, and won't break anything, I can add it.
Ethan
>
> Regards
>
> Tatsuro
>
> --- don taber wrote:
>
> > > > One problem I note in both cases: Font changes made with the "Choose
> > > > Font" Windows dialog do not take effect unless followed by a replot
> >
> > > > There is something missing from the code that redraws the plot when
> > > > the dialog is closed. I'm sure that someone who is more of a Windows
> > > > programmer than I can fix this easily.
> > >
> > > No, there is nothing missing in the code that redraws the plot.
> > > And I'm not sure this can be easily fixed.
> > >
> > > This is a manifestation of a principal problem in gnuplot's plotting
> > > algorithm.
> > >
> >
> > Benjamin,
> >
> > Thanks for the explanation of why the current code needs
> > the replot. This analysis seems to suggest that my (revised) patch
> > calling do_string_replot(), as suggested by Ethan, is
> > the best solution.
> >
> > Don Taber
|
|
From: Tatsuro M. <tma...@ya...> - 2010-02-23 02:46:44
|
Hello --- Ethan Merritt wrote: > > On the 4.4cvs, the above fix cannot be found. I would like to just confirm that whether the > patch is > > applied only to the 4.5. > > Yes. I was reluctant to put it in the 4.4 cvs so close to release date. > But if people think it is important, and won't break anything, I can add it. > > Ethan OK. I agree with your judgment. Regards Tatsuro -------------------------------------- VANCOUVER 2010 Olympic News [Yahoo! Sports/sportsnavi] http://pr.mail.yahoo.co.jp/olympic/ |