X-Received: by 10.42.106.197 with SMTP id a5mr5972002icp.30.1433432183488; Thu, 04 Jun 2015 08:36:23 -0700 (PDT) X-Received: by 10.50.72.42 with SMTP id a10mr104080igv.14.1433432183449; Thu, 04 Jun 2015 08:36:23 -0700 (PDT) Path: csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!news.glorb.com!h15no319441igd.0!news-out.google.com!n7ni717igk.0!nntp.google.com!h15no164478igd.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Newsgroups: comp.graphics.apps.gnuplot Date: Thu, 4 Jun 2015 08:36:22 -0700 (PDT) Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=139.190.149.99; posting-account=AoEOAAoAAACH2FoJhq9wm1M_2S_VN7zJ NNTP-Posting-Host: 139.190.149.99 User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: <5ed41c4d-aca0-4823-b72e-e8bb2b9aed17@googlegroups.com> Subject: Labels with Divided Value From: Syed Jahanzaib Injection-Date: Thu, 04 Jun 2015 15:36:23 +0000 Content-Type: text/plain; charset=ISO-8859-1 Xref: csiph.com comp.graphics.apps.gnuplot:2921 Greetings, I have created a graph with the help of GNUPLOT. It's working good. Problem is that I want to show Download /Upload Data in GB in LABELS and its showing in bytes. How can I add formulat to dvidie teh bytes values in LABELS ? My GNUPLOT CFG file is as follow reset set terminal jpeg set output "/var/www/radius.jpg" set xdata time set timefmt "%Y-%m-%d" set format x "%d/%m" set xtics 86400 set xtics rotate by -45 set xlabel "Date (day/month)" set ylabel "Data Downloaded in MB" set title "username - $1 - Download/Upload Report $FULLMONTH $YEAR \nThis report was created on $NOW\nPowered by Syed Jahanzaib" set key outside set grid set style data histogram set style histogram cluster gap 1 set style fill solid set boxwidth 0.9 plot "/tmp/userdata.txt" using 1:(\$2/1024/1024/1024) w boxes title "Download" lw 15, \ "/tmp/userdata.txt" using 1:(\$3/1024/1024/1024) w boxes lw 6 title "Upload", \ "/tmp/userdata.txt" using 1:(\$2/1024/1024/1024):2 w labels and data file is as follows which have the values cat /tmp/userdata.txt [date] [Download] [Upload] 2015-05-01 4474024942 4254178590 2015-05-02 2414432830 106085629 2015-05-03 577354896 30842461 2015-05-04 440391880 25135023 2015-05-05 9393497144 1455046027 2015-05-06 840315630 72266841 2015-05-07 202235475299 6584315949 2015-05-09 8271128995 574005680 2015-05-10 39158708 55439832 with this config, I am getting LABEL values in bytes, and I want to show them in GB in LABELS.