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
|
Oct
|
Nov
|
Dec
|
|
From: Thomas S. <t.s...@fz...> - 2011-05-17 07:41:37
|
let's look at your data:
Dec2009 5.2
...
Mar2011 34.7
dates in gnuplot are calculated as 'seconds since beginning
of the gnuplot epoch' which is '2000-01-01 00:00:00'. so internally
your data are:
gnuplot> print strptime("%b%Y","Dec2009")
312940800.0
gnuplot> print strptime("%b%Y","Mar2011")
352252800.0
312940800.0 5.2
...
352252800.0 34.7
this means the slope 'm' of your linear regression function
f(x) = m*x + b
will be around
gnuplot> print (34.7-5.2)/(352252800.0-312940800.0)
7.50407000407001e-07
the y-axis intercept 'b' will be around
gnuplot> print 34.7 - 7.50407000407001e-07*352252800.0
-229.632967032967
thus the fit algorithm should make small steps in the 1.e-8 range
when varying 'm', but large steps in the 1.e-1 range when varying
'b'. this difference in step size makes it (nearly) impossible for the
fit algorithm to converge properly, so it will end up with a regression
function which crosses your data points but with a wrong slope.
a small step (1.e-8) which has a strong effect on 'm' has 'nearly'
no effect on 'b'.
and a step which has an effect on 'b' will - when applied to 'm' -
result in a regression function which misses the data points totally.
this behavior confuses the fit algorithm.
to make the fit algorithm happy, apply a factor of e.g. 1.e-7 to 'm'
f(x) = 1.e-7 * m *x + b
and the fit algorithm will converge after a few iterations because
the effect of a step in 'm' or 'b' on the deviation of the regression
function from the data is now nearly equal.
not necessary, but also helpful: shift the origin of the regression
function into the x-range defined by the data points (=subtract
10 years from 'x'), this makes the fit algorithm faster.
Eric Raymond-3 wrote:
>
> Thomas Sefzick <t.s...@fz...>:
>>
>> on the x-axis you have seconds since 2000-01-01, so your x-values
>> are around 315360000.
>> your y-values are around 20.
>>
>> this leads to parameters which are different by at least 7 orders of
>> magnitude.
>>
>> to bring the parameters into the same range, subtract 10 years and scale
>> the
>> resulting x-values:
>>
>> offset=10*365*24*60*60
>> f(x)=1.e-7*m*(x-offset)+b
>> m=7.
>> b=6.
>> fit f(x) 'comscore.dat' using 1:2 via m,b
>
> Thank you, that does solve the problem. I take it the failure of the
> fit to converge properly was a result of some internal problem due
> to floating-point limitations?
>
> It seems as though this might be a general issue with plots using
> time-valued x data. Might I suggest we do a FAQ entry on this topic?
> If you were to post a draft here I would read and try to polish it it
> for comprehensibility from a user point of view.
> --
> http://www.catb.org/~esr/ Eric S. Raymond
>
> ------------------------------------------------------------------------------
> Achieve unprecedented app performance and reliability
> What every C/C++ and Fortran developer should know.
> Learn how Intel has extended the reach of its next-generation tools
> to help boost performance applications - inlcuding clusters.
> http://p.sf.net/sfu/intel-dev2devmay
> _______________________________________________
> gnuplot-info mailing list
> gnu...@li...
> https://lists.sourceforge.net/lists/listinfo/gnuplot-info
>
>
--
View this message in context: http://old.nabble.com/Help-request---linear-regression-giving-screwy-results-tp31627742p31635555.html
Sent from the Gnuplot - User mailing list archive at Nabble.com.
|
|
From: Eric R. <es...@th...> - 2011-05-16 13:27:13
|
Thomas Sefzick <t.s...@fz...>: > > on the x-axis you have seconds since 2000-01-01, so your x-values > are around 315360000. > your y-values are around 20. > > this leads to parameters which are different by at least 7 orders of > magnitude. > > to bring the parameters into the same range, subtract 10 years and scale the > resulting x-values: > > offset=10*365*24*60*60 > f(x)=1.e-7*m*(x-offset)+b > m=7. > b=6. > fit f(x) 'comscore.dat' using 1:2 via m,b Thank you, that does solve the problem. I take it the failure of the fit to converge properly was a result of some internal problem due to floating-point limitations? It seems as though this might be a general issue with plots using time-valued x data. Might I suggest we do a FAQ entry on this topic? If you were to post a draft here I would read and try to polish it it for comprehensibility from a user point of view. -- <a href="http://www.catb.org/~esr/">Eric S. Raymond</a> |
|
From: Thomas S. <t.s...@fz...> - 2011-05-16 10:54:56
|
on the x-axis you have seconds since 2000-01-01, so your x-values are around 315360000. your y-values are around 20. this leads to parameters which are different by at least 7 orders of magnitude. to bring the parameters into the same range, subtract 10 years and scale the resulting x-values: offset=10*365*24*60*60 f(x)=1.e-7*m*(x-offset)+b m=7. b=6. fit f(x) 'comscore.dat' using 1:2 via m,b Eric Raymond-3 wrote: > > I've been attempting to do trend analysis on U.S. smartphone marketshare. > You can see some of my successful visualizations at > > http://www.catb.org/esr/comscore/ > > The problem is that I tried to do a linear-regression fit on Android's > market share and got screwy results. > > To reproduce, save the enclosed comscore.dat and comscore-report, then > do "comscore-report -p Android foo.png" and display foo.png. What I > see is that the linear-fit line passes through one datapoint but is > nowhere > near close to the right slope. I don't get an error message. > > Thanks in advance, > -- > http://www.catb.org/~esr/ Eric S. Raymond > > #!/usr/bin/env python > """ > Generate reports from raw comScore market-share data > > -s = tabulate or plot marketshare trends > -u = tabulate or plot userbase trends > -d = tabulate or plot changes in userbase by month > -w = generate HTML table to stdout; without this, make a plot to a file > -t = generate text table to stdout > > The raw data is assumed to be in comscore.dat. > """ > > import os, sys, getopt, tempfile, copy > > class comScore: > def __init__(self, data): > self.data = data > # > # Framework code > # > def arithmetize(self): > "Turn data to numeric, excluding top row, left column, and - > entries." > for i in range(1, len(self.data)): > for j in range(1, len(self.data[0])): > if self.data[i][j] != '-': > self.data[i][j] = float(self.data[i][j]) > def unarithmetize(self): > "Turn numeric table data back to strings." > w = len(self.data[0]) > d = len(self.data) > for i in range(1, d): > for j in range(1, w): > if self.data[i][j] != '-': > self.data[i][j] = "%.2f" % self.data[i][j] > def emit(self): > "Ship transformed self.data to a file for plotting." > (h, name) = tempfile.mkstemp() > ofp = open(name, "w") > d = len(self.data) > for i in range(d): > ofp.write("\t".join(self.data[i]) + "\n") > ofp.close() > return name > def textize(self, ofp=sys.stdout): > "Dump data as a tab-separated-values file." > for i in range(len(self.data)): > ofp.write("\t".join(self.data[i]) + "\n") > def webize(self, ofp=sys.stdout): > "Generate a table suitable for web display from specified > self.data." > d = len(self.data) > w = len(self.data[0]) > for i in range(d): > self.data[i][0] = self.data[i][0][:3] + " " + > self.data[i][0][3:] > ofp.write("<table border='1'>\n") > for j in range(w): > ofp.write("<tr>") > for i in range(d): > ofp.write("<td>" + self.data[i][j] + "</td>") > ofp.write("</tr>\n") > ofp.write("</table>\n") > def lastmonth(self): > "Return last month for which report is valid." > return self.data[len(self.data)-1][0] > def select(self, platform): > "Select out data for a single platform." > i = self.data[0].index(platform) > for j in range(len(self.data)): > self.data[j] = [self.data[j][0], self.data[j][i]] > self.data.pop(0) > # > # Data reduction > # > def usercount(self): > "Multiply market shares by smartphone userbase size (last > column)." > w = len(self.data[0]) > d = len(self.data) > self.data[0][w-1] = "Total" > for i in range(1, d): > for j in range(1, w-1): > if self.data[i][j] != '-': > self.data[i][j] *= self.data[i][w-1] > self.data[i][j] /= 100.0 > def deltas(self): > "Turn self.data into a differences table." > w = len(self.data[0]) > d = len(self.data) > differences = copy.deepcopy(self.data) > for i in range(2, d): > for j in range(1, w): > if self.data[i][j] == '-' or self.data[i-1][j] == '-': > differences [i][j] = '-' > else: > differences [i][j] = self.data[i][j] - > self.data[i-1][j] > # Remove first row, for which there is no corresponding delta. > self.data = differences[:1] + differences[2:] > > coreplot = """ > set terminal png nocrop enhanced > set output '%(output)s' > set key outside right top vertical Right noreverse noenhanced autotitles > nobox > set datafile missing '-' > set style data linespoints > set xtics border in scale 1,0.5 nomirror rotate by -45 offset character 0, > 0, 0 > set xtics norangelimit > set xtics () > plot '%(input)s' using 2:xtic(1) title columnheader(2), \ > '' using 3:xtic(1) title columnheader(3), \ > '' using 4:xtic(1) title columnheader(4), \ > '' using 5:xtic(1) title columnheader(5), \ > '' using 6:xtic(1) title columnheader(6) > """ > > predictive = """ > set terminal png nocrop enhanced > set output '%(output)s' > set datafile missing '-' > set style data points > set xtics border in scale 1,0.5 nomirror rotate by -45 offset character 0, > 0, 0 > set xtics norangelimit > set xtics () > set xdata time > set timefmt '%%b%%Y' > set xtics format '%%b%%Y' > unset key > f(x) = m*x + b > fit f(x) '%(input)s' using 1:2 via m,b > plot '%(input)s' using 1:2, f(x) > """ > > def gnuplot(inputname, plot, outputname): > "Generate a derived plot." > plot = plot % {"output" : outputname, "input" : inputname} > print plot > ofp = os.popen("gnuplot -", "w") > ofp.write(plot) > ofp.close() > > def grab(filename): > "Grab the contents of a data file." > lines = [] > for line in open(filename): > if line[0] != '#': > lines.append(line.strip().split("\t")) > return lines > > if __name__ == '__main__': > (options, arguments) = getopt.getopt(sys.argv[1:], "suwdtmp:") > plotprefix = "" > tabulate = False > textdump = False > datedump = False > share = False > user = False > deltas = False > predict = None > > basedata = grab('comscore.dat') > info = comScore(basedata) > > for (opt, val) in options: > if opt == '-s': > share = True > elif opt == '-u': > user = True > elif opt == '-d': > deltas = True > elif opt == '-w': > tabulate = True > elif opt == '-t': > textdump = True > elif opt == '-m': > datedump = True > elif opt == '-p': > predict = val > > if user: > title = "Userbase by platform, " > else: > title = "Market-share per platform, " > if deltas: > title += "change per month, " > if user: > yformat = "set format y '%%.0fM'\n" > title += "units of 1M users." > else: > yformat = "set format y '%%.0f%%%%'\n" > title += "units of 1%%." > title = "set title '%s'\n" % title > > if user or deltas: > info.arithmetize() > if user: > info.usercount() > if deltas: > info.deltas() > info.unarithmetize() > > if tabulate: > info.webize() > elif textdump: > info.textize() > elif datedump: > sys.stdout.write(info.lastmonth()) > elif predict: > info.select(predict) > title = 'set title "%s"\n' % predict > gnuplot(info.emit(), title + yformat + predictive, arguments[0]) > else: > gnuplot(info.emit(), title + yformat + coreplot, arguments[0]) > > # End > > ------------------------------------------------------------------------------ > Achieve unprecedented app performance and reliability > What every C/C++ and Fortran developer should know. > Learn how Intel has extended the reach of its next-generation tools > to help boost performance applications - inlcuding clusters. > http://p.sf.net/sfu/intel-dev2devmay > _______________________________________________ > gnuplot-info mailing list > gnu...@li... > https://lists.sourceforge.net/lists/listinfo/gnuplot-info > > -- View this message in context: http://old.nabble.com/Help-request---linear-regression-giving-screwy-results-tp31627742p31627998.html Sent from the Gnuplot - User mailing list archive at Nabble.com. |
|
From: Eric R. <es...@th...> - 2011-05-16 10:07:42
|
I've been attempting to do trend analysis on U.S. smartphone marketshare.
You can see some of my successful visualizations at
http://www.catb.org/esr/comscore/
The problem is that I tried to do a linear-regression fit on Android's
market share and got screwy results.
To reproduce, save the enclosed comscore.dat and comscore-report, then
do "comscore-report -p Android foo.png" and display foo.png. What I
see is that the linear-fit line passes through one datapoint but is nowhere
near close to the right slope. I don't get an error message.
Thanks in advance,
--
<a href="http://www.catb.org/~esr/">Eric S. Raymond</a>
|
|
From: Thomas S. <t.s...@fz...> - 2011-05-15 15:33:26
|
set arrow 1 from 100,0.001 to 100,1000 nohead pban92 wrote: > > I failed with set parametric to draw a vertical line at x = 100. Any one > pls? Thank you in advance! http://old.nabble.com/file/p31622738/vert.jpg > -- View this message in context: http://old.nabble.com/How-to-draw-a-vertical-line-tp31622738p31623148.html Sent from the Gnuplot - User mailing list archive at Nabble.com. |
|
From: pban92 <pb...@ya...> - 2011-05-15 14:12:36
|
I failed with set parametric to draw a vertical line at x = 100. Any one pls? Thank you in advance! http://old.nabble.com/file/p31622738/vert.jpg -- View this message in context: http://old.nabble.com/How-to-draw-a-vertical-line-tp31622738p31622738.html Sent from the Gnuplot - User mailing list archive at Nabble.com. |
|
From: pban92 <pb...@ya...> - 2011-05-15 14:06:09
|
The best way was to do the same coding thing in picture environment in tex - thats what I found finally.. -- View this message in context: http://old.nabble.com/The-best-option-to-include-tikz-picture-on-gnuplot-figure-tp31594177p31622712.html Sent from the Gnuplot - User mailing list archive at Nabble.com. |
|
From: Chethan S <gis...@ya...> - 2011-05-14 01:33:42
|
Hi all!
When I try using the command 'imshow' in Octave 3.4.0 on Ubuntu 11.04 to display an image I get a series of errors and the image
is not displayed. Here is a portion of the error series:
.................................................
.....................................
gnuplot> 4B
^
line 0: invalid command
gnuplot> C
^
line 0: invalid command
Ambiguous request 'c'; possible matches:
call
candlesticks
canvas
cbdata
cbdtics
cblabel
cbmtics
cbrange
cbtics
cd
ceil
cgm
circle
clabel
clear
clip
cntrparam
color_resources
colorbox
colornames
colors
column
command line options
comments
compatibility
complete list of terminals
contour
coordinates
copyright
corel
cos
csplines
cumulative
gnuplot> C
^
line 0: invalid command
gnuplot> �A
^
line 0: invalid character �
........................................................................
..........................................................................
This is the information of the image I am trying to display:
imfinfo('result.tif')
ans =
scalar structure containing the fields:
Filename = /home/chethan/Documents/GNU_Octave/result.tif
FileModDate = 13-May-2011 17:28:02
FileSize = 196593
Height = 321
Width = 611
BitDepth = 8
Format = TIFF
LongFormat = Tagged Image File Format
XResolution = 0
YResolution = 0
TotalColors = 256
TileName =
AnimationDelay = 0
AnimationIterations = 0
ByteOrder = undefined
Gamma = 0
Matte = 0
ModulusDepth = 8
Quality = 75
QuantizeColors = 256
ResolutionUnits = undefined
ColorType = grayscale
View =
What can I do now? The image
displays fine with the default GNOME image viewer when opened from
nautilus.
Thanks and regards,
Chethan S.
|
|
From: pban92 <pb...@ya...> - 2011-05-11 14:12:47
|
It worked in your way but I have more complex set-up image to insert. So how
can I do that or is there a general solution how to combine tikz figure in
gnuplot eps figure?
For exapmle, one of the tikz code is as big as the following,
\begin{figure}
\begin{picture}(320,20)(0,12)
\begin{tikzpicture}[scale=0.16]
\pgftransformshift{\pgfpoint{425}{0}}; % shift of (0,0) coordinate
\filldraw[scale=1,color=black](0,0) circle(7cm);
\foreach \angle in {0,120,240}
\filldraw[scale=1,white,rotate=\angle]
(0,0)--++(120:00.4)--++(60:0.4)--++(180:0.4)--++(120:0.4)--++(60:0.4)--++(0:0.4)--++(120:0.4)--++(60:0.4)--++(180:0.4)--++(120:0.4)--++(240:0.4)--++(180:0.4)--++(120:0.4)--++(60:0.4)--++(180:0.4)--++(120:0.4)--++(60:0.4)--++(0:0.4)--++(120:0.4)--++(60:0.4)--++(0:0.4)--++(300:0.4)--++(60:0.4)--++(0:0.4)--++(120:00.4)--++(60:0.4)--++(180:0.4)--++(120:0.4)--++(60:0.4)--++(0:0.4)--++(120:0.4)--++(60:0.4)--++(300:00.4)--++(240:00.4)--++(0:00.4)--++(300:00.4)--++(240:00.4)--++(180:00.4)--++(300:00.4)--++(240:00.4)--++(0:00.4)--++(300:00.4)--++(60:00.4)--++(0:00.4)--++(300:00.4)--++(240:00.4)--++(0:00.4)--++(300:00.4)--++(240:00.4)--++(180:00.4)--++(300:00.4)--++(240:00.4)--++(180:00.4)--++(120:00.4)--++(240:00.4)--++(180:00.4)--++(300:0.4)--++(240:0.4)--++(0:0.4)--++(300:0.4)--++(240:0.4)--++(180:0.4)--++(300:0.4)--++(240:0.4)
;
\draw (0,-10) node {$s3f3$};
\end{tikzpicture}
\end{picture}
I hope I could explain my problem. Many thanks!
Thomas Sefzick wrote:
>
> you could use objects in gnuplot:
> set obj 1 circle center 3.7,0.34 radius 0.8 fill solid fc rgbcolor "black"
> front
> set obj 2 circle center 3.7,0.34 radius 0.4 fill solid fc rgbcolor "white"
> front
> plot ...
>
--
View this message in context: http://old.nabble.com/The-best-option-to-include-tikz-picture-on-gnuplot-figure-tp31594177p31594626.html
Sent from the Gnuplot - User mailing list archive at Nabble.com.
|
|
From: Thomas S. <t.s...@fz...> - 2011-05-11 14:01:21
|
you could use objects in gnuplot: set obj 1 circle center 3.7,0.34 radius 0.8 fill solid fc rgbcolor "black" front set obj 2 circle center 3.7,0.34 radius 0.4 fill solid fc rgbcolor "white" front plot ... pban92 wrote: > > 1. I am using eps figure (wind tunnel velocity profiles) created by > gnuplot. (Image 123-1) > 2. I used tikz package to draw my experimental set-up. (Image 123-2) > 3. I am wondering is there a way to include the latex tikz script in > gnuplot script which will combine both as a single eps figure? (Image > 123-3) > > Many thanks for any suugestion. > > Image 1: http://old.nabble.com/file/p31594177/123-1.jpg > Image 2: http://old.nabble.com/file/p31594177/123-2.jpg > Image 3: http://old.nabble.com/file/p31594177/123-3.jpg > > > > > > -- View this message in context: http://old.nabble.com/The-best-option-to-include-tikz-picture-on-gnuplot-figure-tp31594177p31594524.html Sent from the Gnuplot - User mailing list archive at Nabble.com. |
|
From: pban92 <pb...@ya...> - 2011-05-11 13:23:45
|
1. I am using eps figure (wind tunnel velocity profiles) created by gnuplot. (Image 123-1) 2. I used tikz package to draw my experimental set-up. (Image 123-2) 3. I am wondering is there a way to include the latex tikz script in gnuplot script which will combine both as a single eps figure? (Image 123-3) Many thanks for any suugestion. Image 1: http://old.nabble.com/file/p31594177/123-1.jpg Image 2: http://old.nabble.com/file/p31594177/123-2.jpg Image 3: http://old.nabble.com/file/p31594177/123-3.jpg -- View this message in context: http://old.nabble.com/The-best-option-to-include-tikz-picture-on-gnuplot-figure-tp31594177p31594177.html Sent from the Gnuplot - User mailing list archive at Nabble.com. |
|
From: e-letter <in...@gm...> - 2011-05-10 22:14:45
|
Below is the php file content:
<body>
<?php
include("phpinterfacegnuplot.php");
$this->exe( "set term png\n");
$p->exe("plot sin(x)\n");
$p->export('./test2D.png');
?>
<p> this text should be visible with an image adjacent ...
<img src='./test2D.png' alt='a test php gnuplot image' />
</p>
</body>
The file 'phpinterfacegnuplot.php' is the interface class file copied
to the web server directory. The result is a blank web page, not even
the element <p> is displayed. Error log extract below:
PHP Fatal error: Using $this when not in object context in
/var/www/html/testphpgnuplot.php
Any help please?
|
|
From: Hans-Bernhard B. <HBB...@t-...> - 2011-05-10 15:44:23
|
On 10.05.2011 16:01, Maikel Bosschaert wrote: > In C and C++ evaluating x*x*x*x*x is faster then pow(x,5). That not necessarily true. Not universally, either. > For Gnuplot this doesn't seem to be the case. Can someone explain why? Because gnuplot is neither C nor C++, conclusions about those don't extend to gnuplot. Not even incorrect ones. |
|
From: <rhu...@ih...> - 2011-05-10 15:44:03
|
Because pow() is broken in c/c++? |
|
From: Maikel B. <ma...@ma...> - 2011-05-10 14:01:34
|
In C and C++ evaluating x*x*x*x*x is faster then pow(x,5). For Gnuplot this doesn't seem to be the case. Can someone explain why? |
|
From: Dawn_12 <bea...@ho...> - 2011-05-09 22:24:54
|
http://old.nabble.com/file/p31581164/3Dsurface.gif Hi all, I am new gnuplot user, I am trying to make a 3D surface plot, using gnuplot 4.2 for windows. I have two surfaces and I want to fill them with different colors. I have seen that it can be do to 2D plot using filledcurves. Also I would like to use fill transparent solid options. I hope that you can help me, Regards, Dawn -- View this message in context: http://old.nabble.com/3D-surface-plot-tp31581164p31581164.html Sent from the Gnuplot - User mailing list archive at Nabble.com. |
|
From: BBands <bb...@gm...> - 2011-05-09 21:40:16
|
If you have a look at the interface class you'll see that exe() is
used to pass commands directly to gnuplot. For example: $p->exe("splot
x*y\n");
So to plot the sine of x $p->exe("plot sin(x)\n"); should work.
The author is MIA; perhaps you might take up the maintenance of this
interesting project.
jab
On Mon, May 9, 2011 at 2:27 PM, e-letter <in...@gm...> wrote:
> I am having difficulty to understand the syntax of this file.
>
> The php interface class file was saved as a php file in the web server
> directory, i.e. /var/www/html.
>
> A now php file was created, with the command 'include' to reference to
> the php interface file in the web server directory.
>
> Part of the interface file states that there is class to activate
> gnuplot, but how to test with a simple command?
>
> plot sin(x)
>
> So that the image is created in png format as an image element in an
> html file which embeds the php script.
>
> It seems that the function 'plotData' should be used, but how?
|
|
From: e-letter <in...@gm...> - 2011-05-09 21:27:17
|
I am having difficulty to understand the syntax of this file. The php interface class file was saved as a php file in the web server directory, i.e. /var/www/html. A now php file was created, with the command 'include' to reference to the php interface file in the web server directory. Part of the interface file states that there is class to activate gnuplot, but how to test with a simple command? plot sin(x) So that the image is created in png format as an image element in an html file which embeds the php script. It seems that the function 'plotData' should be used, but how? |
|
From: BBands <bb...@gm...> - 2011-05-07 14:05:03
|
On Sat, May 7, 2011 at 2:18 AM, e-letter <in...@gm...> wrote: > Is it possible to use php with gnuplot, as php is used with jpgraph? > Would prefer to use php with gnuplot to avoid having to learn a new > tool :) Sure. I use gnuplot from visual basic via a simple class I wrote and from Python via gnuplot.py. Here is a simple php class to get you started. http://php-gnuplot.sourceforge.net/ I am happier setting up very simple inter-process communication and passing command strings directly to gp than using all the helper stuff so the simplest of interfaces is what I like. Good luck, jab |
|
From: e-letter <in...@gm...> - 2011-05-07 09:27:15
|
Is it possible to use php with gnuplot, as php is used with jpgraph? Would prefer to use php with gnuplot to avoid having to learn a new tool :) |
|
From: pban92 <pb...@ya...> - 2011-05-05 18:44:03
|
I am having difficulty to get u-bar (to denote u-average) as label on x-axis in the output eps figure. Any help would be appreciated! Many thanks! -- View this message in context: http://old.nabble.com/Axis-label-format-tp31552993p31552993.html Sent from the Gnuplot - User mailing list archive at Nabble.com. |
|
From: Manjunath D. <dod...@co...> - 2011-04-30 12:28:09
|
Dear All,
I am trying to increse width on individual bars in cluster using "set
boxwidth". But for some reason, only the width of
the LAST bar in each cluster is being changed. The width of all the other
bars are unchanged. Following is my script and
the LAST bar is labeled as "NAME 3"
set term post
set output "link_prr.ps"
set style data histograms
set style histogram cluster
set boxwidth 1.5 absolute
set xtics ("ML1" 0.00000, "ML2" 1.00000, "ML3" 2.00000, "ML4" 3.00000,
"ML5" 4.00000, "TL1" 6.00000, "TL2" 7.00000, "TL3"
8.00000, "TL4" 9.00000, "TL5" 10.00000, "IL1" 12.00000, "IL2" 13.00000,
"IL3" 14.00000, "IL4" 15.00000, "IL5" 16.00000)
set title "Transformation of IQ links on different testbeds using ILTP"
set ylabel "PRR"
set yrange [ 0.00000 : 1.000000]
set xtics border in scale 1,0.5 nomirror rotate by -45 offset character
0, 0, 0
set key outside center top horizontal center autotitles
plot newhistogram "XXX",
'/home/manjunath/mc_scripts/results/links/motelab.dat' u 1 t "NAME1" fs
empty ls 1, '' using 2 t
"NAME2" fs solid 0.2 ls 1, '' using 3 t "NAME 3" fs solid ls 1, \
newhistogram "YYY", '/home/manjunath/mc_scripts/results/links/twist.dat' u
1 t "" fs empty ls 1, '' using 2 t "" fs solid
0.2 ls 1, '' using 3 t "" fs solid ls 1, \
newhistogram "ZZZ", '/home/manjunath/mc_scripts/results/links/indriya.dat'
u 1 t "" fs empty ls 1, '' using 2 t "" fs solid
0.2 ls 1, '' using 3 t "" fs solid ls 1
Thanks in advance...
Manjunath D
################################################################################################################
***************************************************************************************************************
|
|
From: Manjunath D. <dod...@co...> - 2011-04-30 12:28:08
|
Dear All,
I am trying to increse width on individual bars in cluster using
"set boxwidth". But for some reason, only the width of the LAST bar in
each cluster is being changed. The width of all the other bars are
unchanged. Following is my script and the LAST bar is labeled as "NAME 3"
set term post
set output "link_prr.ps"
set style data histograms
set style histogram cluster
set boxwidth 1.5 absolute
set xtics ("ML1" 0.00000, "ML2" 1.00000, "ML3" 2.00000, "ML4" 3.00000,
"ML5" 4.00000, "TL1" 6.00000, "TL2" 7.00000, "TL3" 8.00000, "TL4" 9.00000,
"TL5" 10.00000, "IL1" 12.00000, "IL2" 13.00000, "IL3" 14.00000, "IL4"
15.00000, "IL5" 16.00000)
set title "Transformation of IQ links on different testbeds using ILTP"
set ylabel "PRR"
set yrange [ 0.00000 : 1.000000]
set xtics border in scale 1,0.5 nomirror rotate by -45 offset character
0, 0, 0
set key outside center top horizontal center autotitles
plot newhistogram "XXX",
'/home/manjunath/mc_scripts/results/links/motelab.dat' u 1 t "NAME1" fs
empty ls 1, '' using 2 t "NAME2" fs solid 0.2 ls 1, '' using 3 t "NAME 3"
fs solid ls 1, \
newhistogram "YYY", '/home/manjunath/mc_scripts/results/links/twist.dat' u
1 t "" fs empty ls 1, '' using 2 t "" fs solid 0.2 ls 1, '' using 3 t ""
fs solid ls 1, \
newhistogram "ZZZ", '/home/manjunath/mc_scripts/results/links/indriya.dat'
u 1 t "" fs empty ls 1, '' using 2 t "" fs solid 0.2 ls 1, '' using 3 t ""
fs solid ls 1
Thanks in advance...
Manjunath D
################################################################################################################
***************************************************************************************************************
|
|
From: Jon <dev...@gm...> - 2011-04-29 16:34:43
|
do you mean you want to use load "aaa.gu" this type of command in gnuplot? Jon On Fri, Apr 29, 2011 at 12:24 AM, sandeep watpade <saw...@gm...>wrote: > sir. > > I want to know how to run the gnu plot instructions using batch files. > > Please guide me. > > > > Regards, > > Sandeep A.Watpade, > > Lab. Tech. (C), > > Cosmic Ray Laboratory, > > TIFR, > > Near Raj Bhavan, > > Inside Botanical Garden, > > Ooty, Tamil Nadu. > > India. > > Pin code:-643001 > > Phone number: 9751510675. > > (O)-0423-2442371. > > Email: 1) saw...@gm... > > 2) wa...@cr... > > > > > > > -- > Sandeep A.Watpade, > Lab. Tech. (C), > Cosmic Ray Laboratory, > TIFR, > Near Raj Bhavan, > Inside Botanical Garden, > Ooty, Tamil Nadu. > India. > Pin code:-643001 > Phone number: 9751510675. > (O)-0423-2442371. > Email: 1) saw...@gm... > 2) wa...@cr... > > ------------------------------------------------------------------------------ > WhatsUp Gold - Download Free Network Management Software > The most intuitive, comprehensive, and cost-effective network > management toolset available today. Delivers lowest initial > acquisition cost and overall TCO of any competing solution. > http://p.sf.net/sfu/whatsupgold-sd > _______________________________________________ > gnuplot-info mailing list > gnu...@li... > https://lists.sourceforge.net/lists/listinfo/gnuplot-info > |
|
From: sandeep w. <saw...@gm...> - 2011-04-29 05:25:01
|
sir.
> I want to know how to run the gnu plot instructions using batch files.
> Please guide me.
>
> Regards,
> Sandeep A.Watpade,
> Lab. Tech. (C),
> Cosmic Ray Laboratory,
> TIFR,
> Near Raj Bhavan,
> Inside Botanical Garden,
> Ooty, Tamil Nadu.
> India.
> Pin code:-643001
> Phone number: 9751510675.
> (O)-0423-2442371.
> Email: 1) saw...@gm...
> 2) wa...@cr...
>
>
--
Sandeep A.Watpade,
Lab. Tech. (C),
Cosmic Ray Laboratory,
TIFR,
Near Raj Bhavan,
Inside Botanical Garden,
Ooty, Tamil Nadu.
India.
Pin code:-643001
Phone number: 9751510675.
(O)-0423-2442371.
Email: 1) saw...@gm...
2) wa...@cr...
|