You can subscribe to this list here.
| 2001 |
Jan
|
Feb
(1) |
Mar
|
Apr
|
May
|
Jun
|
Jul
(1) |
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2002 |
Jan
(1) |
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
(1) |
Aug
(1) |
Sep
|
Oct
|
Nov
(1) |
Dec
|
| 2003 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
(1) |
Aug
(1) |
Sep
|
Oct
(83) |
Nov
(57) |
Dec
(111) |
| 2004 |
Jan
(38) |
Feb
(121) |
Mar
(107) |
Apr
(241) |
May
(102) |
Jun
(190) |
Jul
(239) |
Aug
(158) |
Sep
(184) |
Oct
(193) |
Nov
(47) |
Dec
(68) |
| 2005 |
Jan
(190) |
Feb
(105) |
Mar
(99) |
Apr
(65) |
May
(92) |
Jun
(250) |
Jul
(197) |
Aug
(128) |
Sep
(101) |
Oct
(183) |
Nov
(186) |
Dec
(42) |
| 2006 |
Jan
(102) |
Feb
(122) |
Mar
(154) |
Apr
(196) |
May
(181) |
Jun
(281) |
Jul
(310) |
Aug
(198) |
Sep
(145) |
Oct
(188) |
Nov
(134) |
Dec
(90) |
| 2007 |
Jan
(134) |
Feb
(181) |
Mar
(157) |
Apr
(57) |
May
(81) |
Jun
(204) |
Jul
(60) |
Aug
(37) |
Sep
(17) |
Oct
(90) |
Nov
(122) |
Dec
(72) |
| 2008 |
Jan
(130) |
Feb
(108) |
Mar
(160) |
Apr
(38) |
May
(83) |
Jun
(42) |
Jul
(75) |
Aug
(16) |
Sep
(71) |
Oct
(57) |
Nov
(59) |
Dec
(152) |
| 2009 |
Jan
(73) |
Feb
(213) |
Mar
(67) |
Apr
(40) |
May
(46) |
Jun
(82) |
Jul
(73) |
Aug
(57) |
Sep
(108) |
Oct
(36) |
Nov
(153) |
Dec
(77) |
| 2010 |
Jan
(42) |
Feb
(171) |
Mar
(150) |
Apr
(6) |
May
(22) |
Jun
(34) |
Jul
(31) |
Aug
(38) |
Sep
(32) |
Oct
(59) |
Nov
(13) |
Dec
(62) |
| 2011 |
Jan
(114) |
Feb
(139) |
Mar
(126) |
Apr
(51) |
May
(53) |
Jun
(29) |
Jul
(41) |
Aug
(29) |
Sep
(35) |
Oct
(87) |
Nov
(42) |
Dec
(20) |
| 2012 |
Jan
(111) |
Feb
(66) |
Mar
(35) |
Apr
(59) |
May
(71) |
Jun
(32) |
Jul
(11) |
Aug
(48) |
Sep
(60) |
Oct
(87) |
Nov
(16) |
Dec
(38) |
| 2013 |
Jan
(5) |
Feb
(19) |
Mar
(41) |
Apr
(47) |
May
(14) |
Jun
(32) |
Jul
(18) |
Aug
(68) |
Sep
(9) |
Oct
(42) |
Nov
(12) |
Dec
(10) |
| 2014 |
Jan
(14) |
Feb
(139) |
Mar
(137) |
Apr
(66) |
May
(72) |
Jun
(142) |
Jul
(70) |
Aug
(31) |
Sep
(39) |
Oct
(98) |
Nov
(133) |
Dec
(44) |
| 2015 |
Jan
(70) |
Feb
(27) |
Mar
(36) |
Apr
(11) |
May
(15) |
Jun
(70) |
Jul
(30) |
Aug
(63) |
Sep
(18) |
Oct
(15) |
Nov
(42) |
Dec
(29) |
| 2016 |
Jan
(37) |
Feb
(48) |
Mar
(59) |
Apr
(28) |
May
(30) |
Jun
(43) |
Jul
(47) |
Aug
(14) |
Sep
(21) |
Oct
(26) |
Nov
(10) |
Dec
(2) |
| 2017 |
Jan
(26) |
Feb
(27) |
Mar
(44) |
Apr
(11) |
May
(32) |
Jun
(28) |
Jul
(75) |
Aug
(45) |
Sep
(35) |
Oct
(285) |
Nov
(99) |
Dec
(16) |
| 2018 |
Jan
(8) |
Feb
(8) |
Mar
(42) |
Apr
(35) |
May
(23) |
Jun
(12) |
Jul
(16) |
Aug
(11) |
Sep
(8) |
Oct
(16) |
Nov
(5) |
Dec
(8) |
| 2019 |
Jan
(9) |
Feb
(28) |
Mar
(4) |
Apr
(10) |
May
(7) |
Jun
(4) |
Jul
(4) |
Aug
|
Sep
(4) |
Oct
|
Nov
(23) |
Dec
(3) |
| 2020 |
Jan
(19) |
Feb
(3) |
Mar
(22) |
Apr
(17) |
May
(10) |
Jun
(69) |
Jul
(18) |
Aug
(23) |
Sep
(25) |
Oct
(11) |
Nov
(20) |
Dec
(9) |
| 2021 |
Jan
(1) |
Feb
(7) |
Mar
(9) |
Apr
|
May
(1) |
Jun
(8) |
Jul
(6) |
Aug
(8) |
Sep
(7) |
Oct
|
Nov
(2) |
Dec
(23) |
| 2022 |
Jan
(23) |
Feb
(9) |
Mar
(9) |
Apr
|
May
(8) |
Jun
(1) |
Jul
(6) |
Aug
(8) |
Sep
(30) |
Oct
(5) |
Nov
(4) |
Dec
(6) |
| 2023 |
Jan
(2) |
Feb
(5) |
Mar
(7) |
Apr
(3) |
May
(8) |
Jun
(45) |
Jul
(8) |
Aug
|
Sep
(2) |
Oct
(14) |
Nov
(7) |
Dec
(2) |
| 2024 |
Jan
(4) |
Feb
(4) |
Mar
|
Apr
(7) |
May
(2) |
Jun
(1) |
Jul
|
Aug
(5) |
Sep
|
Oct
|
Nov
(4) |
Dec
(14) |
| 2025 |
Jan
(22) |
Feb
(6) |
Mar
(5) |
Apr
(14) |
May
(6) |
Jun
(11) |
Jul
(19) |
Aug
|
Sep
(17) |
Oct
(1) |
Nov
(2) |
Dec
(18) |
| 2026 |
Jan
|
Feb
|
Mar
(5) |
Apr
|
May
(2) |
Jun
(1) |
Jul
(6) |
Aug
(1) |
Sep
|
Oct
|
Nov
|
Dec
|
|
From: Tatsuro M. <tma...@ya...> - 2011-02-11 09:45:01
|
Hello --- Allin Cottrell wrote: > On Thu, 10 Feb 2011, James K. Peterson wrote: > > > I can't download the beta from the CVS repository. > > http://sourceforge.net/apps/wordpress/sourceforge/ Thank you for your information. I could access the cvs source. FYI, as Mojca Miklavec indicated that the below is the mirror of cvs repository https://github.com/gnuplot/gnuplot (Unofficial mirror of gnuplot's CVS repository (unmodified source) You can use the above when the cvs sever cannot be used. Regards Tatsuro -------------------------------------- Get the new Internet Explorer 8 optimized for Yahoo! JAPAN http://pr.mail.yahoo.co.jp/ie8/ |
|
From: Daniel J S. <dan...@ie...> - 2011-02-11 02:21:28
|
On 02/10/2011 02:48 PM, Mojca Miklavec wrote: > On Thu, Feb 10, 2011 at 18:45, Daniel J Sebald wrote: >> Mojca, >> >> Gnuplot only has a small set of commands and doesn't access functions >> that way. Try >> >> print rand(42) > > Dear Daniel, > > Thanks a lot for the hint. This works OK, as well as somebody else's idea to use > foo = rand(42) > > Not that many people care about setting random seed, Probably plenty of people care; for reasons of repeatable simulations being one example. > but it might make > sense to add a tiny note next to "help rand" about the usage (for > those of us who are not so familiar with syntactic rules). I hear you Mojca. However there are a lot of functions that fall in the same category as rand(). Many other functions have the word "function" in the documentation, whereas rand documentation does not. Perhaps that could be specified. I did create a patch a while back for rand that I thought was a worthwhile improvement for controlling the seed(s). Perhaps I can update that and place it in sourceforge. Dan |
|
From: Ethan M. <merritt@u.washington.edu> - 2011-02-11 01:16:15
|
> The problem of the enhanced text positioning is fixed with the patch > suggested at > http://article.gmane.org/gmane.comp.graphics.gnuplot.devel/9905 > which still applies for the 2011-01-25 CVS snapshot. > > benjamin > I woul d be happy to apply this patch if it indeed fixes a problem for Windows users. I must say, however, that I do not understand the logic behind the patch. The existing code in win.trm looks correct to me, as it is parallel to code that is demonstrably correct in other terminal drivers. Maybe I am misunderstanding what is returned by the routine GraphGetTextLength(). I would have thought that it would return the bounding rectangle for the text in absolute units (~pixels) with 0,0 at the lower left and (xmax,ymax) at the upper right. (That's what the analagous routine does in libgd). But in that case modifying the code to scale the bounding rectangle by the terminal width and height makes no sense. Does it not have the effect of expanding every text fragment to fill the whole screen? If the coordinates returned by GraphGetTextLength() are non-uniform, then I could understand needing to correct the extent along y by the aspect ratio: width = cos(WIN_angle) * len; height = sin(WIN_ANGLE) * len; height *= graphwin.xmax/graphwin.ymax; But that is different from what the patch does. Am I reading this wrong? -- Ethan A Merritt Biomolecular Structure Center, K-428 Health Sciences Bldg University of Washington, Seattle 98195-7742 |
|
From: Mojca M. <moj...@gm...> - 2011-02-10 20:48:07
|
On Thu, Feb 10, 2011 at 18:45, Daniel J Sebald wrote: > Mojca, > > Gnuplot only has a small set of commands and doesn't access functions > that way. Try > > print rand(42) Dear Daniel, Thanks a lot for the hint. This works OK, as well as somebody else's idea to use foo = rand(42) Not that many people care about setting random seed, but it might make sense to add a tiny note next to "help rand" about the usage (for those of us who are not so familiar with syntactic rules). Thanks, Mojca |
|
From: Daniel J S. <dan...@ie...> - 2011-02-10 19:03:52
|
Mojca,
Gnuplot only has a small set of commands and doesn't access functions
that way. Try
print rand(42)
Dan
On 02/10/2011 11:24 AM, Mojca Miklavec wrote:
> Dear list,
>
> I'm not sure how I could reset random seed. I have found:
>
>> help rand
> `rand(0)` returns a pseudo random number in the interval [0:1] generated
> from the current value of two internal 32-bit seeds.
> `rand(-1)` resets both seeds to a standard value.
> `rand(x)` for x>0 sets both seeds to a value based on the value of x.
> `rand({x,y})` for x>0 sets seed1 to x and seed2 to y.
>
> but I get
>
> gnuplot> rand(42)
> ^
> invalid command
>
> I can use "plot rand(42),rand(0)", but I would like to avoid plotting
> anything at all, I just need to reset the seed (I'm using version
> control and it is nasty that files change all the time without any
> reason).
>
> Thanks,
> Mojca
>
> ------------------------------------------------------------------------------
> The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE:
> Pinpoint memory and threading errors before they happen.
> Find and fix more than 250 security defects in the development cycle.
> Locate bottlenecks in serial and parallel code that limit performance.
> http://p.sf.net/sfu/intel-dev2devfeb
> _______________________________________________
> gnuplot-beta mailing list
> gnu...@li...
> https://lists.sourceforge.net/lists/listinfo/gnuplot-beta
>
--
Dan Sebald
email: daniel(DOT)sebald(AT)ieee(DOT)org
URL: http://www(DOT)dansebald(DOT)com
|
|
From: Daniel J S. <dan...@ie...> - 2011-02-10 19:03:38
|
I just installed gnuplot via Fedora's Add/Remove Software tool. In the description for the gnuplot package reads: License: gnuplot and MIT I don't recall any association with MIT, except maybe that gnuplot was on an MIT server for a while way back when. Should the MIT be there? Dan |
|
From: Mojca M. <moj...@gm...> - 2011-02-10 17:24:28
|
Dear list,
I'm not sure how I could reset random seed. I have found:
> help rand
`rand(0)` returns a pseudo random number in the interval [0:1] generated
from the current value of two internal 32-bit seeds.
`rand(-1)` resets both seeds to a standard value.
`rand(x)` for x>0 sets both seeds to a value based on the value of x.
`rand({x,y})` for x>0 sets seed1 to x and seed2 to y.
but I get
gnuplot> rand(42)
^
invalid command
I can use "plot rand(42),rand(0)", but I would like to avoid plotting
anything at all, I just need to reset the seed (I'm using version
control and it is nasty that files change all the time without any
reason).
Thanks,
Mojca
|
|
From: Allin C. <cot...@wf...> - 2011-02-10 16:51:52
|
On Thu, 10 Feb 2011, James K. Peterson wrote: > I can't download the beta from the CVS repository. http://sourceforge.net/apps/wordpress/sourceforge/ Allin Cottrell |
|
From: James K. P. <pe...@cl...> - 2011-02-10 14:33:57
|
Hi all, I can't download the beta from the CVS repository. Everytime I hit the "enter" key when asked for my password, it is not accepted. I did check that port 2401 is not blocked on my system. That's all. Jim |
|
From: Benjamin L. <bj...@gm...> - 2011-02-10 12:18:12
|
> Am I right? Correct. I got myself a CVS 2011-01-25 snapshot from https://github.com/gnuplot/gnuplot and tested against it, and it works for me (i.e. solves the problem). So I'd like to propose the following patch to fix the ylabel-not-rotated problem. diff --git a/src/win/wgraph.c b/src/win/wgraph.c --- a/src/win/wgraph.c +++ b/src/win/wgraph.c @@ -2613,9 +2613,10 @@ { int newfontsize; bool remakefonts = FALSE; + bool font_is_not_empty = (font != NULL) && (font[0] != '\0'); newfontsize = (fontsize != 0) ? fontsize : lpgw->deffontsize; - if (font != NULL) { + if (font_is_not_empty) { remakefonts = (strcmp(lpgw->fontname, font) != 0) || (newfontsize != lpgw->fontsize); } else { remakefonts = (strcmp(lpgw->fontname, lpgw->deffontname) != 0) || (newfontsize != lpgw->fontsize); @@ -2623,7 +2624,7 @@ if (remakefonts) { lpgw->fontsize = newfontsize; - strcpy(lpgw->fontname, (font) ? font : lpgw->deffontname); + strcpy(lpgw->fontname, font_is_not_empty ? font : lpgw->deffontname); DestroyFonts(lpgw); MakeFonts(lpgw, &rect, hdc); diff --git a/term/win.trm b/term/win.trm --- a/term/win.trm +++ b/term/win.trm @@ -730,7 +730,6 @@ int fontsize; if (font == NULL) { - GraphOp(&graphwin, W_font, 0, 0, ""); strcpy(WIN_font, graphwin.deffontname); WIN_fontsize = graphwin.deffontsize; return TRUE; The problem of the enhanced text positioning is fixed with the patch suggested at http://article.gmane.org/gmane.comp.graphics.gnuplot.devel/9905 which still applies for the 2011-01-25 CVS snapshot. benjamin |
|
From: Tatsuro M. <tma...@ya...> - 2011-02-09 21:58:36
|
Hello --- Mojca Miklavec <moj...@gm...> wrote: > On Wed, Feb 9, 2011 at 10:48, Tatsuro MATSUOKA wrote: > If anyone wants, the downloads are also available here: > https://github.com/gnuplot/gnuplot > (and complete history). Oh! It's nice. Thanks!! Tatsuro -------------------------------------- Get the new Internet Explorer 8 optimized for Yahoo! JAPAN http://pr.mail.yahoo.co.jp/ie8/ |
|
From: Hans-Bernhard B. <HBB...@t-...> - 2011-02-09 18:38:53
|
On 09.02.2011 12:30, Peter Juhasz wrote: > But in light of Sourceforge's response to this attack What exactly do you mean by that? If you have some concrete criticism, let's hear it. Otherwise I'm afraid I have to accuse you of spreading FUD. It's hard to see how SourceForge's reaction could have been any better. They've taken the issue as seriously as it gets, and they're drawing the _right_ consequences, in favour of the crowd-pleasing ones. Yes, that means things take time. But this clearly a case where it's better to be safe than quick. > we might want to think about ditching them altogether and move to a > different service. Pardon the French, but you're being silly. Whatever makes you think that other companies would fare any better than SF.net, under similar circumstances? |
|
From: Peter J. <pet...@gm...> - 2011-02-09 11:30:39
|
On Wed, Feb 9, 2011 at 10:48 AM, Tatsuro MATSUOKA <tma...@ya...> wrote: > Hello > > The sourceforge cvs tree have been down more than two weeks. [snip] > Any comments and suggestions ? > > Regards > > Tatsuro Now that the issue has been raised, I cannot help but wonder about the implications of this mishap on gnuplot's future. Sourceforge's admins have already expressed their intent of discontinuing their CVS service (see http://sourceforge.net/blog/sourceforge-attack-full-report/ ), meaning that gnuplot will have to migrate to SVN, git, or something else. Not that that would be a bad thing in itself, on the contrary, I'd consider any of the alternatives better than CVS. But in light of Sourceforge's response to this attack (and, well, according to some rumors, certain nefarious individuals were coming and going inside Sourceforge's system at will for quite some time now), we might want to think about ditching them altogether and move to a different service. Péter Juhász |
|
From: Mojca M. <moj...@gm...> - 2011-02-09 10:07:06
|
On Wed, Feb 9, 2011 at 10:48, Tatsuro MATSUOKA wrote: > Hello > > The sourceforge cvs tree have been down more than two weeks. > Shigeharu Takeno and I discussed this matter. > We propose the distribution cvs source (2011-01-25) tar ball until the cvs server will come back for > users' convenience. > > We can access the source tar all the below > http://takeno.iee.niit.ac.jp/%7Eshige/unix/gnuplot/data/gnuplot-4.5.0-20110125.tar.gz > > Any comments and suggestions ? If anyone wants, the downloads are also available here: https://github.com/gnuplot/gnuplot (and complete history). I think that just clicking "Downloads" -> "Download .tar.gz" should get you the latest files, even though I'm not sure where the strange default name of downloaded file comes from (gnuplot-4-4-alpha-570-gcb5a396.tar.gz; the gcb5a396 are he first few characters from the sha hash, but "4-4-alpha" must come from some earlier tag ... 2009/05/31). I also have a complete backup of the CVS repository if that serves anyone ... Mojca |
|
From: Tatsuro M. <tma...@ya...> - 2011-02-09 09:48:42
|
Hello The sourceforge cvs tree have been down more than two weeks. Shigeharu Takeno and I discussed this matter. We propose the distribution cvs source (2011-01-25) tar ball until the cvs server will come back for users' convenience. We can access the source tar all the below http://takeno.iee.niit.ac.jp/%7Eshige/unix/gnuplot/data/gnuplot-4.5.0-20110125.tar.gz Any comments and suggestions ? Regards Tatsuro -------------------------------------- Get the new Internet Explorer 8 optimized for Yahoo! JAPAN http://pr.mail.yahoo.co.jp/ie8/ |
|
From: Tatsuro M. <tma...@ya...> - 2011-02-09 04:40:43
|
Hello Sorry for misunderstood. I will check initial position of superscript at various windows size like set term win enh size 600, 300 plot [0:2*pi] sin(x) with linespoints set ylabel "something in mm^2" replot set term win enh size 600, 400 plot [0:2*pi] sin(x) with linespoints set ylabel "something in mm^2" replot set term win enh size 600, 500 plot [0:2*pi] sin(x) with linespoints set ylabel "something in mm^2" replot set term win enh size 600, 600 plot [0:2*pi] sin(x) with linespoints set ylabel "something in mm^2" replot Am I right? Regards Tatsuro --- Benjamin Lindner wrote: > >> The offending command happens in WIN_set_text(NULL), which places a > >> W_font command in the queue with an empty font name. Removing this one > >> solves the problem > > > > With the patch above, > > > > set term windows enhanced > > plot [0:2*pi] sin(x) with linespoints > > set ylabel "something in mm^2" > > replot > > > > The relative position superscript '2' still changed when windows size changed. > > > >> Second proposal: > > > > The relative position superscript '2' also still changed when windows size changed. > > No you misunderstood. The problem is that the ylabel is not printed > rotated by 90 degrees, but simply horizontally, and *this* should be > fixed with either one of these patches. > > The fact that the relative positioning changes if you change the graph > window's size is inherent to the way gnuplot works. To fix this you'd > have to change the design of how gnuplot handles text output, and > that's not the topic of this patch. > The bug about that I reported in a differnet thread is that it at the > moment the positioning is wrong even for the initial graph window - > and that is fixed with the proposed patch in the respective thread. > Changing the graph window size manually will still distort the whole > plot (not only the relative positioning of the text). > > benjamin > -------------------------------------- Get the new Internet Explorer 8 optimized for Yahoo! JAPAN http://pr.mail.yahoo.co.jp/ie8/ |
|
From: Benjamin L. <bj...@gm...> - 2011-02-08 06:39:33
|
>> The offending command happens in WIN_set_text(NULL), which places a >> W_font command in the queue with an empty font name. Removing this one >> solves the problem > > With the patch above, > > set term windows enhanced > plot [0:2*pi] sin(x) with linespoints > set ylabel "something in mm^2" > replot > > The relative position superscript '2' still changed when windows size changed. >> Second proposal: > > The relative position superscript '2' also still changed when windows size changed. No you misunderstood. The problem is that the ylabel is not printed rotated by 90 degrees, but simply horizontally, and *this* should be fixed with either one of these patches. The fact that the relative positioning changes if you change the graph window's size is inherent to the way gnuplot works. To fix this you'd have to change the design of how gnuplot handles text output, and that's not the topic of this patch. The bug about that I reported in a differnet thread is that it at the moment the positioning is wrong even for the initial graph window - and that is fixed with the proposed patch in the respective thread. Changing the graph window size manually will still distort the whole plot (not only the relative positioning of the text). benjamin |
|
From: Tatsuro M. <tma...@ya...> - 2011-02-07 23:49:34
|
Hello
--- Benjamin Lindner wrote:
> >
> > OK. So I will have to leave it to you guys to figure out what the problem
> > is, since it doesn't show up on my linux+wine setup.
>
> Here we go:
> The offending command happens in WIN_set_text(NULL), which places a
> W_font command in the queue with an empty font name. Removing this one
> solves the problem
>
> diff --git a/src/term/win.trm b/src/term/win.trm
> --- a/src/term/win.trm
> +++ b/src/term/win.trm
> @@ -730,7 +730,6 @@
> int fontsize;
>
> if (font == NULL) {
> - GraphOp(&graphwin, W_font, 0, 0, "");
> strcpy(WIN_font, graphwin.deffontname);
> WIN_fontsize = graphwin.deffontsize;
> return TRUE;
>
> I am not sure this command should be there anyway, I don't really see
> its purpose.
> Tatsuro can you check if this also fixes the problem for you?
The patch cannot be applied to the source that I have so that I manually attached it.
--- wgraph.orig.c 2011-01-25 06:52:59 +0900
+++ wgraph.c 2011-02-08 08:35:31 +0900
@@ -2632,9 +2632,10 @@
{
int newfontsize;
bool remakefonts = FALSE;
+ bool font_is_not_empty = (font != NULL) && (font[0] != '\0');
newfontsize = (fontsize != 0) ? fontsize : lpgw->deffontsize;
- if (font != NULL) {
+ if (font_is_not_empty) {
remakefonts = (strcmp(lpgw->fontname, font) != 0) || (newfontsize != lpgw->fontsize);
} else {
remakefonts = (strcmp(lpgw->fontname, lpgw->deffontname) != 0) || (newfontsize != lpgw->fontsize);
@@ -2642,7 +2643,7 @@
if (remakefonts) {
lpgw->fontsize = newfontsize;
- strcpy(lpgw->fontname, (font) ? font : lpgw->deffontname);
+ strcpy(lpgw->fontname, font_is_not_empty ? font : lpgw->deffontname);
DestroyFonts(lpgw);
MakeFonts(lpgw, &rect, hdc);
With the patch above,
set term windows enhanced
plot [0:2*pi] sin(x) with linespoints
set ylabel "something in mm^2"
replot
The relative position superscript '2' still changed when windows size changed.
> Second proposal:
> Make GraphChangeFonts() more robust like:
>
> diff --git a/src/src/win/wgraph.c b/src/src/win/wgraph.c
> --- a/src/src/win/wgraph.c
> +++ b/src/src/win/wgraph.c
> @@ -2613,9 +2613,10 @@
> {
> int newfontsize;
> bool remakefonts = FALSE;
> + bool font_is_not_empty = (font != NULL) && (font[0] != '\0');
>
> newfontsize = (fontsize != 0) ? fontsize : lpgw->deffontsize;
> - if (font != NULL) {
> + if (font_is_not_empty) {
> remakefonts = (strcmp(lpgw->fontname, font) != 0) ||
> (newfontsize != lpgw->fontsize);
> } else {
> remakefonts = (strcmp(lpgw->fontname, lpgw->deffontname) != 0)
> || (newfontsize != lpgw->fontsize);
> @@ -2623,7 +2624,7 @@
>
> if (remakefonts) {
> lpgw->fontsize = newfontsize;
> - strcpy(lpgw->fontname, (font) ? font : lpgw->deffontname);
> + strcpy(lpgw->fontname, font_is_not_empty ? font : lpgw->deffontname);
>
> DestroyFonts(lpgw);
> MakeFonts(lpgw, &rect, hdc);
>
>
> This would ensure the behaviour of "" meaning "the default font" on
> the low level terminal code.
> Could you check this also Tatsuro?
With the patch above,
set term windows enhanced
plot [0:2*pi] sin(x) with linespoints
set ylabel "something in mm^2"
replot
The relative position superscript '2' also still changed when windows size changed.
Regards
Tatsuro
--------------------------------------
Get the new Internet Explorer 8 optimized for Yahoo! JAPAN
http://pr.mail.yahoo.co.jp/ie8/
|
|
From: Benjamin L. <bj...@gm...> - 2011-02-07 08:22:44
|
>
> OK. So I will have to leave it to you guys to figure out what the problem
> is, since it doesn't show up on my linux+wine setup.
Here we go:
The offending command happens in WIN_set_text(NULL), which places a
W_font command in the queue with an empty font name. Removing this one
solves the problem
diff --git a/src/term/win.trm b/src/term/win.trm
--- a/src/term/win.trm
+++ b/src/term/win.trm
@@ -730,7 +730,6 @@
int fontsize;
if (font == NULL) {
- GraphOp(&graphwin, W_font, 0, 0, "");
strcpy(WIN_font, graphwin.deffontname);
WIN_fontsize = graphwin.deffontsize;
return TRUE;
I am not sure this command should be there anyway, I don't really see
its purpose.
Tatsuro can you check if this also fixes the problem for you?
Second proposal:
Make GraphChangeFonts() more robust like:
diff --git a/src/src/win/wgraph.c b/src/src/win/wgraph.c
--- a/src/src/win/wgraph.c
+++ b/src/src/win/wgraph.c
@@ -2613,9 +2613,10 @@
{
int newfontsize;
bool remakefonts = FALSE;
+ bool font_is_not_empty = (font != NULL) && (font[0] != '\0');
newfontsize = (fontsize != 0) ? fontsize : lpgw->deffontsize;
- if (font != NULL) {
+ if (font_is_not_empty) {
remakefonts = (strcmp(lpgw->fontname, font) != 0) ||
(newfontsize != lpgw->fontsize);
} else {
remakefonts = (strcmp(lpgw->fontname, lpgw->deffontname) != 0)
|| (newfontsize != lpgw->fontsize);
@@ -2623,7 +2624,7 @@
if (remakefonts) {
lpgw->fontsize = newfontsize;
- strcpy(lpgw->fontname, (font) ? font : lpgw->deffontname);
+ strcpy(lpgw->fontname, font_is_not_empty ? font : lpgw->deffontname);
DestroyFonts(lpgw);
MakeFonts(lpgw, &rect, hdc);
This would ensure the behaviour of "" meaning "the default font" on
the low level terminal code.
Could you check this also Tatsuro?
I'm inclined to the first solution, but I'd like a second opinion on this.
> Does any recent MSWindows version ever provide a font that truly cannot
> be rotated? It may be that test and the flag for rotatable fonts is
> obsolete, and the corrsponding section of code in the routine MakeFonts()
> is no longer needed.
>
> If that is true, the simplest fix may be to change the first line of
> MakeFonts() so that it always sets lpgw->rotate = TRUE;
I honestly couldn't tell about window's fonts. The default font
certainly is rotatable, I guess all truetype/outline fonts are. I
don't know about monospaced bitmap fonts. I'd say: keep the test in
MakeFonts().
benjamin
|
|
From: Benjamin L. <bj...@gm...> - 2011-02-07 08:07:58
|
>> This happens, because GraphChangeFont() is called with an empty font
>> name (not a NULL pointer, but the empty string ""). MakeFonts(), when
>> presented with a font name which is empty, resets graphwin.rotate to
>> FALSE.
>
> It should not do that.
> An empty string means "restore the default font".
> So unless the default font is for some reason non-rotatable,
> WIN_text_angle should always return TRUE.
Yes, on the high-level interface, true. But MakeFonts() is way down
low-level in the windows terminal.
WIN_set_text("") handles the reset-to-default-font action.
So actually MakeFonts() should never be presented with an empty font
name, only the terminal's default font name.
benjamin
|
|
From: Tatsuro M. <tma...@ya...> - 2011-02-05 20:04:12
|
Sorry I have confused the thread. http://old.nabble.com/Enhanced-rotated-text-incorrectly-positioned-for-windows-terminal-td30835684.html The problem I found is same as that pointed the above. The problem seemed to be solved the above problem. For, http://old.nabble.com/ylabel-not-rotated-for-enhanced-windows-terminal-td30842940.html I have confirmed that no rotation problems occured. Sorry for the noise. Regards --- Tatsuro MATSUOKA wrote: > Hello > > Sorry. > What I saw is not the same the Beenjamin. > Relative position problem also occur in x axis. > > Anyway there are some problems in enhaced text in the windows terminal. > > Regards > > Tatsuro > > --- Tatsuro MATSUOKA wrote: > > > Hello > > > > What Bejhamin suggested is not rotation it self. Relative positioning enhanced text. > > > > In the example script, > > position of {/Symbol m} relative position to other text strange. Relative position of > {/Symbol > > m} to > > other text item is changed when resizing plot windows in y direction. > > > > Please see > > > > http://www.geocities.jp/tmgpltwin/Files/Files.html#0052 > > 0052 20110206_01.png > > 0053 20110206_02.png > > > > For the label in x direction does not suffer from such error. > > > > Regards > > > > Tatsuro > > > > > On Saturday, February 05, 2011, Tatsuro MATSUOKA wrote: > > > > Hello > > > > > > > > --- Ethan A Merritt wrote: > > > > > I should note that I cannot reproduce this bug using Tatsuro Matsuoka's CVS > > > > > snapshot from 18-Jan-2011 running under wine. So it may or may not be an > > > > > actual code problem as opposed to a configuration problem. > > > > > > > > > > Ethan > > > > ***********Benajamin wrote > > > > For the windows terminal, when using rotated enhanced text (e.g. for > > > > the ylabel) the text positioning is buggy. > > > > This manifests itself with either sub/superscripts or font changes > > > > (e.g. something like "pressure in N/mm^2" or "height in {/Symbol m}m") > > > > - see the testcase below > > > > ************************** > > > > > > > > I have confirmed what Benjamin suggested using my cvs binary (2011-01-25). > > > > > > > > Regards > > > > > > > > Tatsuro > > > > > > OK. So I will have to leave it to you guys to figure out what the problem > > > is, since it doesn't show up on my linux+wine setup. > > > > > > Does any recent MSWindows version ever provide a font that truly cannot > > > be rotated? It may be that test and the flag for rotatable fonts is > > > obsolete, and the corrsponding section of code in the routine MakeFonts() > > > is no longer needed. > > > > > > If that is true, the simplest fix may be to change the first line of > > > MakeFonts() so that it always sets lpgw->rotate = TRUE; > > > > > > > > > -------------------------------------- > > Get the new Internet Explorer 8 optimized for Yahoo! JAPAN > > http://pr.mail.yahoo.co.jp/ie8/ > > > > ------------------------------------------------------------------------------ > > The modern datacenter depends on network connectivity to access resources > > and provide services. The best practices for maximizing a physical server's > > connectivity to a physical network are well understood - see how these > > rules translate into the virtual world? > > http://p.sf.net/sfu/oracle-sfdevnlfb > > _______________________________________________ > > gnuplot-beta mailing list > > gnu...@li... > > https://lists.sourceforge.net/lists/listinfo/gnuplot-beta > > > > > -------------------------------------- > Get the new Internet Explorer 8 optimized for Yahoo! JAPAN > http://pr.mail.yahoo.co.jp/ie8/ > -------------------------------------- Get the new Internet Explorer 8 optimized for Yahoo! JAPAN http://pr.mail.yahoo.co.jp/ie8/ |
|
From: Tatsuro M. <tma...@ya...> - 2011-02-05 19:50:54
|
Hello
Sorry.
What I saw is not the same as the Beenjamin.
Relative position problem also occur in x axis.
Anyway there are some problems in enhaced text in the windows terminal.
Regards
Tatsuro
--- Tatsuro MATSUOKA wrote:
> Hello
>
> What Bejhamin suggested is not rotation it self. Relative positioning enhanced text.
>
> In the example script,
> position of {/Symbol m} relative position to other text strange. Relative position of {/Symbol
> m} to
> other text item is changed when resizing plot windows in y direction.
>
> Please see
>
> http://www.geocities.jp/tmgpltwin/Files/Files.html#0052
> 0052 20110206_01.png
> 0053 20110206_02.png
>
> For the label in x direction does not suffer from such error.
>
> Regards
>
> Tatsuro
>
> > On Saturday, February 05, 2011, Tatsuro MATSUOKA wrote:
> > > Hello
> > >
> > > --- Ethan A Merritt wrote:
> > > > I should note that I cannot reproduce this bug using Tatsuro Matsuoka's CVS
> > > > snapshot from 18-Jan-2011 running under wine. So it may or may not be an
> > > > actual code problem as opposed to a configuration problem.
> > > >
> > > > Ethan
> > > ***********Benajamin wrote
> > > For the windows terminal, when using rotated enhanced text (e.g. for
> > > the ylabel) the text positioning is buggy.
> > > This manifests itself with either sub/superscripts or font changes
> > > (e.g. something like "pressure in N/mm^2" or "height in {/Symbol m}m")
> > > - see the testcase below
> > > **************************
> > >
> > > I have confirmed what Benjamin suggested using my cvs binary (2011-01-25).
> > >
> > > Regards
> > >
> > > Tatsuro
> >
> > OK. So I will have to leave it to you guys to figure out what the problem
> > is, since it doesn't show up on my linux+wine setup.
> >
> > Does any recent MSWindows version ever provide a font that truly cannot
> > be rotated? It may be that test and the flag for rotatable fonts is
> > obsolete, and the corrsponding section of code in the routine MakeFonts()
> > is no longer needed.
> >
> > If that is true, the simplest fix may be to change the first line of
> > MakeFonts() so that it always sets lpgw->rotate = TRUE;
> >
>
>
> --------------------------------------
> Get the new Internet Explorer 8 optimized for Yahoo! JAPAN
> http://pr.mail.yahoo.co.jp/ie8/
>
> ------------------------------------------------------------------------------
> The modern datacenter depends on network connectivity to access resources
> and provide services. The best practices for maximizing a physical server's
> connectivity to a physical network are well understood - see how these
> rules translate into the virtual world?
> http://p.sf.net/sfu/oracle-sfdevnlfb
> _______________________________________________
> gnuplot-beta mailing list
> gnu...@li...
> https://lists.sourceforge.net/lists/listinfo/gnuplot-beta
>
--------------------------------------
Get the new Internet Explorer 8 optimized for Yahoo! JAPAN
http://pr.mail.yahoo.co.jp/ie8/
|
|
From: Tatsuro M. <tma...@ya...> - 2011-02-05 19:31:54
|
Hello
What Bejhamin suggested is not rotation it self. Relative positioning enhanced text.
In the example script,
position of {/Symbol m} relative position to other text strange. Relative position of {/Symbol m} to
other text item is changed when resizing plot windows in y direction.
Please see
http://www.geocities.jp/tmgpltwin/Files/Files.html#0052
0052 20110206_01.png
0053 20110206_02.png
For the label in x direction does not suffer from such error.
Regards
Tatsuro
> On Saturday, February 05, 2011, Tatsuro MATSUOKA wrote:
> > Hello
> >
> > --- Ethan A Merritt wrote:
> > > I should note that I cannot reproduce this bug using Tatsuro Matsuoka's CVS
> > > snapshot from 18-Jan-2011 running under wine. So it may or may not be an
> > > actual code problem as opposed to a configuration problem.
> > >
> > > Ethan
> > ***********Benajamin wrote
> > For the windows terminal, when using rotated enhanced text (e.g. for
> > the ylabel) the text positioning is buggy.
> > This manifests itself with either sub/superscripts or font changes
> > (e.g. something like "pressure in N/mm^2" or "height in {/Symbol m}m")
> > - see the testcase below
> > **************************
> >
> > I have confirmed what Benjamin suggested using my cvs binary (2011-01-25).
> >
> > Regards
> >
> > Tatsuro
>
> OK. So I will have to leave it to you guys to figure out what the problem
> is, since it doesn't show up on my linux+wine setup.
>
> Does any recent MSWindows version ever provide a font that truly cannot
> be rotated? It may be that test and the flag for rotatable fonts is
> obsolete, and the corrsponding section of code in the routine MakeFonts()
> is no longer needed.
>
> If that is true, the simplest fix may be to change the first line of
> MakeFonts() so that it always sets lpgw->rotate = TRUE;
>
--------------------------------------
Get the new Internet Explorer 8 optimized for Yahoo! JAPAN
http://pr.mail.yahoo.co.jp/ie8/
|
|
From: sfeam (E. Merritt) <eam...@gm...> - 2011-02-05 18:46:47
|
On Saturday, February 05, 2011, Tatsuro MATSUOKA wrote:
> Hello
>
> --- Ethan A Merritt wrote:
> > I should note that I cannot reproduce this bug using Tatsuro Matsuoka's CVS
> > snapshot from 18-Jan-2011 running under wine. So it may or may not be an
> > actual code problem as opposed to a configuration problem.
> >
> > Ethan
> ***********Benajamin wrote
> For the windows terminal, when using rotated enhanced text (e.g. for
> the ylabel) the text positioning is buggy.
> This manifests itself with either sub/superscripts or font changes
> (e.g. something like "pressure in N/mm^2" or "height in {/Symbol m}m")
> - see the testcase below
> **************************
>
> I have confirmed what Benjamin suggested using my cvs binary (2011-01-25).
>
> Regards
>
> Tatsuro
OK. So I will have to leave it to you guys to figure out what the problem
is, since it doesn't show up on my linux+wine setup.
Does any recent MSWindows version ever provide a font that truly cannot
be rotated? It may be that test and the flag for rotatable fonts is
obsolete, and the corrsponding section of code in the routine MakeFonts()
is no longer needed.
If that is true, the simplest fix may be to change the first line of
MakeFonts() so that it always sets lpgw->rotate = TRUE;
|
|
From: Tatsuro M. <tma...@ya...> - 2011-02-05 17:07:19
|
Hello
--- Ethan A Merritt wrote:
> I should note that I cannot reproduce this bug using Tatsuro Matsuoka's CVS
> snapshot from 18-Jan-2011 running under wine. So it may or may not be an
> actual code problem as opposed to a configuration problem.
>
> Ethan
***********Benajamin wrote
For the windows terminal, when using rotated enhanced text (e.g. for
the ylabel) the text positioning is buggy.
This manifests itself with either sub/superscripts or font changes
(e.g. something like "pressure in N/mm^2" or "height in {/Symbol m}m")
- see the testcase below
**************************
I have confirmed what Benjamin suggested using my cvs binary (2011-01-25).
Regards
Tatsuro
--------------------------------------
Get the new Internet Explorer 8 optimized for Yahoo! JAPAN
http://pr.mail.yahoo.co.jp/ie8/
|