derekbruening / bargraph Goto Github PK
View Code? Open in Web Editor NEWClustered/Stacked Filled Bar Graph Generator
Clustered/Stacked Filled Bar Graph Generator
From paul.biggar on August 14, 2009 12:32:41
When making a simple barchart for speedup, I'd like to have a horizontal
line at y=1. I can hack this with:
extraops=plot 1,3
but that relies on knowing that the y-range is 3. If I instead try
extraops=plot 1
the graph is ruined.
Could an option for this be added (or is there another workaround)?
Thanks
Original issue: http://code.google.com/p/bargraphgen/issues/detail?id=2
From [email protected] on February 11, 2013 22:10:34
It will be good if bargraph.pl could generate combination of cluster, multibar, and multidata.
What is the expected output? What do you see instead?
I attached the output example file.
Attachment: line.tif
Original issue: http://code.google.com/p/bargraphgen/issues/detail?id=28
Hi,
I have tested the latest release version and version 4.7. The file generated by bargraph is mal-formed
and have some extra newlines leading from line 176 for compiling stacked_var.perf.
After removing those redundant newlines, it works properly. So maybe it is a bug that.
I use the following command to generate desired temporary file (stacked_var.dat) for
checking where that bug occurs.
bargraph stacked_var.perf > stacked_var.dat
I use Ubuntu 16.4 with gnu 5.0.7.
From [email protected] on January 17, 2010 11:12:20
in either a plain stacked bargraph, or a cluster of stacked, several people
have requested an option to specify different color schemes for individual
stacked bars. presumably the legend would list all colors.
Original issue: http://code.google.com/p/bargraphgen/issues/detail?id=9
From [email protected] on August 12, 2009 15:31:22
Hi Derek,
Great script!
I am using the cluster-of-stacked-bars graph for a project of mine.
My problem is that the equivalent labels of
"Private Caches, Shared Caches, Persistent Caches"
in my graph are longer than the bars and so run into each other.
Is it possible to get a rotate variable added for these labels?
Thanks,
Kevin
Original issue: http://code.google.com/p/bargraphgen/issues/detail?id=1
From [email protected] on January 17, 2010 11:37:31
today the legend's position is either centered at the top or manually
placed, which is cumbersome. from the fig output the script should be able
to support automatic placement, especially w/ the more accurate legend
bounding box calculations in r41 . it could support keywords like
"upper_right" or "far_right" or something.
Original issue: http://code.google.com/p/bargraphgen/issues/detail?id=10
From [email protected] on April 16, 2010 10:49:29
What steps will reproduce the problem?
perl ../bargraphgen46/bargraph.pl scpt/errorbar.perf > chart/errorbar.eps
Boxes should not be different widths: report this!
Incomplete line object at line 371.
make: *** [errorbar] Error 9
What is the expected output? What do you see instead?
What version of the product are you using? On what operating system?
I am using version 4.6 on Ubuntu 910
Please provide any additional information below.
Original issue: http://code.google.com/p/bargraphgen/issues/detail?id=18
From [email protected] on August 08, 2010 12:14:09
What steps will reproduce the problem?
What is the expected output? What do you see instead?
The output should be simple.png which does get created correctly. But make spews out these lines:
../bargraphgen-4.6/bargraph.pl -fig simple.perf | fig2dev -L tiff -m 4 > simple.tiff
TIFFLinkDirectory: Error fetching directory count.
mogrify -resize 700x700 -format png simple.tiff
rm simple-1.png
rm: cannot remove `simple-1.png': No such file or directory
make: *** [simple.png] Error 1
rm simple.tiff
What version of the product are you using? On what operating system?
4.6 on Kubuntu 10.04
Please provide any additional information below.
That's all.
Original issue: http://code.google.com/p/bargraphgen/issues/detail?id=24
From [email protected] on October 25, 2013 11:38:46
What steps will reproduce the problem?
What is the expected output? What do you see instead?
I expect to see the bars colored in the order specified in the list. However from the 12th bar they are coloured black
What version of the product are you using? On what operating system?
Bargraph.pl v 4.7 Centos 5.6
Please provide any additional information below.
This seems to be because @fillstyle is not populated beyond element 11. The relevant code is below, I think the if ($custom_colors) section should also be setting $fillstyle[$i] to 20.
} elsif ($use_colors) {
$colorcount = $num_nongrayscale if ($color_per_datum);
# colors: all solid fill
for ($i=0; $i<$colorcount; $i++) {
$fillstyle[$i]=20;
}
if ($custom_colors) {
for ($i=0; $i<$colorcount; $i++) {
$fillcolor[$i]=$colornm{$custom_color[$i]};
}
} else {
Attachment: colourtest.txt
Original issue: http://code.google.com/p/bargraphgen/issues/detail?id=32
I already fixed an issue with gnuplot 5.0 due to its change from linetype to dashtype in 210e259.
Another issue remains: group labels, such as with clustered stacked graphs, are placed at the top of the figure. Looking at the cluster_stacked.perf test and sample, focusing on this label in the gnuplot:
set label "Private Caches" at 0.672000,0 center rotate by 0
With gnuplot 4.4.2 this becomes this line in the fig output:
4 1 -1 0 -1 -1 10 0.000 4 125 1050 2936 4774 Private Caches\001
With 5.0.x it has a 0 value for y:
4 1 -1 0 -1 -1 10 0.000 4 125 1050 2936 0 Private Caches\001
Investigations so far indicate a bug in gnuplot but the final culprit is not yet identified.
From [email protected] on January 17, 2010 11:56:15
Logarithmic axes are not fully supported. For now you can get them to work
with extra options to set the minimum, as well as to use a relative
boxwidth since gnuplot 4.2 no longer narrows the boxes as x increases:
extraops=set logscale
extraops=set xrange [1:28]
extraops=set yrange [1:]
\# in gnuplot 4.2, boxwidth does not shrink, so we don't want the default
\# of 0.5 absolute:
extraops=set boxwidth 0.5 relative
Original issue: http://code.google.com/p/bargraphgen/issues/detail?id=11
From [email protected] on May 27, 2010 10:36:30
What is the expected output? What do you see instead?
Words all in the box of the legend.
What version of the product are you using? On what operating system?
Version given in Issue 20 .
Linux
Please provide any additional information below.
Attached pdf version where problem happens
Attached rawfig output
Attachment: pic.pdf raw.fig
Original issue: http://code.google.com/p/bargraphgen/issues/detail?id=21
I have a label on my plot that is obscured by some of the bars. I wish to put a white rectangle behind the label in order to make it visible. However, when I attempt to add such a rectangle by doing e.g.:
extraops=set object 1001 rect from graph 0.0, graph 0.0 to graph 1.0, graph 1.0 back fc rgb "white" fs solid noborder
(where I've deliberately made the rectangle large for testing purposes) then I get an error:
./bargraph.pl continuity_opt.dat > continuity_opt.eps Boxes should not be different widths (7036 vs 74): report this! Incomplete line object at line 210.
I've attached my full script to this issue.
My system:
Hi, I wonder whether the plotting tool support min-max bars which is similar to the error bar. The difference is that, error bars typically show the mean values and the variance, but the min-max bars should show the mean values and its distance to the min and max values. I wonder how to extend the tool to support the min-max bar?
From [email protected] on April 11, 2013 03:53:45
What steps will reproduce the problem?
What is the expected output? What do you see instead?
this feature does not yet exist
What version of the product are you using? On what operating system?
the latest one as of 04/13 on mac os x
Please provide any additional information below.
it would be great if i could plot the bar charts relative to a baseline metric. i specifically need this for speedup and such related studies.
Original issue: http://code.google.com/p/bargraphgen/issues/detail?id=30
From [email protected] on May 14, 2010 08:22:17
What steps will reproduce the problem?
What is the expected output? What do you see instead?
Dotted lines but they are solid and over the bars.
What version of the product are you using? On what operating system?
Cygwin
Please provide any additional information below.
Original issue: http://code.google.com/p/bargraphgen/issues/detail?id=19
From [email protected] on January 17, 2010 11:06:38
currently the only way to add spacing between clusters is to add fake data
entries with names like "_":
=stackcluster;Basic Blocks;Traces;Hashtables;Stubs
=nogridy
=noupperright
legendx=7000
legendy=1800
yformat=%g%%
xlabel=Benchmark
ylabel=Percentage of total heap usage
=table
ammp 25.635 23.094 14.780 5.543
applu 25.035 27.375 14.974 4.913
apsi 19.012 33.135 15.210 4.346
art 25.118 10.322 17.892 4.129
equake 22.754 24.061 13.600 5.492
_ 0 0 0 0
Xammp 27.863 18.913 15.536 5.404
Xapplu 24.501 18.657 11.689 4.720
Xapsi 21.755 26.093 16.096 5.407
Xart 27.188 17.741 11.981 5.069
Xequake 29.172 18.688 11.851 5.926
__ 0 0 0 0
Yammp 17.863 11.913 19.536 9.404
Yapplu 34.501 12.657 18.689 7.720
Yapsi 11.755 23.093 17.096 2.407
Yart 17.188 14.741 16.981 3.069
Yequake 22.172 15.688 15.851 4.926
Original issue: http://code.google.com/p/bargraphgen/issues/detail?id=8
From [email protected] on August 21, 2009 12:23:40
What steps will reproduce the problem?
What is the expected output? What do you see instead?
Output is expected to be black and white only, however small colored
borders can be seen around the bars (visibility depending on the graph).
What version of the product are you using? On what operating system?
Bargraph 4.4 using a patched Gnuplot 4.3 and fig2dev 3.2 on Ubuntu.
Please provide any additional information below.
This can be fixed by passing the -N option to fig2dev when not using
colors.
Original issue: http://code.google.com/p/bargraphgen/issues/detail?id=3
From [email protected] on June 18, 2010 14:00:17
What steps will reproduce the problem?
What is the expected output? What do you see instead?
What version of the product are you using? On what operating system?
gnuplot 4.4/Ubuntu
Please provide any additional information below.
Original issue: http://code.google.com/p/bargraphgen/issues/detail?id=23
From [email protected] on November 10, 2009 18:53:03
Thanks for releasing the software, it is very very useful
Using example at http://www.burningcutlery.com/derek/bargraph/cluster.perf fig2dev output produces a lot of "Cannot locate user color X, using default
color on line Y", for high values of X like 92 etc.
Inspecting the fig file reveals that the last bar in every cluster is
assigned a bogus color index X; changing it by hand to correct index
results in proper output
Original issue: http://code.google.com/p/bargraphgen/issues/detail?id=5
From [email protected] on March 14, 2012 06:35:04
Possibility to plot two y-labels. one for each side, with different values.
Original issue: http://code.google.com/p/bargraphgen/issues/detail?id=27
From [email protected] on November 16, 2010 09:56:04
Nice software apparently! What I was looking for are error bars different in both directions. http://www.burningcutlery.com/derek/bargraph shows after "A bar graph with error bars". There is only one parameter, displayed as a positive and negative error bar with the same value.
What steps will reproduce the problem?
n.a.
What is the expected output? What do you see instead?
What version of the product are you using? On what operating system?
Just inspecting http://www.burningcutlery.com/derek/bargraph
Please provide any additional information below.
Needed for logarithmic distribution data.
Original issue: http://code.google.com/p/bargraphgen/issues/detail?id=25
From [email protected] on January 17, 2010 11:02:07
today the spacing is fixed and not user-controllable
Original issue: http://code.google.com/p/bargraphgen/issues/detail?id=7
From [email protected] on January 31, 2010 20:47:16
if an inside legend above all bars cannot be found, there may be room to
place the legend overlapping the base of a series of tall bars without
obscuring any data
Original issue: http://code.google.com/p/bargraphgen/issues/detail?id=14
From paul.biggar on September 26, 2009 09:26:08
Using the attached plot, the labels (added with "extraops" commands) are
not the same font size as the legend. I've tried playing with the font for
the extraops (something like adding "Times,7"), but that didn't affect the
font size of the label at all.
There is still a possibility that I'm using this wrong. In this case, it
would be great if the manual could be improved to discuss the interaction
of gnuplot and bargraph's font supports.
Attachment: irc.plot
Original issue: http://code.google.com/p/bargraphgen/issues/detail?id=4
Nearly all the bugs and breakage over time have involved gnuplot changing
how it does things or with gnuplot bugs. Maybe we could directly generate
FIG and avoid relying on gnuplot at all? The hard part is computing text
bounding boxes for placement of labels. In the past I looked into using
XTextExtents from perl X11::Lib or X11::Protocol but had trouble with
both.
From [email protected] on January 28, 2010 23:31:35
switch to GetOptions for both command-line and in-script options.
for in-script convert =op to -op and op=val to -op val.
Original issue: http://code.google.com/p/bargraphgen/issues/detail?id=13
From [email protected] on August 13, 2013 17:25:26
This is on ubuntu Linux.
As you can see, test.pdf looks good, but test2.pdf looks messed up. I also tested this using gnuplot 4.4.3 and the result looked like test2.pdf.
Thanks!
Attachment: test.txt test.pdf test2.pdf
Original issue: http://code.google.com/p/bargraphgen/issues/detail?id=31
From [email protected] on May 28, 2010 16:51:29
What steps will reproduce the problem?
What is the expected output? What do you see instead?
I want to put legend in the graph box, top/left or top/right side.
What version of the product are you using? On what operating system?
Ubuntu 8.04 and gnuplot 4.4
Please provide any additional information below.
Original issue: http://code.google.com/p/bargraphgen/issues/detail?id=22
A feature request to use the colorbrewer colors by default: http://colorbrewer2.org/
From [email protected] on August 03, 2011 10:50:24
What steps will reproduce the problem?
barchart.pl UsecO3vsSwlfAKS.perf
gives this diagnostic:
line 37: label has y coord of 0; must be above 0 for log scale!
This script did, I believe, work on an earlier version of gnuplot.
This is on Ubuntu 10.10. barchart.pl is
version 4.5 pre-release.
Attachment: UsecO3vsSwlfAKS.perf
Original issue: http://code.google.com/p/bargraphgen/issues/detail?id=26
From [email protected] on February 20, 2010 19:08:41
this is a feature request to add x group labels similar to those for
stacked-and-clustered graphs, but more general
see attached pdf file for an example
Attachment: feature-request-x-groups.pdf
Original issue: http://code.google.com/p/bargraphgen/issues/detail?id=17
From [email protected] on January 18, 2010 00:24:38
can be useful for certain graphs to lay the legend out horizontally rather
than listing entries vertically
Original issue: http://code.google.com/p/bargraphgen/issues/detail?id=12
From [email protected] on May 19, 2010 14:10:10
I am using the latest version on the website as of 19/5/10 and was hoping
that the legend on the graph I produced would appear inside the graph
itself rather than above it.
Attached is the bargraph script with data, the log output and the graph
itself. My colleague changed the fonts and colour scheme a little. If you
like it I can ask him to send you the patch.
Attachment: bargraph_script graph.png log_output
Original issue: http://code.google.com/p/bargraphgen/issues/detail?id=20
From [email protected] on February 06, 2010 23:56:44
It seems that the text bounds computed by gnuplot are ignoring capital
letters. I have no idea where the exact problem is, but using capital
letters anywhere shows the bug: put a long strings of caps as an x label,
or any label. For now I've added a hack to try and fudge the bounding box
for the legend but there's no clean way to do it w/o querying X.
Original issue: http://code.google.com/p/bargraphgen/issues/detail?id=15
From [email protected] on January 17, 2010 11:00:20
feature request to calculate the top position of each bar and add a label
displaying the value. currently such labels must be manually added (both
the text and the position are manual).
Original issue: http://code.google.com/p/bargraphgen/issues/detail?id=6
From [email protected] on March 04, 2013 13:11:46
What steps will reproduce the problem?
1.Plot a graph such that the y axis maximum is much less than 1
e.g make a graph file:
=cluster Ctl NonCtl
title=test
=table
gene1 0.01 0.01
gene2 0.03 0.03
yformat=%g
2../bargraph.pl -png -non-transparent /tmp/graph.txt > /tmp/graph.png
What is the expected output? What do you see instead?
I expect to see a png containing just the graph and legend. Instead I see the dummy text at the top of the png (BARGRAPH_TEMP_XXX) and lots of empty space between it and a small graph at the bottom of the png.
What version of the product are you using? On what operating system?
Bargraph 4.7 on Centos 6.5
Please provide any additional information below.
It looks like the very small y axis max somehow results in gnuplot emitting fig lines like:
4 0 0 0 -1 0 10.000 0.000 4 125.000 1650.000 6500 -88088 BARGRAPH_TEMP_Ctl\001
The regular expression used to remove this from the fig output only looks for digits at the position occupied by -88088, so the '-' sign prevents the regular expression from matching. I'm not sure if this -ve value is correct, if so then I guess the regexp has to be changed to match this.
Original issue: http://code.google.com/p/bargraphgen/issues/detail?id=29
From [email protected] on February 07, 2010 23:21:44
To avoid the bugs in gnuplot, bargraph.pl itself could support x and y scaling
Original issue: http://code.google.com/p/bargraphgen/issues/detail?id=16
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.