I'm trying to superimpose two histograms and I need the second one (blue in the image) to be transparent so the one below it can be seen:

This is the code I'm using:
#!/bin/bash
gnuplot << EOF
set term postscript portrait color enhanced
set output 'test.ps'
set size ratio 1
set multiplot
set size 0.5,0.5
n=20 #number of intervals
max=1.0 #max value
min=0.0 #min value
width=(max-min)/n #interval width
hist(x,width)=width*floor(x/width)+width/2.0
set boxwidth width*0.9
set xrange [0:1]
plot "/path_to_file" u (hist(\$1,width)):(1.0) smooth freq w boxes lc rgb "black" lt 1 lw 0.5 notitle fs solid 0.5, \
"/path_to_file" u (hist(\$2,width)):(1.0) smooth freq w boxes notitle fs transparent pattern 4 noborder lc rgb "blue" lt 1 lw 0.5
EOF
Here's a file that can be used with the above code: http://pastebin.com/5qpFHgtZ
awkbit since it wasn't really necessary and added a data file. - Gabrielplotin your script. I'll give this a shot and see what I can do with it... - mgilson