Ignore:
Timestamp:
01/23/08 17:37:32 (4 years ago)
Author:
bogdanpasoi@…
Message:

Better rating graph.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/www/views/plot_distribution.php

    r852 r884  
    1515// gnuplot script 
    1616$script = " 
     17set terminal postscript noenhanced 
    1718set grid 
    1819 
    1920set rmargin 2 
    2021set lmargin 5 
    21 set tmargin 12 
     22set tmargin 15 
    2223set bmargin 2 
    2324set xtics nomirror 
     
    2728 
    2829set style line 1 lt 1 lw 4 pt 3 ps 0.5 
    29 set style line 2 lt 7 lw 6 pt 7 ps 1.0 
    30 set style line 3 lt 11 lw 3 
    31 set xrange [350:960] 
     30set style line 2 lt 3 lw 6 pt 7 ps 1.0 
     31set style line 3 lt 11 lw 6 
     32set xrange [350:1130] 
     33set yrange [0:250] 
    3234 
    33 set xtics 50 
    34 set xtic rotate by -35 
     35set xtics 100 
     36set xtic rotate by -20 
    3537 
    3638"; 
     
    3840// legend 
    3941$script .= " 
    40 set key left top box 3 
     42set key right top box 3 
    4143set key width -1.5 
    4244"; 
     
    4749set parametric 
    4850const={$user_rating} 
    49 set trange [0:100] 
     51set trange [0:250] 
    5052"; 
    5153} 
     
    5456$script .= " 
    5557plot \\ 
    56     \"%data%\" using 1:2 title \"Concurenti\" with histeps ls 3, \\ 
    57     \"%data%\" using 1:2 smooth bezier title \"Aproximare\" with lines ls 1"; 
     58    \"%data%\" using 1:2 title \"Concurenti\" with impulses ls 3, \\ 
     59    \"%data%\" using 1:2 smooth csplines title \"Aproximare\" with lines ls 1"; 
    5860 
    5961// plot user 
Note: See TracChangeset for help on using the changeset viewer.