Bar Chart on GNU Plot

Atouray
Atouray used Ask the Experts™
on
Trying to draw a barchart using gnuplot, but having some issues:

2. issues


The graph is black and white
I am not getting a proper graph

Here is my script for plotting the graph
set terminal latex
set output "scenario1.tex"
set boxwidth 0.75 absolute
set ytics rotate
set style fill solid 1 border -1
set style data histogram
set style histogram cluster gap 1
set ylabel "Total time"
set xlabel "Data Size"

plot "scenario1.data" using 1:2  title "Parallel-for" with boxes, \
"scenario1.data" using 1:3  title "Iterative MapReduce" with boxes
pause -1 "Hit any key to continue"

Open in new window


my data file.  
371.10	44.708	239.797
742.17	47.667	310.801
1113.26	50.715	391.108
1484.34	59.769	472.398

Open in new window

Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Brian UtterbackPrinciple Software Engineer

Commented:
What do you expect it to look like? What do you get instead?

Author

Commented:
A bar chart. but the scaling is very poor and the background is messy as well.. Can it do better?
test.png

Author

Commented:
I want to scale proper so that the red bar does not look as if its all on the same value.
Brian UtterbackPrinciple Software Engineer

Commented:
The output doesn't match exactly what you posted. Can you post *exactly* what you used to make this chart?
Commented:
Try to manually set y axis limits:
set yrange [0:500]

Commented:
What do you mean the background is messy? You don't want grids? Want another color? Want better resolution?

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial