You can subscribe to this list here.
| 2003 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(2) |
Nov
(2) |
Dec
|
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2004 |
Jan
(3) |
Feb
(1) |
Mar
(2) |
Apr
(22) |
May
(52) |
Jun
(43) |
Jul
(36) |
Aug
(59) |
Sep
(37) |
Oct
(55) |
Nov
(39) |
Dec
(36) |
| 2005 |
Jan
(64) |
Feb
(40) |
Mar
(62) |
Apr
(58) |
May
(256) |
Jun
(77) |
Jul
(80) |
Aug
(39) |
Sep
(56) |
Oct
(36) |
Nov
(113) |
Dec
(68) |
| 2006 |
Jan
(43) |
Feb
(64) |
Mar
(69) |
Apr
(60) |
May
(71) |
Jun
(53) |
Jul
(63) |
Aug
(63) |
Sep
(76) |
Oct
(85) |
Nov
(82) |
Dec
(73) |
| 2007 |
Jan
(75) |
Feb
(82) |
Mar
(84) |
Apr
(104) |
May
(67) |
Jun
(101) |
Jul
(107) |
Aug
(138) |
Sep
(128) |
Oct
(106) |
Nov
(112) |
Dec
(112) |
| 2008 |
Jan
(94) |
Feb
(87) |
Mar
(146) |
Apr
(169) |
May
(75) |
Jun
(26) |
Jul
(26) |
Aug
(7) |
Sep
(18) |
Oct
(53) |
Nov
(42) |
Dec
(19) |
| 2009 |
Jan
(43) |
Feb
(39) |
Mar
(18) |
Apr
(45) |
May
(66) |
Jun
(87) |
Jul
(56) |
Aug
(41) |
Sep
(56) |
Oct
(139) |
Nov
(98) |
Dec
(88) |
| 2010 |
Jan
(81) |
Feb
(79) |
Mar
(83) |
Apr
(97) |
May
(124) |
Jun
(84) |
Jul
(53) |
Aug
(85) |
Sep
(89) |
Oct
(50) |
Nov
(98) |
Dec
(78) |
| 2011 |
Jan
(97) |
Feb
(74) |
Mar
(68) |
Apr
(54) |
May
(63) |
Jun
(59) |
Jul
(65) |
Aug
(58) |
Sep
(37) |
Oct
(40) |
Nov
(59) |
Dec
(35) |
| 2012 |
Jan
(16) |
Feb
(56) |
Mar
(63) |
Apr
(25) |
May
(48) |
Jun
(58) |
Jul
(20) |
Aug
(13) |
Sep
(43) |
Oct
(35) |
Nov
(20) |
Dec
(17) |
| 2013 |
Jan
(22) |
Feb
(11) |
Mar
(51) |
Apr
(34) |
May
(57) |
Jun
(27) |
Jul
(70) |
Aug
(30) |
Sep
(38) |
Oct
(53) |
Nov
(40) |
Dec
(25) |
| 2014 |
Jan
(26) |
Feb
(35) |
Mar
(60) |
Apr
(12) |
May
(17) |
Jun
(15) |
Jul
(9) |
Aug
(18) |
Sep
(46) |
Oct
(18) |
Nov
(19) |
Dec
(15) |
| 2015 |
Jan
(17) |
Feb
(28) |
Mar
(21) |
Apr
(54) |
May
(36) |
Jun
(8) |
Jul
(30) |
Aug
(13) |
Sep
(3) |
Oct
(28) |
Nov
(3) |
Dec
(3) |
| 2016 |
Jan
(11) |
Feb
(9) |
Mar
(29) |
Apr
(10) |
May
(8) |
Jun
(5) |
Jul
(50) |
Aug
(57) |
Sep
(13) |
Oct
(5) |
Nov
(17) |
Dec
(11) |
| 2017 |
Jan
(3) |
Feb
(23) |
Mar
(16) |
Apr
(7) |
May
(15) |
Jun
(12) |
Jul
(48) |
Aug
(15) |
Sep
(3) |
Oct
(20) |
Nov
(28) |
Dec
(21) |
| 2018 |
Jan
(13) |
Feb
(21) |
Mar
(21) |
Apr
(7) |
May
(3) |
Jun
(7) |
Jul
(27) |
Aug
(38) |
Sep
(4) |
Oct
(30) |
Nov
(22) |
Dec
|
| 2019 |
Jan
(5) |
Feb
(16) |
Mar
(1) |
Apr
(9) |
May
(7) |
Jun
(20) |
Jul
(13) |
Aug
(3) |
Sep
(2) |
Oct
(2) |
Nov
(2) |
Dec
(4) |
| 2020 |
Jan
(6) |
Feb
(11) |
Mar
(1) |
Apr
(18) |
May
(4) |
Jun
(5) |
Jul
(12) |
Aug
(1) |
Sep
(3) |
Oct
(7) |
Nov
(1) |
Dec
(17) |
| 2021 |
Jan
(1) |
Feb
(11) |
Mar
(16) |
Apr
(6) |
May
(5) |
Jun
(1) |
Jul
(1) |
Aug
(2) |
Sep
(8) |
Oct
(10) |
Nov
(4) |
Dec
(4) |
| 2022 |
Jan
(9) |
Feb
(35) |
Mar
(4) |
Apr
|
May
(3) |
Jun
(49) |
Jul
(11) |
Aug
|
Sep
(5) |
Oct
(2) |
Nov
(16) |
Dec
(13) |
| 2023 |
Jan
|
Feb
(8) |
Mar
(3) |
Apr
|
May
(8) |
Jun
|
Jul
(5) |
Aug
|
Sep
|
Oct
(2) |
Nov
|
Dec
(2) |
| 2024 |
Jan
(6) |
Feb
(9) |
Mar
|
Apr
(26) |
May
(24) |
Jun
|
Jul
(4) |
Aug
(2) |
Sep
(1) |
Oct
(10) |
Nov
(9) |
Dec
|
| 2025 |
Jan
|
Feb
(22) |
Mar
|
Apr
(1) |
May
|
Jun
|
Jul
|
Aug
|
Sep
(1) |
Oct
(1) |
Nov
|
Dec
(4) |
| 2026 |
Jan
|
Feb
(24) |
Mar
(20) |
Apr
(18) |
May
(2) |
Jun
(2) |
Jul
(2) |
Aug
(3) |
Sep
(6) |
Oct
(3) |
Nov
(2) |
Dec
|
|
From: Jelle de J. <jel...@po...> - 2018-07-25 19:13:51
|
Hello everybody, I am patching up some older tool that uses gnuplot to generate documents and I could use some help, with the gnuplot input syntax reference. /usr/bin/gnuplot --version gnuplot 4.6 patchlevel 2 This is my old gnuplot input file: https://paste.debian.net/hidden/4e7b108e/ In the new output some of the lines are the wrong colour. What are the commands responsible for the lines? So I can check and reference the old and new syntax and change the input file? Thank you. Kind regards and best wishes, Jelle de Jong |
|
From: theozh <th...@gm...> - 2018-07-21 06:36:28
|
Hi, I was searching for a visual compilation of the predefined colors in gnuplot. But so far, I couldn't find one.
So, just in case anybody might be interested... here is a code to do it yourself. This still can be fine tuned and improved. The color names and values are taken from "show colornames" in gnuplot 5.2rc4.
### gnuplot script to display all predefined gnuplot colors
reset
set term wxt size 1000,700
array ColorNames[111] = ['white', 'black', 'dark-grey', 'red', 'web-green', \
'web-blue', 'dark-magenta', 'dark-cyan', 'dark-orange', 'dark-yellow', \
'royalblue', 'goldenrod', 'dark-spring-green', 'purple', 'steelblue', \
'dark-red', 'dark-chartreuse', 'orchid', 'aquamarine', 'brown', 'yellow', \
'turquoise', 'grey0', 'grey10', 'grey20', 'grey30', 'grey40', 'grey50', \
'grey60', 'grey70', 'grey', 'grey80', 'grey90', 'grey100', 'light-red', \
'light-green', 'light-blue', 'light-magenta', 'light-cyan', \
'light-goldenrod', 'light-pink', 'light-turquoise', 'gold', 'green', \
'dark-green', 'spring-green', 'forest-green', 'sea-green', 'blue', \
'dark-blue', 'midnight-blue', 'navy', 'medium-blue', 'skyblue', 'cyan', \
'magenta', 'dark-turquoise', 'dark-pink', 'coral', 'light-coral', \
'orange-red', 'salmon', 'dark-salmon', 'khaki', 'dark-khaki', \
'dark-goldenrod', 'beige', 'olive', 'orange', 'violet', 'dark-violet', \
'plum', 'dark-plum', 'dark-olivegreen', 'orangered4', 'brown4', 'sienna4', \
'orchid4', 'mediumpurple3', 'slateblue1', 'yellow4', 'sienna1', 'tan1', \
'sandybrown', 'light-salmon', 'pink', 'khaki1', 'lemonchiffon', 'bisque', \
'honeydew', 'slategrey', 'seagreen', 'antiquewhite', 'chartreuse', \
'greenyellow', 'gray', 'light-gray', 'light-grey', 'dark-gray', 'slategray', \
'gray0', 'gray10', 'gray20', 'gray30', 'gray40', 'gray50', 'gray60', \
'gray70', 'gray80', 'gray90', 'gray100']
array ColorCodes[111] = ['#ffffff', '#000000', '#a0a0a0', '#ff0000', \
'#00c000', '#0080ff', '#c000ff', '#00eeee', '#c04000', '#c8c800', '#4169e1', \
'#ffc020', '#008040', '#c080ff', '#306080', '#8b0000', '#408000', '#ff80ff', \
'#7fffd4', '#a52a2a', '#ffff00', '#40e0d0', '#000000', '#1a1a1a', '#333333', \
'#4d4d4d', '#666666', '#7f7f7f', '#999999', '#b3b3b3', '#c0c0c0', '#cccccc', \
'#e5e5e5', '#ffffff', '#f03232', '#90ee90', '#add8e6', '#f055f0', '#e0ffff', \
'#eedd82', '#ffb6c1', '#afeeee', '#ffd700', '#00ff00', '#006400', '#00ff7f', \
'#228b22', '#2e8b57', '#0000ff', '#00008b', '#191970', '#000080', '#0000cd', \
'#87ceeb', '#00ffff', '#ff00ff', '#00ced1', '#ff1493', '#ff7f50', '#f08080', \
'#ff4500', '#fa8072', '#e9967a', '#f0e68c', '#bdb76b', '#b8860b', '#f5f5dc', \
'#a08020', '#ffa500', '#ee82ee', '#9400d3', '#dda0dd', '#905040', '#556b2f', \
'#801400', '#801414', '#804014', '#804080', '#8060c0', '#8060ff', '#808000', \
'#ff8040', '#ffa040', '#ffa060', '#ffa070', '#ffc0c0', '#ffff80', '#ffffc0', \
'#cdb79e', '#f0fff0', '#a0b6cd', '#c1ffc1', '#cdc0b0', '#7cff40', '#a0ff20', \
'#bebebe', '#d3d3d3', '#d3d3d3', '#a0a0a0', '#a0b6cd', '#000000', '#1a1a1a', \
'#333333', '#4d4d4d', '#666666', '#7f7f7f', '#999999', '#b3b3b3', '#cccccc', \
'#e5e5e5', '#ffffff']
#pick red, green, blue color hex string out
Red(ColorCode)= ColorCode[2:3]
Green(ColorCode)=ColorCode[4:5]
Blue(ColorCode)=ColorCode[6:7]
#convert a hex string to dec format
hex2dec(hex)=gprintf("%0.f",int('0X'.hex))
# get decimal number for R,G,B
R(ColorCode) = hex2dec(Red(ColorCode))
G(ColorCode) = hex2dec(Green(ColorCode))
B(ColorCode) = hex2dec(Blue(ColorCode))
# "empirical" formula do decide whether using a white or a black label on the colored background
LabelColor(ColorCode) = (R(ColorCode)+G(ColorCode)*1.5+B(ColorCode)*0.5)/3. > 127 ? "#000000" : "#ffffff"
# Settings
PosYOffset = 4.5
SizeX = 0.7
SizeY = 5
Cols = 10
# loop for placing colored rectangles and labels
do for[i=1:111] {
PosX = (i-1)%Cols + 1
PosY = (i-1)/Cols*10
set object i rectangle at PosX, PosY size SizeX,SizeY fc rgb ColorNames[i]
set label i at PosX, PosY+PosYOffset ColorNames[i] center font ",9"
set label 200+i at PosX, PosY ColorCodes[i] tc rgb LabelColor(ColorCodes[i]) center font ",9"
}
set title "Predefined colors in gnuplot"
set xrange[0.5:10.5]
set xtics 1
set link x2 via x inverse x
set x2tics 1
set yrange[119:-5] reverse
set ytics 10
set link y2 via y inverse y
set y2tics 10
# plot invisible dummy data
plot '-' w p ps 0 not
0 0
e
### end of gnuplot script
|
|
From: Tatsuro M. <tma...@ya...> - 2018-07-18 23:05:58
|
> ...and I have found out that if you open gnuplot as a console app it > doesn't need 100% of one CPU - even if it still refuses to open a plot > window in that case. No idea why. But - I don't even own an own windows > installation... > > - Windows allows to open applications with and without a console. > Opening gnuplot (or wgnuplot) causes 100% of one CPU to be consumed. > - Windows allows to hide the console. If the console of gnuplot or > wgnuplot is hidden the plot window is hidden, too. I think that this mailing list is not suitable to discuss what you wrote. Please post your issues to the bug ticket on gnuplot sourceforge site. https://sourceforge.net/p/gnuplot/bugs/ Bastian has been working extensively for gnuplot on native windows. I think that you should raise his attention on this matter. Tatsuro |
|
From: Kevin O. <rko...@gm...> - 2018-07-18 20:27:53
|
On Wed, Jul 18, 2018 at 10:10 AM, Gunter Königsmann <gu...@pe...> wrote: > I hate finding threads in the internet that don't contain a solution => > writing how far I got: > > - Windows allows to open applications with and without a console. > Opening gnuplot (or wgnuplot) causes 100% of one CPU to be consumed. > - Windows allows to hide the console. If the console of gnuplot or > wgnuplot is hidden the plot window is hidden, too. > > => I can open gnuplot with a console and show the console and will get a > plot - and a superfluous window. But I guess I can live with that. > > And I have to add a 3-line construct to my file in order to make the > console window autoclose whilst keeping the window live (aka reacting to > the mouse): > > > bind "Close" "exit gnuplot" > pause mouse close > exit > > Kind regards, > > Gunter. > > ------------------------------------------------------------ > ------------------ > I had that issue about 14 years ago and put in a signal handler that killed gnuplot on a SIGTERM or other terminating signals. (I was forking gnuplot off of a parent that used chat to communicate with gnuplot.) That is another approach that worked well before pause came on the scene. -- Kevin Oberman, Part time kid herder and retired Network Engineer E-mail: rko...@gm... PGP Fingerprint: D03FB98AFA78E3B78C1694B318AB39EF1B055683 |
|
From: Gunter K. <gu...@pe...> - 2018-07-18 17:10:17
|
I hate finding threads in the internet that don't contain a solution =>
writing how far I got:
- Windows allows to open applications with and without a console.
Opening gnuplot (or wgnuplot) causes 100% of one CPU to be consumed.
- Windows allows to hide the console. If the console of gnuplot or
wgnuplot is hidden the plot window is hidden, too.
=> I can open gnuplot with a console and show the console and will get a
plot - and a superfluous window. But I guess I can live with that.
And I have to add a 3-line construct to my file in order to make the
console window autoclose whilst keeping the window live (aka reacting to
the mouse):
bind "Close" "exit gnuplot"
pause mouse close
exit
Kind regards,
Gunter.
|
|
From: Gunter K. <gu...@pe...> - 2018-07-17 10:23:37
|
On 17.07.2018 01:49, Ethan A Merritt wrote: > On Monday, 16 July 2018 18:19:56 you wrote: >> Encountered another proble, this time on Ms Windows: the file I've sent with my first mail if gnuplot is started from the console opens a plot window. >> If started from wxMaxima, though, gnuplot 5.2 pl 4 uses 100% of one CPU and never opens the plot window. >> >> What might have gone wrong? > > Sorry, I can't help with Windows questions. > Did the bind command fix your original problem? It did. Thanks a lot! ...and I have found out that if you open gnuplot as a console app it doesn't need 100% of one CPU - even if it still refuses to open a plot window in that case. No idea why. But - I don't even own an own windows installation... Kind regards, Gunter. |
|
From: Gunter K. <gu...@pe...> - 2018-07-16 16:20:10
|
Encountered another proble, this time on Ms Windows: the file I've sent with my first mail if gnuplot is started from the console opens a plot window. If started from wxMaxima, though, gnuplot 5.2 pl 4 uses 100% of one CPU and never opens the plot window. What might have gone wrong? Kind regards, Gunter. Am 15. Juli 2018 23:31:27 MESZ schrieb Ethan A Merritt <EAM...@gm...>: >On Sunday, 15 July 2018 15:16:35 Gunter Königsmann wrote: >> > >> > That's from 10 years ago, but the answer is correct. >> > Instead of "pause -1" you want some variant of "pause mouse", >> > possibly "pause mouse close" >> > . >> >> That was exactly what I was searching for. >> >> On my gnuplot 5.2 patchlevel 2 it only nearly does what I want, >though: >> >> It waits until I first close the window and then press <enter> in the >> terminal I opened gnuplot from. If I first press <enter> in the >terminal >> and then close the gnuplot window or fail to press <enter> gnuplot >won't >> close. >> >> I'll attach a simple testfile to this mail. >> >> gnuplot wait.gnuplot >> >> doesn't work as expected but >> >> echo |gnuplot wait.gnuplot >> >> does. >> >> If I did the Right Thing perhaps I can mimic the latter command >somehow... > >I think you are running into idiosyncracies of the particular >desktop manager or environment. The issue is due partly to what >signal is sent when the plot window is closed, and which process that >signal is delivered to. There may also be a difference depending on >which interactive gnuplot terminal is being used. > >For my desktop (KDE 5) and the qt terminal, I get the behavior you >want if I close the plot window with "q" or "cntrl-q" but not if I >close it with "alt-F4" or the window border decoration "x". >Both qt and x11 work as desired if I add the command > > bind "Close" "exit gnuplot" > >before the pause command. > > > Ethan > >> >> Kind regards, >> >> Gunter. -- Diese Nachricht wurde von meinem Android-Gerät mit K-9 Mail gesendet. |
|
From: Ethan A M. <EAM...@gm...> - 2018-07-15 22:15:00
|
On Sunday, 15 July 2018 15:16:35 Gunter Königsmann wrote:
> >
> > That's from 10 years ago, but the answer is correct.
> > Instead of "pause -1" you want some variant of "pause mouse",
> > possibly "pause mouse close"
> > .
>
> That was exactly what I was searching for.
>
> On my gnuplot 5.2 patchlevel 2 it only nearly does what I want, though:
>
> It waits until I first close the window and then press <enter> in the
> terminal I opened gnuplot from. If I first press <enter> in the terminal
> and then close the gnuplot window or fail to press <enter> gnuplot won't
> close.
>
> I'll attach a simple testfile to this mail.
>
> gnuplot wait.gnuplot
>
> doesn't work as expected but
>
> echo |gnuplot wait.gnuplot
>
> does.
>
> If I did the Right Thing perhaps I can mimic the latter command somehow...
I think you are running into idiosyncracies of the particular
desktop manager or environment. The issue is due partly to what
signal is sent when the plot window is closed, and which process that
signal is delivered to. There may also be a difference depending on
which interactive gnuplot terminal is being used.
For my desktop (KDE 5) and the qt terminal, I get the behavior you
want if I close the plot window with "q" or "cntrl-q" but not if I
close it with "alt-F4" or the window border decoration "x".
Both qt and x11 work as desired if I add the command
bind "Close" "exit gnuplot"
before the pause command.
Ethan
>
> Kind regards,
>
> Gunter.
|
|
From: Gunter K. <gu...@pe...> - 2018-07-15 13:16:49
|
> > That's from 10 years ago, but the answer is correct. > Instead of "pause -1" you want some variant of "pause mouse", > possibly "pause mouse close" > . That was exactly what I was searching for. On my gnuplot 5.2 patchlevel 2 it only nearly does what I want, though: It waits until I first close the window and then press <enter> in the terminal I opened gnuplot from. If I first press <enter> in the terminal and then close the gnuplot window or fail to press <enter> gnuplot won't close. I'll attach a simple testfile to this mail. gnuplot wait.gnuplot doesn't work as expected but echo |gnuplot wait.gnuplot does. If I did the Right Thing perhaps I can mimic the latter command somehow... Kind regards, Gunter. |
|
From: Ethan A M. <eam...@gm...> - 2018-07-14 20:57:00
|
On Saturday, 14 July 2018 22:41:09 Gunter Königsmann wrote: > Dear all, > > wxMaxima allows to automatically embed gnuplot plots into a maths > worksheet: The plot is generated with the png (or pngcairo) terminal and > the bitmap is embedded. Tomorrow's nightly build also on right-clicking > a plot allows to start a separate gnuplot process - which popups a > window in which the user can interactively turn a 3d plot, zoom in and > out or measure coordinates with the cursor. There is a problem left, though: > > - If I start gnuplot as "gnuplot -p /tmp/maxoutXXX.gnuplot" gnuplot > closes when the user closes gnuplot's plot window. But the displayed > graphics is is not interactive (for example a 3d image cannot be turned > using the mouse) > - and if /tmp/maxoutXXX.gnuplot ends with a "pause -1" the image can be > turned with the mouse. But in this case gnuplot doesn't close when the > user dismisses the interactive gnuplot window, which makes gnuplot act > like a big memory leak. > > In the internet I find many related questions like > https://groups.google.com/forum/#!topic/comp.graphics.apps.gnuplot/bE0RHH_l7aI That's from 10 years ago, but the answer is correct. Instead of "pause -1" you want some variant of "pause mouse", possibly "pause mouse close" . See the documentation for the pause command or "help pause". Ethan > ...but until now I didn't find a real solution to my question (most of > the questions were from the gnuplot 4.0 times, though) so I'm asking here. > > Thanks in advance, > and kind regards, > > Gunter. |
|
From: Gunter K. <gu...@pe...> - 2018-07-14 20:41:19
|
Dear all, wxMaxima allows to automatically embed gnuplot plots into a maths worksheet: The plot is generated with the png (or pngcairo) terminal and the bitmap is embedded. Tomorrow's nightly build also on right-clicking a plot allows to start a separate gnuplot process - which popups a window in which the user can interactively turn a 3d plot, zoom in and out or measure coordinates with the cursor. There is a problem left, though: - If I start gnuplot as "gnuplot -p /tmp/maxoutXXX.gnuplot" gnuplot closes when the user closes gnuplot's plot window. But the displayed graphics is is not interactive (for example a 3d image cannot be turned using the mouse) - and if /tmp/maxoutXXX.gnuplot ends with a "pause -1" the image can be turned with the mouse. But in this case gnuplot doesn't close when the user dismisses the interactive gnuplot window, which makes gnuplot act like a big memory leak. In the internet I find many related questions like https://groups.google.com/forum/#!topic/comp.graphics.apps.gnuplot/bE0RHH_l7aI ...but until now I didn't find a real solution to my question (most of the questions were from the gnuplot 4.0 times, though) so I'm asking here. Thanks in advance, and kind regards, Gunter. |
|
From: Tatsuro M. <tma...@ya...> - 2018-07-09 02:20:56
|
I have made a mistake to place fonts directory in 5.2.4 windows binary packages. The corrected packages are now available from source forge site. Tatsuro |
|
From: theozh <th...@gm...> - 2018-06-14 04:25:25
|
Thank you for checking this. I hope it is "easy" to fix...?! > After more experimentation I find that there is indeed a bug triggered by> the combination of "noautoscale" and data points that receive a> categorization "UNDEFINED". It is not specific to plot style "fillsteps"> but it may explain the unexpected fill areas in your test case.> |
|
From: Ethan M. <eam...@gm...> - 2018-06-13 19:59:05
|
After more experimentation I find that there is indeed a bug triggered by the combination of "noautoscale" and data points that receive a categorization "UNDEFINED". It is not specific to plot style "fillsteps" but it may explain the unexpected fill areas in your test case. On Wed, Jun 13, 2018 at 9:06 AM, Ethan A Merritt <eam...@gm...> wrote: > On Wednesday, 13 June 2018 08:45:55 theozh wrote: > > Hi, > > I am trying to plot datablocks separated by some empty lines using > fillsteps with "noautoscale". > > See the example code below. > > Top left: OK. That's the data with autoscale > > Top right: Not what I expect. Strange lines with steps when using > "noautoscale" > > Bottom left: OK. fillsteps with autoscale > > Bottom right: Not what I expect. Strange fillsteps when using > "noautoscale" > > > > What's wrong with me or my code? > > > I am not sure I understand the question, but I'll try to add some > information that might help. > > The default range on both x and y is [-10:10]. > If you do not specify a different range and you do not use autoscaling, > then that's what you get. > > Normally the presence of blank lines in a data file indicates > separate data sets that will be selected using the "index" keyword. > I am not certain whether the presence of blank lines in a data block > works identically to those in a file. I think there were some relevant > patches recently but I did not pay much attention to them. > In any case your plot commands do not include any "index" keyword > so the intent in unclear. > > If I fill in the first column of data "7\n8\n9\n ..." but leave the > second column blank then I get a plot which may be more like you > were expecting except that the lower left plot has fill areas > extending below zero. I can't immediately explain why the fill area > goes negative, but also I think the documentation for "help fillsteps" > is not entirely clear on what to expect in this case. > > Does that clarify anything? > > Ethan > > > > > > > # datablocks with empty lines and steps and noautoscale > > reset > > $Data <<EOD > > 1 0 > > 2 0 > > 3 1 > > 4 1 > > 5 0 > > 6 0 > > > > 10 0 > > 11 0 > > 12 1 > > 13 1 > > > > 17 1 > > 18 1 > > 19 0 > > 20 0 > > EOD > > > > set multiplot layout 2,2 > > set key top left > > > > plot x,\ > > $Data u 1:($2*10) w p lt 7 lw 2 title "points",\ > > $Data u 1:($2*10) w steps lw 2 title "steps" > > plot x,\ > > $Data u 1:($2*10) w p lt 7 lw 2 title "noautoscale" noautoscale,\ > > $Data u 1:($2*10) w steps lw 2 title "noautoscale" noautoscale > > plot x,\ > > $Data u 1:($2*10) w fillsteps fs transparent solid 0.1 title > "fillsteps" > > plot x,\ > > $Data u 1:($2*999) w fillsteps fs transparent solid 0.1 title > "noautoscale" noautoscale > > unset multiplot > > # EOF > > > > > > > > ------------------------------------------------------------ > ------------------ > > Check out the vibrant tech community on one of the world's most > > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > > _______________________________________________ > > gnuplot-info mailing list > > gnu...@li... > > Membership management via: https://lists.sourceforge.net/ > lists/listinfo/gnuplot-info > > -- > > |
|
From: Ethan A M. <eam...@gm...> - 2018-06-13 16:06:48
|
On Wednesday, 13 June 2018 08:45:55 theozh wrote: > Hi, > I am trying to plot datablocks separated by some empty lines using fillsteps with "noautoscale". > See the example code below. > Top left: OK. That's the data with autoscale > Top right: Not what I expect. Strange lines with steps when using "noautoscale" > Bottom left: OK. fillsteps with autoscale > Bottom right: Not what I expect. Strange fillsteps when using "noautoscale" > > What's wrong with me or my code? I am not sure I understand the question, but I'll try to add some information that might help. The default range on both x and y is [-10:10]. If you do not specify a different range and you do not use autoscaling, then that's what you get. Normally the presence of blank lines in a data file indicates separate data sets that will be selected using the "index" keyword. I am not certain whether the presence of blank lines in a data block works identically to those in a file. I think there were some relevant patches recently but I did not pay much attention to them. In any case your plot commands do not include any "index" keyword so the intent in unclear. If I fill in the first column of data "7\n8\n9\n ..." but leave the second column blank then I get a plot which may be more like you were expecting except that the lower left plot has fill areas extending below zero. I can't immediately explain why the fill area goes negative, but also I think the documentation for "help fillsteps" is not entirely clear on what to expect in this case. Does that clarify anything? Ethan > > # datablocks with empty lines and steps and noautoscale > reset > $Data <<EOD > 1 0 > 2 0 > 3 1 > 4 1 > 5 0 > 6 0 > > 10 0 > 11 0 > 12 1 > 13 1 > > 17 1 > 18 1 > 19 0 > 20 0 > EOD > > set multiplot layout 2,2 > set key top left > > plot x,\ > $Data u 1:($2*10) w p lt 7 lw 2 title "points",\ > $Data u 1:($2*10) w steps lw 2 title "steps" > plot x,\ > $Data u 1:($2*10) w p lt 7 lw 2 title "noautoscale" noautoscale,\ > $Data u 1:($2*10) w steps lw 2 title "noautoscale" noautoscale > plot x,\ > $Data u 1:($2*10) w fillsteps fs transparent solid 0.1 title "fillsteps" > plot x,\ > $Data u 1:($2*999) w fillsteps fs transparent solid 0.1 title "noautoscale" noautoscale > unset multiplot > # EOF > > > > ------------------------------------------------------------------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > gnuplot-info mailing list > gnu...@li... > Membership management via: https://lists.sourceforge.net/lists/listinfo/gnuplot-info -- |
|
From: theozh <th...@gm...> - 2018-06-13 06:46:08
|
Hi, I am trying to plot datablocks separated by some empty lines using fillsteps with "noautoscale". See the example code below. Top left: OK. That's the data with autoscale Top right: Not what I expect. Strange lines with steps when using "noautoscale" Bottom left: OK. fillsteps with autoscale Bottom right: Not what I expect. Strange fillsteps when using "noautoscale" What's wrong with me or my code? # datablocks with empty lines and steps and noautoscale reset $Data <<EOD 1 0 2 0 3 1 4 1 5 0 6 0 10 0 11 0 12 1 13 1 17 1 18 1 19 0 20 0 EOD set multiplot layout 2,2 set key top left plot x,\ $Data u 1:($2*10) w p lt 7 lw 2 title "points",\ $Data u 1:($2*10) w steps lw 2 title "steps" plot x,\ $Data u 1:($2*10) w p lt 7 lw 2 title "noautoscale" noautoscale,\ $Data u 1:($2*10) w steps lw 2 title "noautoscale" noautoscale plot x,\ $Data u 1:($2*10) w fillsteps fs transparent solid 0.1 title "fillsteps" plot x,\ $Data u 1:($2*999) w fillsteps fs transparent solid 0.1 title "noautoscale" noautoscale unset multiplot # EOF |
|
From: theozh <th...@gm...> - 2018-06-02 21:18:35
|
Thank you Ethan,
ok, I haven't thought of boxes... probably the easiest workaround.
One way is certainly plotting boxes to +BIGNUM and -BIGNUM if you know for sure your data will be below this value.
The modified script below uses "replot" and GPVAL_Y_MAX and GPVAL_Y_MIN and works without BIGNUM. It also accounts for the fact that $Data column1 might also consist of other x-steps than 1.
However, when $Data column2 is 0="off" there is still be a hardly visible line at y=0. Actually, if I draw a box with height 0 I would expect to see absolutely nothing.
Well, this line you can avoid by changing the color to background using the ternary operator, as you did.
Thanks again, Theo.
PS.
minor detail still to fix: if $Data Col2 starts with 0, the key in the legend will have bgnd color (="invisible") instead of green color.
# local background depending on data
reset
$Data <<EOD
1 0
3 0
5 1
7 1
11 0
15 0
16 0
20 1
21 1
22 1
23 1
25 0
26 0
27 0
28 0
EOD
set colorsequence classic
do for [i=1:100] {
A = rand(0)*100
B = rand(0)*100
set linetype 101 lc bgnd
set linetype 102 lc "green"
set boxwidth 1.0 relative
plot \
$Data u 1:(A*sin($1)+B) w l lt 1
# reuse the GPVAL_Y_MAX and GPVAL_Y_MIN values
replot \
$Data u 1:(GPVAL_Y_MAX*$2):($2==0?101:102) w boxes lc var fs transparent solid 0.1 noborder t "shutter open" noautoscale, \
$Data u 1:(GPVAL_Y_MIN*$2):($2==0?101:102) w boxes lc var fs transparent solid 0.1 noborder notitle noautoscale, \
pause -1 "Press Enter to next plot"
}
# end gnuplot script
|
|
From: Ethan A M. <eam...@gm...> - 2018-06-02 05:47:24
|
On Saturday, 02 June 2018 07:14:17 theozh wrote:
> Hello,
> I am trying to create a plot with background color depending on a datafile. The datafile basically just contains 0s and 1s for "off" and "on". When it is "on" the background should be e.g. a light green and should span the whole y-range of the plot.
> I tried with fillstep and calculate the ymin and ymax using the 0s and 1s from the data file and GPVAL_Y_MIN and GPVAL_Y_MAX. That's why I apparently have to use "replot" to get the actual (autoscaled) values.
> The script below seem to work in general but for some strange reason not always. Sometimes the GPVAL_Y_MIN and GPVAL_Y_MAX values do not correspond to the y-axis minimum and maximum.
> Furthermore, the fillstep fills always to 0, not from ymin to ymax.
> Maybe I am just thinking too complicated and there is a function to do this much simpler?
> Any ideas? Thank you.
My take is
set linetype 101 lc bgnd
set linetype 102 lc "seagreen"
set boxwidth 1.0
set yrange [0:*]
BIGNUM = 1.e5
plot $Data using ($1+0.5):(BIGNUM):($2==0?101:102) with boxes lc var noautoscale, \
whatever-the-foreground-plot-is
If ymin < 0 you would have to tweak this a bit.
Maybe draw the boxes twice, once with +BIGNUM once with -BIGNUM.
Or use boxxy, but that requires a more complicated using spec.
Ethan
>
> I put the following script into a loop so that you can try several times and see that it sometimes works sometimes not...
>
> # gnuplot script: local background depending on data
> reset
> $Data <<EOD
> 1 0
> 2 0
> 3 1
> 4 1
> 5 0
> 6 0
> 7 0
> 8 1
> 9 1
> 10 1
> 11 1
> 12 0
> 13 0
> 14 0
> 15 0
> EOD
> set colorsequence classic
>
> do for [i=1:100] {
> A = rand(0)*100
> B = rand(0)*100
> plot A*sin(x) + B
> set label 1 sprintf("A: %g\nB: %g\nGPVAL_Y_MIN: %g\nGPVAL_Y_MAX: %g",A,B,GPVAL_Y_MIN,GPVAL_Y_MAX) at screen 0.5,0.5 noenhanced
> replot $Data u 1:((GPVAL_Y_MAX - GPVAL_Y_MIN)*$2 + GPVAL_Y_MIN) w fillsteps fs transparent solid 0.1
> pause -1 "Press Enter to next plot"
> }
> # end gnuplot script
>
>
> ------------------------------------------------------------------------------
> Check out the vibrant tech community on one of the world's most
> engaging tech sites, Slashdot.org! http://sdm.link/slashdot
> _______________________________________________
> gnuplot-info mailing list
> gnu...@li...
> Membership management via: https://lists.sourceforge.net/lists/listinfo/gnuplot-info
|
|
From: theozh <th...@gm...> - 2018-06-02 05:14:28
|
Hello,
I am trying to create a plot with background color depending on a datafile. The datafile basically just contains 0s and 1s for "off" and "on". When it is "on" the background should be e.g. a light green and should span the whole y-range of the plot.
I tried with fillstep and calculate the ymin and ymax using the 0s and 1s from the data file and GPVAL_Y_MIN and GPVAL_Y_MAX. That's why I apparently have to use "replot" to get the actual (autoscaled) values.
The script below seem to work in general but for some strange reason not always. Sometimes the GPVAL_Y_MIN and GPVAL_Y_MAX values do not correspond to the y-axis minimum and maximum.
Furthermore, the fillstep fills always to 0, not from ymin to ymax.
Maybe I am just thinking too complicated and there is a function to do this much simpler?
Any ideas? Thank you.
I put the following script into a loop so that you can try several times and see that it sometimes works sometimes not...
# gnuplot script: local background depending on data
reset
$Data <<EOD
1 0
2 0
3 1
4 1
5 0
6 0
7 0
8 1
9 1
10 1
11 1
12 0
13 0
14 0
15 0
EOD
set colorsequence classic
do for [i=1:100] {
A = rand(0)*100
B = rand(0)*100
plot A*sin(x) + B
set label 1 sprintf("A: %g\nB: %g\nGPVAL_Y_MIN: %g\nGPVAL_Y_MAX: %g",A,B,GPVAL_Y_MIN,GPVAL_Y_MAX) at screen 0.5,0.5 noenhanced
replot $Data u 1:((GPVAL_Y_MAX - GPVAL_Y_MIN)*$2 + GPVAL_Y_MIN) w fillsteps fs transparent solid 0.1
pause -1 "Press Enter to next plot"
}
# end gnuplot script
|
|
From: sfeam <sf...@us...> - 2018-05-31 03:28:29
|
On Wednesday, 30 May 2018 18:46:30 sfeam via gnuplot-info wrote: > I do not understand the root cause of the problem, but I can > give you an easy fix for your script. > > The badness all comes from inclusion of that final line: > > plot > ... > 1/0 lt -1 notitle # Dummy so I can move above around > > > If you delete that line, it works. The really weird thing is that it is specifically 1/0 that breaks something. Using NaN or 0 does not trigger this issue. So if you want to keep the line, substitute NaN for 1/0 Ethan > > I understand why you had that line there, but it has not been needed > for a very long time. Since at least version 4.6 you can end a > plot command with a comma and at worst you will get a warning message. > > Why does including an all-undefine plot cause the logscale > to fail? Good question. I'll look into it. But meanwhile you > should be able to get your log output again. > > Ethan > > > On Thursday, 31 May 2018 08:00:41 Dave Horsfall wrote: > > ---------- Forwarded message ---------- > > Date: Wed, 30 May 2018 16:56:28 +1000 (EST) > > From: Dave Horsfall <da...@ho...> > > To: Gnuplot Mailing List <gnu...@li...> > > Subject: I think something in Gnuplot broke... > > > > (Redirected here from the MacPorts list, which just upgraded to a new > > release.) > > > > Something suddenly busted here; my spam graph is utterly weird now, and I was > > wondering whether it was anything that I did... > > > > See www.horsfall.org/spamlog.pdf for yesterday's graph (nice and pretty!) and > > www.horsfall.org/spamlog-busted.pdf (where the hell did my log scale on the > > left go?). > > > > Command and trimmed datafile attached... > > > > I noticed that Gnuplot itself went from: > > > > Version 5.2 patchlevel 2 last modified 2017-11-15 > > > > to: > > > > Version 5.2 patchlevel 3 last modified 2018-05-04 > > > > It was posited that not many people would run mixed log/lin y-axes so soon > > after the upgrade, but I do it every day... > > > > Thanks. > > > > -- Dave > > > ------------------------------------------------------------------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > gnuplot-info mailing list > gnu...@li... > Membership management via: https://lists.sourceforge.net/lists/listinfo/gnuplot-info |
|
From: sfeam <sf...@us...> - 2018-05-31 01:47:07
|
I do not understand the root cause of the problem, but I can give you an easy fix for your script. The badness all comes from inclusion of that final line: plot ... 1/0 lt -1 notitle # Dummy so I can move above around If you delete that line, it works. I understand why you had that line there, but it has not been needed for a very long time. Since at least version 4.6 you can end a plot command with a comma and at worst you will get a warning message. Why does including an all-undefine plot cause the logscale to fail? Good question. I'll look into it. But meanwhile you should be able to get your log output again. Ethan On Thursday, 31 May 2018 08:00:41 Dave Horsfall wrote: > ---------- Forwarded message ---------- > Date: Wed, 30 May 2018 16:56:28 +1000 (EST) > From: Dave Horsfall <da...@ho...> > To: Gnuplot Mailing List <gnu...@li...> > Subject: I think something in Gnuplot broke... > > (Redirected here from the MacPorts list, which just upgraded to a new > release.) > > Something suddenly busted here; my spam graph is utterly weird now, and I was > wondering whether it was anything that I did... > > See www.horsfall.org/spamlog.pdf for yesterday's graph (nice and pretty!) and > www.horsfall.org/spamlog-busted.pdf (where the hell did my log scale on the > left go?). > > Command and trimmed datafile attached... > > I noticed that Gnuplot itself went from: > > Version 5.2 patchlevel 2 last modified 2017-11-15 > > to: > > Version 5.2 patchlevel 3 last modified 2018-05-04 > > It was posited that not many people would run mixed log/lin y-axes so soon > after the upgrade, but I do it every day... > > Thanks. > > -- Dave |
|
From: theozh <th...@gm...> - 2018-05-30 20:42:40
|
Thanks Ethan, sorry, actually, I didn't mention that the code and path was created by Python and sent via pipe to gnuplot. So, I guess using an additional line explicitely setting utf8 encoding was probably the "trick". Standard encoding apparently was cp1252. set encoding utf8 plot '//server/blabla/XXX/blabla/XXX/datafile.dat' u 1:2 |
|
From: sfeam <sf...@us...> - 2018-04-24 16:06:42
|
On Tuesday, 24 April 2018 11:37:51 theozh wrote: > Hi, > I am trying to plot a data file under Windows which is located on a network path containing Japanese or Chinese characters. > A command like the following doesn't seem to work: > XXX stands for some Japanese or Chinese characters. > > plot '//server/blabla/XXX/blabla/XXX/datafile.dat' u 1:2 > > I thought gnuplot does understand UTF8...? unix/linux filesystems store file names without making any attempt to interpret or enforce a specific character encoding. On a linux ext4 filesystem it would be possible to have some filenames in UTF8 and others in ISO_8859_5 or whatever. But that is not true on Windows or OSX. On those systems the usual filesystems only accept or permit a certain character encoding as a legal file name. In neither case is UTF8 one of the legal encodings. So if your file is located physically on a Windows machine it is highly likely that the file names are not UTF8. When built for windows (at least for some build environments) gnuplot opens files using a special routine win_fopen() that converts UTF8 names to some other encoding before trying to open it. I must leave the details to someone more familiar with that code. Even so I think there is no guarantee that the encoding chosen by the win_fopen() routine matches the encoding enforced by the disk that the file lives on. > What am I doing wrong? Any ideas, what I could do? Thanks. Stick with linux file systems? Although even there I think you would have to work around the program trying to use win_fopen() rather than a standard fopen() that just takes the filename as-is. Ethan > > ------------------------------------------------------------------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, Slashdot.org! http://sdm.link/slashdot > _______________________________________________ > gnuplot-info mailing list > gnu...@li... > Membership management via: https://lists.sourceforge.net/lists/listinfo/gnuplot-info |
|
From: theozh <th...@gm...> - 2018-04-24 09:38:06
|
Hi, I am trying to plot a data file under Windows which is located on a network path containing Japanese or Chinese characters. A command like the following doesn't seem to work: XXX stands for some Japanese or Chinese characters. plot '//server/blabla/XXX/blabla/XXX/datafile.dat' u 1:2 I thought gnuplot does understand UTF8...? What am I doing wrong? Any ideas, what I could do? Thanks. |
|
From: Tatsuro M. <tma...@ya...> - 2018-04-09 21:16:08
|
--- pdupre > Hello, > > Can I calcaulte the following integral? > \int _-\infty ^\infty exp (-t^2)/ ((x - t)**2 + 1) dt > > (infty can be 5) > > I Implemented the integration routine proposed on > http://gnuplot.10905.n7.nabble.com/Integration-in-gnuplot-IS-possible-td11075.html > Here I need pass the variable into the function to integrate (I can do it), > but how do I initial the integration over the additional variable t? > > Thank. > I personally do not recomend to do integral calculation using gnuplot though you can do it with a tricky technique. I recommend to use mathamatical softwares, Python+SciPy, GNU Octave, Scilab and so on because they have sofisticated mathamatical tools that gnuplot never has. Gnuplot is in princple a very nice plotting software but not a mathamatical software, I think. Tatsuro |