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: theozh <th...@gm...> - 2015-04-07 11:22:32
|
Does the following help? unset xzeroaxis unset yzeroaxis |
|
From: Felix B. <fel...@gm...> - 2015-04-05 11:05:43
|
Hi, there seems to be a bug in plotting data with rgbimage, at least using the png terminal: The image is somehow shifted with respect to the canvas, such that there is a white line at one border and lost pixel lines at the opposing border. Please find some more details and discussion here: http://stackoverflow.com/questions/29449675/gnuplot-plot-image-without-white-border Any ideas how to fix this? |
|
From: theozh <th...@gm...> - 2015-04-04 07:03:51
|
> > Actually, I now see it's the same mapping. I had not realized that. > Bug? Feature? > As a simple user I cannot tell whether this is a bug or a feature ;-). > FWIW I found the specific bug that fails to color negative > values as NaN (background) when the cb axis is in log mode. > So that will be fixed in the next patchlevel release of version 5. > Thanks a lot, Ethan, for fixing that in the next release. The workaround works for the time being... Theo. |
|
From: Ethan A M. <eam...@gm...> - 2015-04-03 22:59:08
|
On Friday, 03 April 2015 03:04:32 PM Ethan A Merritt wrote: > On Friday, 03 April 2015 09:49:48 PM theozh wrote: > > OK, thanks John and Ethan. This trick works. > > > > plot "Matrix2.dat" matrix using 1:2:($3<0 ? NaN : $3) with image > > > > > > > > "set logscale cb" has been buggy/inconsistent for a long time. > > > Some fixes went into the code recently, but I am not convinced > > > that it is working consistently even now. I suggest that if > > > possible you re-work your plot so that it does not require > > > log-scaling on the colorbar. > > > > > Good to know that "set logscale cb" is obviously still buggy... > > > > I do not have a choice. I want to diplay currents which are ranging e.g. > > from 1e-11 to 1e-6. How should I display this without logscale? > > There's no problem with log-scaling the value being plotted, > the issue is with the settings for the color bar itself. > So... > > unset log cb > set cbrange [*:*] noextend > plot $DATA matrix using 1:2:(log($3)) with image > > Of course this is a different mapping of z value -> color than before. Actually, I now see it's the same mapping. I had not realized that. Bug? Feature? FWIW I found the specific bug that fails to color negative values as NaN (background) when the cb axis is in log mode. So that will be fixed in the next patchlevel release of version 5. Ethan |
|
From: Ethan A M. <eam...@gm...> - 2015-04-03 22:04:40
|
On Friday, 03 April 2015 09:49:48 PM theozh wrote: > OK, thanks John and Ethan. This trick works. > > plot "Matrix2.dat" matrix using 1:2:($3<0 ? NaN : $3) with image > > > > > "set logscale cb" has been buggy/inconsistent for a long time. > > Some fixes went into the code recently, but I am not convinced > > that it is working consistently even now. I suggest that if > > possible you re-work your plot so that it does not require > > log-scaling on the colorbar. > > > Good to know that "set logscale cb" is obviously still buggy... > > I do not have a choice. I want to diplay currents which are ranging e.g. > from 1e-11 to 1e-6. How should I display this without logscale? There's no problem with log-scaling the value being plotted, the issue is with the settings for the color bar itself. So... unset log cb set cbrange [*:*] noextend plot $DATA matrix using 1:2:(log($3)) with image Of course this is a different mapping of z value -> color than before. In principle you could also manually re-map the palette definition using set palette functions R(gray), G(gray), B(gray) [but I have not actually tested this] Ethan |
|
From: theozh <th...@gm...> - 2015-04-03 19:49:57
|
OK, thanks John and Ethan. This trick works. plot "Matrix2.dat" matrix using 1:2:($3<0 ? NaN : $3) with image > > "set logscale cb" has been buggy/inconsistent for a long time. > Some fixes went into the code recently, but I am not convinced > that it is working consistently even now. I suggest that if > possible you re-work your plot so that it does not require > log-scaling on the colorbar. > Good to know that "set logscale cb" is obviously still buggy... I do not have a choice. I want to diplay currents which are ranging e.g. from 1e-11 to 1e-6. How should I display this without logscale? |
|
From: Dr.-Ing. D. J. <die...@t-...> - 2015-04-03 17:50:50
|
Dear listmembers,
just a question for the sake of consistency: wouldn't it make sense to specify
set style colors <classic|default|podo>
rather than
set colorsequence <classic|default|podo>
just to be in sync with specifications like:
set style line, set style arrow, set style <whatsoever>?
Take care
Dieter Jurzitza
--
-----------------------------------------------------------
|
\
/\_/\ |
| ~x~ |/-----\ /
\ /- \_/
^^__ _ / _ ____ /
<°°__ \- \_/ | |/ | |
|| || _| _| _| _|
if you really want to see the pictures above - use some font
with constant spacing like courier! :-)
-----------------------------------------------------------
|
|
From: Ethan M. <eam...@gm...> - 2015-04-03 17:04:14
|
On Fri, Apr 3, 2015 at 3:48 AM, theozh <th...@gm...> wrote: >> Same way. http://gnuplot.sourceforge.net/docs_4.2/node333.html >> >> On Thu, Apr 2, 2015 at 2:19 AM, theozh <th...@gm... >> <mailto:th...@gm...>> wrote: >> >> That's ok for column data... >> But how do you do it with matrix data? > > This works if you have your matrix data in column form: > x1 y1 z1 > x2 y2 z2 > x3 y2 z3 > x4 y4 z4 > ... > > But how do you do operation if you have it in matrix form? > z11 z12 z13 z14 > z21 z22 z23 z24 > z31 z32 z33 z34 > z41 z42 z43 z44 plot $DATA matrix using 1:2:($3<0 ? NaN : $3) with image > To illustrate the strange observation > > If you have a file "Matrix1.dat" > 1 2 3 4 > 2 -3 4 5 > 3 4 -5 6 > 4 5 6 7 > > set palette rgbformulae 7,5,15 > set logscale cb > plot "Matrix1.dat" matrix with image "set logscale cb" has been buggy/inconsistent for a long time. Some fixes went into the code recently, but I am not convinced that it is working consistently even now. I suggest that if possible you re-work your plot so that it does not require log-scaling on the colorbar. Note that the trick shown above (resetting negative values to NaN) will cause the corresponding pixels of a "with image" plot to be omitted altogether - that is, the background color will show through. This is unrelated to the min or max values on the color bar. FWIW, the following seems to give a correct plot in gnuplot 5 although I think the log scaling is not useful in this case: ~~~~~~ $DATA << EOD 1e-8 2e-8 3e-8 4e-8 2e-8 -3e-8 4e-8 5e-8 3e-8 4e-8 -5e-8 6e-8 4e-8 5e-8 6e-8 7e-8 EOD set palette rgbformulae 7,5,15 set logscale cb set cbrange [1e-8:1e-7] plot $DATA matrix using 1:2:($3<0 ? NaN : $3) with image ~~~~~~ Ethan > > The negative values will be displayed with the minimum color, i.e. black > > > However, if you have a file "Matrix2.dat" > 1e-8 2e-8 3e-8 4e-8 > 2e-8 -3e-8 4e-8 5e-8 > 3e-8 4e-8 -5e-8 6e-8 > 4e-8 5e-8 6e-8 7e-8 > > set palette rgbformulae 7,5,15 > set logscale cb > plot "Matrix1.dat" matrix with image > > The negative values will be displayed with the maximum color, i.e. yellow. > > What is the reasoning behind that? > > > > ------------------------------------------------------------------------------ > Dive into the World of Parallel Programming The Go Parallel Website, sponsored > by Intel and developed in partnership with Slashdot Media, is your hub for all > things parallel software development, from weekly thought leadership blogs to > news, videos, case studies, tutorials and more. Take a look and join the > conversation now. http://goparallel.sourceforge.net/ > _______________________________________________ > gnuplot-info mailing list > gnu...@li... > Membership management via: https://lists.sourceforge.net/lists/listinfo/gnuplot-info |
|
From: theozh <th...@gm...> - 2015-04-03 10:48:46
|
> Same way. http://gnuplot.sourceforge.net/docs_4.2/node333.html > > On Thu, Apr 2, 2015 at 2:19 AM, theozh <th...@gm... > <mailto:th...@gm...>> wrote: > > That's ok for column data... > But how do you do it with matrix data? This works if you have your matrix data in column form: x1 y1 z1 x2 y2 z2 x3 y2 z3 x4 y4 z4 ... But how do you do operation if you have it in matrix form? z11 z12 z13 z14 z21 z22 z23 z24 z31 z32 z33 z34 z41 z42 z43 z44 To illustrate the strange observation If you have a file "Matrix1.dat" 1 2 3 4 2 -3 4 5 3 4 -5 6 4 5 6 7 set palette rgbformulae 7,5,15 set logscale cb plot "Matrix1.dat" matrix with image The negative values will be displayed with the minimum color, i.e. black However, if you have a file "Matrix2.dat" 1e-8 2e-8 3e-8 4e-8 2e-8 -3e-8 4e-8 5e-8 3e-8 4e-8 -5e-8 6e-8 4e-8 5e-8 6e-8 7e-8 set palette rgbformulae 7,5,15 set logscale cb plot "Matrix1.dat" matrix with image The negative values will be displayed with the maximum color, i.e. yellow. What is the reasoning behind that? |
|
From: theozh <th...@gm...> - 2015-04-02 09:19:46
|
That's ok for column data... But how do you do it with matrix data? Am 02.04.2015 um 00:38 schrieb BBands: > Actually that should be: > > plot "ColumnData.dat" u 1:($2 > 0 ? $2 : NaN) > > John > |
|
From: BBands <bb...@gm...> - 2015-04-01 22:39:09
|
Actually that should be:
plot "ColumnData.dat" u 1:($2 > 0 ? $2 : NaN)
John
On Wed, Apr 1, 2015 at 1:44 PM, BBands <bb...@gm...> wrote:
> The ternary operator is your friend.
>
> plot "ColumnData.dat" u 1:($2 < 0 ? NaN : $2)
>
> John
>
>
|
|
From: BBands <bb...@gm...> - 2015-04-01 20:44:30
|
The ternary operator is your friend.
plot "ColumnData.dat" u 1:($2 < 0 ? NaN : $2)
John
On Wed, Apr 1, 2015 at 12:22 PM, theozh <th...@gm...> wrote:
> Hi John,
>
> it is absolutely clear to me that negative values cannot be displayed in
> log scale. If I wanted them to be displayed I would use the absolute
> value abs(x). That should work for column data:
> plot "ColumnData.dat" u 1:(abs($2))
>
> Actually, I couldn't tell how one could do abs(x) on matrix data???
>
> Nevertheless, I want to *ignore* negative values. And I do not want to
> change all datafiles.
> Why is gnuplot displaying negative values in log scale as maximum value?
>
> Theo.
>
|
|
From: Martin W. <ma...@gk...> - 2015-04-01 20:27:26
|
I am using gnuplot to generate a png file with default font settings. On my main PC I get a plot with a nice sans-serif font, while on a Raspberry Pi I get a different font which has slightly wider and lighter characters. How do I find out which font gnuplot is using and what package I need to install on the Raspberry pi to get it to use the same font? -- Martin Dr Martin Ward STRL Principal Lecturer & Reader in Software Engineering ma...@gk... http://www.cse.dmu.ac.uk/~mward/ Erdos number: 4 G.K.Chesterton web site: http://www.cse.dmu.ac.uk/~mward/gkc/ Mirrors: http://www.gkc.org.uk and http://www.gkc.org.uk/gkc |
|
From: theozh <th...@gm...> - 2015-04-01 19:22:20
|
Hi John, it is absolutely clear to me that negative values cannot be displayed in log scale. If I wanted them to be displayed I would use the absolute value abs(x). That should work for column data: plot "ColumnData.dat" u 1:(abs($2)) Actually, I couldn't tell how one could do abs(x) on matrix data??? Nevertheless, I want to *ignore* negative values. And I do not want to change all datafiles. Why is gnuplot displaying negative values in log scale as maximum value? Theo. |
|
From: Hans-Bernhard B. <HBB...@t-...> - 2015-04-01 18:23:36
|
Am 01.04.2015 um 19:28 schrieb Sunil M. Dogra: > I am confused about following type of function > f(x) = b/x**nb * exp(y_(y)/k) That's not a function unless you have both a previously defined function y_(), and a previously defined variable y. |
|
From: Sunil M. D. <sm...@gm...> - 2015-04-01 17:28:41
|
Hi, Sorry about my ignorance about gnu, as I am newbie ... I am confused about following type of function f(x) = b/x**nb * exp(y_(y)/k) f(x,y) = (b/(x**nb))*exp(y/k) Any help to understand the difference or similarity is appreciated Thanks sunil |
|
From: BBands <bb...@gm...> - 2015-04-01 17:16:25
|
As far as i know, negative values are a show stopper when using log
scaling. A fellow by the name of John McGinley devised a hack to plot data
that spanned 0 on opposing log scales by skipping near zero values and
using a mirrored (inverted) scale for negative values, but for normal folks
negative values are not defined for log scales.
John
On Wed, Apr 1, 2015 at 12:11 AM, theozh <th...@gm...> wrote:
> Hi there,
>
> In a matrix plot with logarithmic colorbar scale it is clear that
> negative numbers cannot be displayed.
>
> set logscale cb
> set cbrange[1e-10:1e-4]
> set palette rgbformulae 7,5,15
> plot "Matrix.dat" matrix with image
>
> Therefore, I would like to display the negative values as "missing
> values", i.e. invisible (white or transparent).
> However, it seems that gnuplot gives these negative datapoints the color
> of the maximum value instead of the minimum value or treating it as
> missing data. How can I achieve that?
>
> Thanks for any hints. Theo.
>
>
>
> ------------------------------------------------------------------------------
> Dive into the World of Parallel Programming The Go Parallel Website,
> sponsored
> by Intel and developed in partnership with Slashdot Media, is your hub for
> all
> things parallel software development, from weekly thought leadership blogs
> to
> news, videos, case studies, tutorials and more. Take a look and join the
> conversation now. http://goparallel.sourceforge.net/
> _______________________________________________
> gnuplot-info mailing list
> gnu...@li...
> Membership management via:
> https://lists.sourceforge.net/lists/listinfo/gnuplot-info
>
--
John Bollinger
www.BollingerBands.com
|
|
From: theozh <th...@gm...> - 2015-04-01 07:11:57
|
Hi there, In a matrix plot with logarithmic colorbar scale it is clear that negative numbers cannot be displayed. set logscale cb set cbrange[1e-10:1e-4] set palette rgbformulae 7,5,15 plot "Matrix.dat" matrix with image Therefore, I would like to display the negative values as "missing values", i.e. invisible (white or transparent). However, it seems that gnuplot gives these negative datapoints the color of the maximum value instead of the minimum value or treating it as missing data. How can I achieve that? Thanks for any hints. Theo. |
|
From: smdogra <sm...@gm...> - 2015-03-24 20:00:37
|
Dear Experts, I am learning the gnu plotting. I have a simple problem. I have data file like this x y value_at_x_y error_on_value I would like to have the 3D plot with errors on the points Another question I fit this data with function of the type f(x,y). Now I would like to have plot of data points with the fit values for each bin of y so that my plots look like two dimensional ( in other words, I would like to have the projections of y on x) Any help will be appreciated. Thank you sunil -- View this message in context: http://gnuplot.10905.n7.nabble.com/3d-plots-with-error-tp19364.html Sent from the Gnuplot - User mailing list archive at Nabble.com. |
|
From: Dave H. <da...@ho...> - 2015-03-17 16:23:36
|
On Sat, 21 Feb 2015, Dave Horsfall wrote: > Gnuplot 4.6.6 on Yosemite 10.10.2 > > Not sure if this is a Gnuplot/Aqua/Mac issue, so... > > Plotting a graph (to an Aqua window) and using "Save As...", the window > itself waltzes across the screen, diagonally, by about half a cm, each > time. When it hits the opposite corner it resets :-) > > Even quitting and restarting it remembers where it left off (I've just > tried it), so perhaps it isn't a Gnuplot issue after all? > > Anyone else see this? It's mildly annoying. Same with 5.0.0. Am I the only one with this problem, and if so, what could be so special about me? -- Dave Horsfall DTM (VK2KFU) "Bliss is a MacBook with a FreeBSD server." http://www.horsfall.org/spam.html (and check the home page whilst you're there) |
|
From: David L. <da...@la...> - 2015-03-16 20:45:27
|
On Mon, 16 Mar 2015, David Lang wrote:
> On Mon, 16 Mar 2015, Ethan Merritt wrote:
>
>>> anyone have any idea what's going wrong here?
>>
>> You have told gnuplot to plot with "lc variable", which means
>> "interpret the final using spec as a palette color". That's fine for
>> the plot itself.
>>
>> But how are you expecting the program to know what color you want in
>> the key sample?
>> You have made three plots, each containing multiple colors. The key
>> sample for each plot can only be one color, so where would this come
>> from? I don't actually know myself, but in any case I don't see how
>> it can be expected to come out as some particular color among the
>> several that appear in the corresponding plot.
>>
>> I haven't had time to seriously look at this. There may or may not be
>> a simple way to do what you want, but at the moment I (like the
>> program itself) don't exactly know what that is.
>
> all three graphs contain the same data elements, therefor the same colors
> (moderate is always the column 4, severe is always column 5 critical is always
> 6)
>
> Is there any way to specify what colors are used for the keys?
>
> I'd be happy to let it default on the colors, but fear was that it would end up
> doing each graph as a different set of colors.
Ok, I tested this again (removing the color column and lc var) and it did the
right thing.
David Lang
>
> Or am I just on the wrong track for the way to generate these graphs?
>
> I'm trying to make a pie graph for each row in the file, using the columnheaders
> for the names of each section.
>
> David Lang
>
>
>> On Mon, Mar 16, 2015 at 12:58 PM, David Lang <da...@la...> wrote:
>>> ping,
>>>
>>> anyone have any idea what's going wrong here?
>>>
>>> David Lang
>>>
>>> On Mon, 9 Mar 2015, David Lang wrote:
>>>
>>>> Date: Mon, 9 Mar 2015 15:11:22 -0700 (PDT)
>>>> From: David Lang <da...@la...>
>>>> To: gnu...@li...
>>>> Subject: Re: [Gnuplot-info] problem with legend in svg pie-chart
>>>>
>>>> Doing some more digging, I'm finding that the colors used for the key legend are
>>>> not the colors used for the linetype definitions that are used to make the graph
>>>>
>>>> I changed the lines to
>>>> set linetype 1 lc "purple" lw 5 pt 3 ps 3
>>>> set linetype 2 lc "green" lw 5 pt 3 ps 3
>>>> set linetype 3 lc "yellow" lw 5 pt 3 ps 3
>>>> set linetype 4 lc "blue" lw 5 pt 3 ps 3
>>>> set linetype 5 lc "orange" lw 5 pt 3 ps 3
>>>> set linetype 6 lc "red" lw 5 pt 3 ps 3
>>>> set linetype 7 lc "brown" lw 5 pt 3 ps 3
>>>> set linetype 8 lc "gold" lw 5 pt 3 ps 3
>>>> set linetype 9 lc "cyan" lw 5 pt 3 ps 3
>>>> set multiplot
>>>>
>>>> plot for [i=4:6] "site_summary.data" u (x+column(0)*250):(y):(r):(360*(sum
>>>> [col=4:(i-1)] column(col))/(sum [col=4:6] column(col))):(360*(sum [col=4:i]
>>>> column(col))/(sum [col=4:6] column(col))):(i) title columnhead(i) with circles
>>>> lc var
>>>>
>>>> and while the pie segments are blue, orange, and red. the legend colors are
>>>> brown, gold, gold
>>>>
>>>> so why is the key showing different color codes than what was used to make the
>>>> graphs
>>>>
>>>> and why is color 8 used twice?
>>>>
>>>> David Lang
>>>>
>>>>
>>>>
>>>>
>>>> On Mon, 9 Mar 2015, David Lang wrote:
>>>>
>>>>> I'm using the following script to generate pie charts for each line in a file.
>>>>> The problem is that the legend at the bottom ends up just having three solid
>>>>> black circles instead of colored circles.
>>>>>
>>>>> I'm using gnuplot v5.0 (compiled from source)
>>>>>
>>>>> What can I do to fix this?
>>>>>
>>>>>
>>>>> linecount = "`cut -f 1 -d '|' site_summary.data |uniq| sed s/$/' '/ |wc -l`"
>>>>> sitecount = value("linecount")-1
>>>>> set term svg size (sitecount * 250),300 dynamic noenhanced
>>>>> unset tics
>>>>> unset border
>>>>> unset colorbox
>>>>> set key autotitle columnheader
>>>>> set key center bottom horizontal samplen 5
>>>>> set xrange [-(125*sitecount):(125*sitecount)]
>>>>> set yrange [-150:150]
>>>>> set angles degree
>>>>> x=0
>>>>> y=0
>>>>> r=100.0
>>>>> set datafile separator "|"
>>>>> set style fill transparent solid 1.0 noborder
>>>>> set linetype 1 lc "green" lw 5 pt 3 ps 3
>>>>> set linetype 2 lc "blue" lw 5 pt 3 ps 3
>>>>> set linetype 3 lc "orange" lw 5 pt 3 ps 3
>>>>> set linetype 4 lc "red" lw 5 pt 3 ps 3
>>>>> set multiplot
>>>>>
>>>>> plot for [i=4:6] "site_summary.data" u (x+(column(0)-1)*250):(y):(r):(360*(sum [col=4:(i-1)] column(col))/(sum [col=4:6] column(col))):(360*(sum [col=4:i] column(col))/(sum [col=4:6] column(col))):(i-2) title columnhead(i) with circles lc var
>>>>> plot for [i=4:6] "" u (x+(column(0)-1)*250+(r*1.1)*cos(360*((sum [col=4:(i-1)] column(col))+ column(i)/2.0)/(sum [col=4:6] column(col)))):(y+(r*1.1)*sin(360*((sum [col=4:(i-1)] column(col))+ column(i)/2.0)/(sum [col=4:6] column(col)))):i with labels notitle
>>>>> plot "" skip 1 u (x+(column(0)-1)*250):(y+(r*1.5)):1 with labels notitle
>>>>> plot "" skip 1 u (x+(column(0)-1)*250):(y+(r*1.3)):(gprintf("~%.0f systems",$3)) with labels notitle
>>>>>
>>>>>
>>>>> example data
>>>>>
>>>>> Site|Date|Systems|Moderate|Severe|Critical
>>>>> Corp|2015-03-01|700|9000|2000|500
>>>>> DC1|2015-03-01|500|6000|400|60
>>>>> DC1|2015-03-01|300|5000|300|50
>>>>>
>>>>>
>>>>>
>>>>> ------------------------------------------------------------------------------
>>>>> Dive into the World of Parallel Programming The Go Parallel Website, sponsored
>>>>> by Intel and developed in partnership with Slashdot Media, is your hub for all
>>>>> things parallel software development, from weekly thought leadership blogs to
>>>>> news, videos, case studies, tutorials and more. Take a look and join the
>>>>> conversation now. http://goparallel.sourceforge.net/
>>>>> _______________________________________________
>>>>> gnuplot-info mailing list
>>>>> gnu...@li...
>>>>> Membership management via: https://lists.sourceforge.net/lists/listinfo/gnuplot-info
>>>>>
>>>>
>>>> ------------------------------------------------------------------------------
>>>> Dive into the World of Parallel Programming The Go Parallel Website, sponsored
>>>> by Intel and developed in partnership with Slashdot Media, is your hub for all
>>>> things parallel software development, from weekly thought leadership blogs to
>>>> news, videos, case studies, tutorials and more. Take a look and join the
>>>> conversation now. http://goparallel.sourceforge.net/
>>>> _______________________________________________
>>>> gnuplot-info mailing list
>>>> gnu...@li...
>>>> Membership management via: https://lists.sourceforge.net/lists/listinfo/gnuplot-info
>>>>
>>>
>>> ------------------------------------------------------------------------------
>>> Dive into the World of Parallel Programming The Go Parallel Website, sponsored
>>> by Intel and developed in partnership with Slashdot Media, is your hub for all
>>> things parallel software development, from weekly thought leadership blogs to
>>> news, videos, case studies, tutorials and more. Take a look and join the
>>> conversation now. http://goparallel.sourceforge.net/
>>> _______________________________________________
>>> gnuplot-info mailing list
>>> gnu...@li...
>>> Membership management via: https://lists.sourceforge.net/lists/listinfo/gnuplot-info
>>
>
> ------------------------------------------------------------------------------
> Dive into the World of Parallel Programming The Go Parallel Website, sponsored
> by Intel and developed in partnership with Slashdot Media, is your hub for all
> things parallel software development, from weekly thought leadership blogs to
> news, videos, case studies, tutorials and more. Take a look and join the
> conversation now. http://goparallel.sourceforge.net/
> _______________________________________________
> gnuplot-info mailing list
> gnu...@li...
> Membership management via: https://lists.sourceforge.net/lists/listinfo/gnuplot-info
>
|
|
From: David L. <da...@la...> - 2015-03-16 20:42:05
|
On Mon, 16 Mar 2015, Ethan Merritt wrote:
>> anyone have any idea what's going wrong here?
>
> You have told gnuplot to plot with "lc variable", which means
> "interpret the final using spec as a palette color". That's fine for
> the plot itself.
>
> But how are you expecting the program to know what color you want in
> the key sample?
> You have made three plots, each containing multiple colors. The key
> sample for each plot can only be one color, so where would this come
> from? I don't actually know myself, but in any case I don't see how
> it can be expected to come out as some particular color among the
> several that appear in the corresponding plot.
>
> I haven't had time to seriously look at this. There may or may not be
> a simple way to do what you want, but at the moment I (like the
> program itself) don't exactly know what that is.
all three graphs contain the same data elements, therefor the same colors
(moderate is always the column 4, severe is always column 5 critical is always
6)
Is there any way to specify what colors are used for the keys?
I'd be happy to let it default on the colors, but fear was that it would end up
doing each graph as a different set of colors.
Or am I just on the wrong track for the way to generate these graphs?
I'm trying to make a pie graph for each row in the file, using the columnheaders
for the names of each section.
David Lang
> On Mon, Mar 16, 2015 at 12:58 PM, David Lang <da...@la...> wrote:
>> ping,
>>
>> anyone have any idea what's going wrong here?
>>
>> David Lang
>>
>> On Mon, 9 Mar 2015, David Lang wrote:
>>
>>> Date: Mon, 9 Mar 2015 15:11:22 -0700 (PDT)
>>> From: David Lang <da...@la...>
>>> To: gnu...@li...
>>> Subject: Re: [Gnuplot-info] problem with legend in svg pie-chart
>>>
>>> Doing some more digging, I'm finding that the colors used for the key legend are
>>> not the colors used for the linetype definitions that are used to make the graph
>>>
>>> I changed the lines to
>>> set linetype 1 lc "purple" lw 5 pt 3 ps 3
>>> set linetype 2 lc "green" lw 5 pt 3 ps 3
>>> set linetype 3 lc "yellow" lw 5 pt 3 ps 3
>>> set linetype 4 lc "blue" lw 5 pt 3 ps 3
>>> set linetype 5 lc "orange" lw 5 pt 3 ps 3
>>> set linetype 6 lc "red" lw 5 pt 3 ps 3
>>> set linetype 7 lc "brown" lw 5 pt 3 ps 3
>>> set linetype 8 lc "gold" lw 5 pt 3 ps 3
>>> set linetype 9 lc "cyan" lw 5 pt 3 ps 3
>>> set multiplot
>>>
>>> plot for [i=4:6] "site_summary.data" u (x+column(0)*250):(y):(r):(360*(sum
>>> [col=4:(i-1)] column(col))/(sum [col=4:6] column(col))):(360*(sum [col=4:i]
>>> column(col))/(sum [col=4:6] column(col))):(i) title columnhead(i) with circles
>>> lc var
>>>
>>> and while the pie segments are blue, orange, and red. the legend colors are
>>> brown, gold, gold
>>>
>>> so why is the key showing different color codes than what was used to make the
>>> graphs
>>>
>>> and why is color 8 used twice?
>>>
>>> David Lang
>>>
>>>
>>>
>>>
>>> On Mon, 9 Mar 2015, David Lang wrote:
>>>
>>>> I'm using the following script to generate pie charts for each line in a file.
>>>> The problem is that the legend at the bottom ends up just having three solid
>>>> black circles instead of colored circles.
>>>>
>>>> I'm using gnuplot v5.0 (compiled from source)
>>>>
>>>> What can I do to fix this?
>>>>
>>>>
>>>> linecount = "`cut -f 1 -d '|' site_summary.data |uniq| sed s/$/' '/ |wc -l`"
>>>> sitecount = value("linecount")-1
>>>> set term svg size (sitecount * 250),300 dynamic noenhanced
>>>> unset tics
>>>> unset border
>>>> unset colorbox
>>>> set key autotitle columnheader
>>>> set key center bottom horizontal samplen 5
>>>> set xrange [-(125*sitecount):(125*sitecount)]
>>>> set yrange [-150:150]
>>>> set angles degree
>>>> x=0
>>>> y=0
>>>> r=100.0
>>>> set datafile separator "|"
>>>> set style fill transparent solid 1.0 noborder
>>>> set linetype 1 lc "green" lw 5 pt 3 ps 3
>>>> set linetype 2 lc "blue" lw 5 pt 3 ps 3
>>>> set linetype 3 lc "orange" lw 5 pt 3 ps 3
>>>> set linetype 4 lc "red" lw 5 pt 3 ps 3
>>>> set multiplot
>>>>
>>>> plot for [i=4:6] "site_summary.data" u (x+(column(0)-1)*250):(y):(r):(360*(sum [col=4:(i-1)] column(col))/(sum [col=4:6] column(col))):(360*(sum [col=4:i] column(col))/(sum [col=4:6] column(col))):(i-2) title columnhead(i) with circles lc var
>>>> plot for [i=4:6] "" u (x+(column(0)-1)*250+(r*1.1)*cos(360*((sum [col=4:(i-1)] column(col))+ column(i)/2.0)/(sum [col=4:6] column(col)))):(y+(r*1.1)*sin(360*((sum [col=4:(i-1)] column(col))+ column(i)/2.0)/(sum [col=4:6] column(col)))):i with labels notitle
>>>> plot "" skip 1 u (x+(column(0)-1)*250):(y+(r*1.5)):1 with labels notitle
>>>> plot "" skip 1 u (x+(column(0)-1)*250):(y+(r*1.3)):(gprintf("~%.0f systems",$3)) with labels notitle
>>>>
>>>>
>>>> example data
>>>>
>>>> Site|Date|Systems|Moderate|Severe|Critical
>>>> Corp|2015-03-01|700|9000|2000|500
>>>> DC1|2015-03-01|500|6000|400|60
>>>> DC1|2015-03-01|300|5000|300|50
>>>>
>>>>
>>>>
>>>> ------------------------------------------------------------------------------
>>>> Dive into the World of Parallel Programming The Go Parallel Website, sponsored
>>>> by Intel and developed in partnership with Slashdot Media, is your hub for all
>>>> things parallel software development, from weekly thought leadership blogs to
>>>> news, videos, case studies, tutorials and more. Take a look and join the
>>>> conversation now. http://goparallel.sourceforge.net/
>>>> _______________________________________________
>>>> gnuplot-info mailing list
>>>> gnu...@li...
>>>> Membership management via: https://lists.sourceforge.net/lists/listinfo/gnuplot-info
>>>>
>>>
>>> ------------------------------------------------------------------------------
>>> Dive into the World of Parallel Programming The Go Parallel Website, sponsored
>>> by Intel and developed in partnership with Slashdot Media, is your hub for all
>>> things parallel software development, from weekly thought leadership blogs to
>>> news, videos, case studies, tutorials and more. Take a look and join the
>>> conversation now. http://goparallel.sourceforge.net/
>>> _______________________________________________
>>> gnuplot-info mailing list
>>> gnu...@li...
>>> Membership management via: https://lists.sourceforge.net/lists/listinfo/gnuplot-info
>>>
>>
>> ------------------------------------------------------------------------------
>> Dive into the World of Parallel Programming The Go Parallel Website, sponsored
>> by Intel and developed in partnership with Slashdot Media, is your hub for all
>> things parallel software development, from weekly thought leadership blogs to
>> news, videos, case studies, tutorials and more. Take a look and join the
>> conversation now. http://goparallel.sourceforge.net/
>> _______________________________________________
>> gnuplot-info mailing list
>> gnu...@li...
>> Membership management via: https://lists.sourceforge.net/lists/listinfo/gnuplot-info
>
|
|
From: Ethan M. <eam...@gm...> - 2015-03-16 20:34:59
|
oops - sorry not "as a palette color" - that should be "as a linetype
color". But the point remains the same.
On Mon, Mar 16, 2015 at 1:34 PM, Ethan Merritt <eam...@gm...> wrote:
>> anyone have any idea what's going wrong here?
>
> You have told gnuplot to plot with "lc variable", which means
> "interpret the final using spec as a palette color". That's fine for
> the plot itself.
>
> But how are you expecting the program to know what color you want in
> the key sample?
> You have made three plots, each containing multiple colors. The key
> sample for each plot can only be one color, so where would this come
> from? I don't actually know myself, but in any case I don't see how
> it can be expected to come out as some particular color among the
> several that appear in the corresponding plot.
>
> I haven't had time to seriously look at this. There may or may not be
> a simple way to do what you want, but at the moment I (like the
> program itself) don't exactly know what that is.
>
> On Mon, Mar 16, 2015 at 12:58 PM, David Lang <da...@la...> wrote:
>> ping,
>>
>> anyone have any idea what's going wrong here?
>>
>> David Lang
>>
>> On Mon, 9 Mar 2015, David Lang wrote:
>>
>>> Date: Mon, 9 Mar 2015 15:11:22 -0700 (PDT)
>>> From: David Lang <da...@la...>
>>> To: gnu...@li...
>>> Subject: Re: [Gnuplot-info] problem with legend in svg pie-chart
>>>
>>> Doing some more digging, I'm finding that the colors used for the key legend are
>>> not the colors used for the linetype definitions that are used to make the graph
>>>
>>> I changed the lines to
>>> set linetype 1 lc "purple" lw 5 pt 3 ps 3
>>> set linetype 2 lc "green" lw 5 pt 3 ps 3
>>> set linetype 3 lc "yellow" lw 5 pt 3 ps 3
>>> set linetype 4 lc "blue" lw 5 pt 3 ps 3
>>> set linetype 5 lc "orange" lw 5 pt 3 ps 3
>>> set linetype 6 lc "red" lw 5 pt 3 ps 3
>>> set linetype 7 lc "brown" lw 5 pt 3 ps 3
>>> set linetype 8 lc "gold" lw 5 pt 3 ps 3
>>> set linetype 9 lc "cyan" lw 5 pt 3 ps 3
>>> set multiplot
>>>
>>> plot for [i=4:6] "site_summary.data" u (x+column(0)*250):(y):(r):(360*(sum
>>> [col=4:(i-1)] column(col))/(sum [col=4:6] column(col))):(360*(sum [col=4:i]
>>> column(col))/(sum [col=4:6] column(col))):(i) title columnhead(i) with circles
>>> lc var
>>>
>>> and while the pie segments are blue, orange, and red. the legend colors are
>>> brown, gold, gold
>>>
>>> so why is the key showing different color codes than what was used to make the
>>> graphs
>>>
>>> and why is color 8 used twice?
>>>
>>> David Lang
>>>
>>>
>>>
>>>
>>> On Mon, 9 Mar 2015, David Lang wrote:
>>>
>>>> I'm using the following script to generate pie charts for each line in a file.
>>>> The problem is that the legend at the bottom ends up just having three solid
>>>> black circles instead of colored circles.
>>>>
>>>> I'm using gnuplot v5.0 (compiled from source)
>>>>
>>>> What can I do to fix this?
>>>>
>>>>
>>>> linecount = "`cut -f 1 -d '|' site_summary.data |uniq| sed s/$/' '/ |wc -l`"
>>>> sitecount = value("linecount")-1
>>>> set term svg size (sitecount * 250),300 dynamic noenhanced
>>>> unset tics
>>>> unset border
>>>> unset colorbox
>>>> set key autotitle columnheader
>>>> set key center bottom horizontal samplen 5
>>>> set xrange [-(125*sitecount):(125*sitecount)]
>>>> set yrange [-150:150]
>>>> set angles degree
>>>> x=0
>>>> y=0
>>>> r=100.0
>>>> set datafile separator "|"
>>>> set style fill transparent solid 1.0 noborder
>>>> set linetype 1 lc "green" lw 5 pt 3 ps 3
>>>> set linetype 2 lc "blue" lw 5 pt 3 ps 3
>>>> set linetype 3 lc "orange" lw 5 pt 3 ps 3
>>>> set linetype 4 lc "red" lw 5 pt 3 ps 3
>>>> set multiplot
>>>>
>>>> plot for [i=4:6] "site_summary.data" u (x+(column(0)-1)*250):(y):(r):(360*(sum [col=4:(i-1)] column(col))/(sum [col=4:6] column(col))):(360*(sum [col=4:i] column(col))/(sum [col=4:6] column(col))):(i-2) title columnhead(i) with circles lc var
>>>> plot for [i=4:6] "" u (x+(column(0)-1)*250+(r*1.1)*cos(360*((sum [col=4:(i-1)] column(col))+ column(i)/2.0)/(sum [col=4:6] column(col)))):(y+(r*1.1)*sin(360*((sum [col=4:(i-1)] column(col))+ column(i)/2.0)/(sum [col=4:6] column(col)))):i with labels notitle
>>>> plot "" skip 1 u (x+(column(0)-1)*250):(y+(r*1.5)):1 with labels notitle
>>>> plot "" skip 1 u (x+(column(0)-1)*250):(y+(r*1.3)):(gprintf("~%.0f systems",$3)) with labels notitle
>>>>
>>>>
>>>> example data
>>>>
>>>> Site|Date|Systems|Moderate|Severe|Critical
>>>> Corp|2015-03-01|700|9000|2000|500
>>>> DC1|2015-03-01|500|6000|400|60
>>>> DC1|2015-03-01|300|5000|300|50
>>>>
>>>>
>>>>
>>>> ------------------------------------------------------------------------------
>>>> Dive into the World of Parallel Programming The Go Parallel Website, sponsored
>>>> by Intel and developed in partnership with Slashdot Media, is your hub for all
>>>> things parallel software development, from weekly thought leadership blogs to
>>>> news, videos, case studies, tutorials and more. Take a look and join the
>>>> conversation now. http://goparallel.sourceforge.net/
>>>> _______________________________________________
>>>> gnuplot-info mailing list
>>>> gnu...@li...
>>>> Membership management via: https://lists.sourceforge.net/lists/listinfo/gnuplot-info
>>>>
>>>
>>> ------------------------------------------------------------------------------
>>> Dive into the World of Parallel Programming The Go Parallel Website, sponsored
>>> by Intel and developed in partnership with Slashdot Media, is your hub for all
>>> things parallel software development, from weekly thought leadership blogs to
>>> news, videos, case studies, tutorials and more. Take a look and join the
>>> conversation now. http://goparallel.sourceforge.net/
>>> _______________________________________________
>>> gnuplot-info mailing list
>>> gnu...@li...
>>> Membership management via: https://lists.sourceforge.net/lists/listinfo/gnuplot-info
>>>
>>
>> ------------------------------------------------------------------------------
>> Dive into the World of Parallel Programming The Go Parallel Website, sponsored
>> by Intel and developed in partnership with Slashdot Media, is your hub for all
>> things parallel software development, from weekly thought leadership blogs to
>> news, videos, case studies, tutorials and more. Take a look and join the
>> conversation now. http://goparallel.sourceforge.net/
>> _______________________________________________
>> gnuplot-info mailing list
>> gnu...@li...
>> Membership management via: https://lists.sourceforge.net/lists/listinfo/gnuplot-info
|
|
From: Ethan M. <eam...@gm...> - 2015-03-16 20:34:09
|
> anyone have any idea what's going wrong here?
You have told gnuplot to plot with "lc variable", which means
"interpret the final using spec as a palette color". That's fine for
the plot itself.
But how are you expecting the program to know what color you want in
the key sample?
You have made three plots, each containing multiple colors. The key
sample for each plot can only be one color, so where would this come
from? I don't actually know myself, but in any case I don't see how
it can be expected to come out as some particular color among the
several that appear in the corresponding plot.
I haven't had time to seriously look at this. There may or may not be
a simple way to do what you want, but at the moment I (like the
program itself) don't exactly know what that is.
On Mon, Mar 16, 2015 at 12:58 PM, David Lang <da...@la...> wrote:
> ping,
>
> anyone have any idea what's going wrong here?
>
> David Lang
>
> On Mon, 9 Mar 2015, David Lang wrote:
>
>> Date: Mon, 9 Mar 2015 15:11:22 -0700 (PDT)
>> From: David Lang <da...@la...>
>> To: gnu...@li...
>> Subject: Re: [Gnuplot-info] problem with legend in svg pie-chart
>>
>> Doing some more digging, I'm finding that the colors used for the key legend are
>> not the colors used for the linetype definitions that are used to make the graph
>>
>> I changed the lines to
>> set linetype 1 lc "purple" lw 5 pt 3 ps 3
>> set linetype 2 lc "green" lw 5 pt 3 ps 3
>> set linetype 3 lc "yellow" lw 5 pt 3 ps 3
>> set linetype 4 lc "blue" lw 5 pt 3 ps 3
>> set linetype 5 lc "orange" lw 5 pt 3 ps 3
>> set linetype 6 lc "red" lw 5 pt 3 ps 3
>> set linetype 7 lc "brown" lw 5 pt 3 ps 3
>> set linetype 8 lc "gold" lw 5 pt 3 ps 3
>> set linetype 9 lc "cyan" lw 5 pt 3 ps 3
>> set multiplot
>>
>> plot for [i=4:6] "site_summary.data" u (x+column(0)*250):(y):(r):(360*(sum
>> [col=4:(i-1)] column(col))/(sum [col=4:6] column(col))):(360*(sum [col=4:i]
>> column(col))/(sum [col=4:6] column(col))):(i) title columnhead(i) with circles
>> lc var
>>
>> and while the pie segments are blue, orange, and red. the legend colors are
>> brown, gold, gold
>>
>> so why is the key showing different color codes than what was used to make the
>> graphs
>>
>> and why is color 8 used twice?
>>
>> David Lang
>>
>>
>>
>>
>> On Mon, 9 Mar 2015, David Lang wrote:
>>
>>> I'm using the following script to generate pie charts for each line in a file.
>>> The problem is that the legend at the bottom ends up just having three solid
>>> black circles instead of colored circles.
>>>
>>> I'm using gnuplot v5.0 (compiled from source)
>>>
>>> What can I do to fix this?
>>>
>>>
>>> linecount = "`cut -f 1 -d '|' site_summary.data |uniq| sed s/$/' '/ |wc -l`"
>>> sitecount = value("linecount")-1
>>> set term svg size (sitecount * 250),300 dynamic noenhanced
>>> unset tics
>>> unset border
>>> unset colorbox
>>> set key autotitle columnheader
>>> set key center bottom horizontal samplen 5
>>> set xrange [-(125*sitecount):(125*sitecount)]
>>> set yrange [-150:150]
>>> set angles degree
>>> x=0
>>> y=0
>>> r=100.0
>>> set datafile separator "|"
>>> set style fill transparent solid 1.0 noborder
>>> set linetype 1 lc "green" lw 5 pt 3 ps 3
>>> set linetype 2 lc "blue" lw 5 pt 3 ps 3
>>> set linetype 3 lc "orange" lw 5 pt 3 ps 3
>>> set linetype 4 lc "red" lw 5 pt 3 ps 3
>>> set multiplot
>>>
>>> plot for [i=4:6] "site_summary.data" u (x+(column(0)-1)*250):(y):(r):(360*(sum [col=4:(i-1)] column(col))/(sum [col=4:6] column(col))):(360*(sum [col=4:i] column(col))/(sum [col=4:6] column(col))):(i-2) title columnhead(i) with circles lc var
>>> plot for [i=4:6] "" u (x+(column(0)-1)*250+(r*1.1)*cos(360*((sum [col=4:(i-1)] column(col))+ column(i)/2.0)/(sum [col=4:6] column(col)))):(y+(r*1.1)*sin(360*((sum [col=4:(i-1)] column(col))+ column(i)/2.0)/(sum [col=4:6] column(col)))):i with labels notitle
>>> plot "" skip 1 u (x+(column(0)-1)*250):(y+(r*1.5)):1 with labels notitle
>>> plot "" skip 1 u (x+(column(0)-1)*250):(y+(r*1.3)):(gprintf("~%.0f systems",$3)) with labels notitle
>>>
>>>
>>> example data
>>>
>>> Site|Date|Systems|Moderate|Severe|Critical
>>> Corp|2015-03-01|700|9000|2000|500
>>> DC1|2015-03-01|500|6000|400|60
>>> DC1|2015-03-01|300|5000|300|50
>>>
>>>
>>>
>>> ------------------------------------------------------------------------------
>>> Dive into the World of Parallel Programming The Go Parallel Website, sponsored
>>> by Intel and developed in partnership with Slashdot Media, is your hub for all
>>> things parallel software development, from weekly thought leadership blogs to
>>> news, videos, case studies, tutorials and more. Take a look and join the
>>> conversation now. http://goparallel.sourceforge.net/
>>> _______________________________________________
>>> gnuplot-info mailing list
>>> gnu...@li...
>>> Membership management via: https://lists.sourceforge.net/lists/listinfo/gnuplot-info
>>>
>>
>> ------------------------------------------------------------------------------
>> Dive into the World of Parallel Programming The Go Parallel Website, sponsored
>> by Intel and developed in partnership with Slashdot Media, is your hub for all
>> things parallel software development, from weekly thought leadership blogs to
>> news, videos, case studies, tutorials and more. Take a look and join the
>> conversation now. http://goparallel.sourceforge.net/
>> _______________________________________________
>> gnuplot-info mailing list
>> gnu...@li...
>> Membership management via: https://lists.sourceforge.net/lists/listinfo/gnuplot-info
>>
>
> ------------------------------------------------------------------------------
> Dive into the World of Parallel Programming The Go Parallel Website, sponsored
> by Intel and developed in partnership with Slashdot Media, is your hub for all
> things parallel software development, from weekly thought leadership blogs to
> news, videos, case studies, tutorials and more. Take a look and join the
> conversation now. http://goparallel.sourceforge.net/
> _______________________________________________
> gnuplot-info mailing list
> gnu...@li...
> Membership management via: https://lists.sourceforge.net/lists/listinfo/gnuplot-info
|
|
From: David L. <da...@la...> - 2015-03-16 19:58:22
|
ping,
anyone have any idea what's going wrong here?
David Lang
On Mon, 9 Mar 2015, David Lang wrote:
> Date: Mon, 9 Mar 2015 15:11:22 -0700 (PDT)
> From: David Lang <da...@la...>
> To: gnu...@li...
> Subject: Re: [Gnuplot-info] problem with legend in svg pie-chart
>
> Doing some more digging, I'm finding that the colors used for the key legend are
> not the colors used for the linetype definitions that are used to make the graph
>
> I changed the lines to
> set linetype 1 lc "purple" lw 5 pt 3 ps 3
> set linetype 2 lc "green" lw 5 pt 3 ps 3
> set linetype 3 lc "yellow" lw 5 pt 3 ps 3
> set linetype 4 lc "blue" lw 5 pt 3 ps 3
> set linetype 5 lc "orange" lw 5 pt 3 ps 3
> set linetype 6 lc "red" lw 5 pt 3 ps 3
> set linetype 7 lc "brown" lw 5 pt 3 ps 3
> set linetype 8 lc "gold" lw 5 pt 3 ps 3
> set linetype 9 lc "cyan" lw 5 pt 3 ps 3
> set multiplot
>
> plot for [i=4:6] "site_summary.data" u (x+column(0)*250):(y):(r):(360*(sum
> [col=4:(i-1)] column(col))/(sum [col=4:6] column(col))):(360*(sum [col=4:i]
> column(col))/(sum [col=4:6] column(col))):(i) title columnhead(i) with circles
> lc var
>
> and while the pie segments are blue, orange, and red. the legend colors are
> brown, gold, gold
>
> so why is the key showing different color codes than what was used to make the
> graphs
>
> and why is color 8 used twice?
>
> David Lang
>
>
>
>
> On Mon, 9 Mar 2015, David Lang wrote:
>
>> I'm using the following script to generate pie charts for each line in a file.
>> The problem is that the legend at the bottom ends up just having three solid
>> black circles instead of colored circles.
>>
>> I'm using gnuplot v5.0 (compiled from source)
>>
>> What can I do to fix this?
>>
>>
>> linecount = "`cut -f 1 -d '|' site_summary.data |uniq| sed s/$/' '/ |wc -l`"
>> sitecount = value("linecount")-1
>> set term svg size (sitecount * 250),300 dynamic noenhanced
>> unset tics
>> unset border
>> unset colorbox
>> set key autotitle columnheader
>> set key center bottom horizontal samplen 5
>> set xrange [-(125*sitecount):(125*sitecount)]
>> set yrange [-150:150]
>> set angles degree
>> x=0
>> y=0
>> r=100.0
>> set datafile separator "|"
>> set style fill transparent solid 1.0 noborder
>> set linetype 1 lc "green" lw 5 pt 3 ps 3
>> set linetype 2 lc "blue" lw 5 pt 3 ps 3
>> set linetype 3 lc "orange" lw 5 pt 3 ps 3
>> set linetype 4 lc "red" lw 5 pt 3 ps 3
>> set multiplot
>>
>> plot for [i=4:6] "site_summary.data" u (x+(column(0)-1)*250):(y):(r):(360*(sum [col=4:(i-1)] column(col))/(sum [col=4:6] column(col))):(360*(sum [col=4:i] column(col))/(sum [col=4:6] column(col))):(i-2) title columnhead(i) with circles lc var
>> plot for [i=4:6] "" u (x+(column(0)-1)*250+(r*1.1)*cos(360*((sum [col=4:(i-1)] column(col))+ column(i)/2.0)/(sum [col=4:6] column(col)))):(y+(r*1.1)*sin(360*((sum [col=4:(i-1)] column(col))+ column(i)/2.0)/(sum [col=4:6] column(col)))):i with labels notitle
>> plot "" skip 1 u (x+(column(0)-1)*250):(y+(r*1.5)):1 with labels notitle
>> plot "" skip 1 u (x+(column(0)-1)*250):(y+(r*1.3)):(gprintf("~%.0f systems",$3)) with labels notitle
>>
>>
>> example data
>>
>> Site|Date|Systems|Moderate|Severe|Critical
>> Corp|2015-03-01|700|9000|2000|500
>> DC1|2015-03-01|500|6000|400|60
>> DC1|2015-03-01|300|5000|300|50
>>
>>
>>
>> ------------------------------------------------------------------------------
>> Dive into the World of Parallel Programming The Go Parallel Website, sponsored
>> by Intel and developed in partnership with Slashdot Media, is your hub for all
>> things parallel software development, from weekly thought leadership blogs to
>> news, videos, case studies, tutorials and more. Take a look and join the
>> conversation now. http://goparallel.sourceforge.net/
>> _______________________________________________
>> gnuplot-info mailing list
>> gnu...@li...
>> Membership management via: https://lists.sourceforge.net/lists/listinfo/gnuplot-info
>>
>
> ------------------------------------------------------------------------------
> Dive into the World of Parallel Programming The Go Parallel Website, sponsored
> by Intel and developed in partnership with Slashdot Media, is your hub for all
> things parallel software development, from weekly thought leadership blogs to
> news, videos, case studies, tutorials and more. Take a look and join the
> conversation now. http://goparallel.sourceforge.net/
> _______________________________________________
> gnuplot-info mailing list
> gnu...@li...
> Membership management via: https://lists.sourceforge.net/lists/listinfo/gnuplot-info
>
|