Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.graphics.apps.gnuplot > #2263 > unrolled thread
| Started by | relstnl@gmail.com |
|---|---|
| First post | 2014-01-19 11:29 -0800 |
| Last post | 2014-01-20 10:29 -0800 |
| Articles | 3 — 3 participants |
Back to article view | Back to comp.graphics.apps.gnuplot
GNUplot 4.4 and 4.6 difference with text in graph relstnl@gmail.com - 2014-01-19 11:29 -0800
Re: GNUplot 4.4 and 4.6 difference with text in graph Ethan A Merritt <EAMerritt@gmail.com> - 2014-01-19 14:44 -0800
Re: GNUplot 4.4 and 4.6 difference with text in graph TextEditor <relstnl@gmail.com> - 2014-01-20 10:29 -0800
| From | relstnl@gmail.com |
|---|---|
| Date | 2014-01-19 11:29 -0800 |
| Subject | GNUplot 4.4 and 4.6 difference with text in graph |
| Message-ID | <bc752a38-a8db-46bc-a8de-cf509e06c077@googlegroups.com> |
Hello
I've recently started testing GNUplot 4.6 and have one graph which shows up different then in 4.4.
This is the gnuplot file:
set term png truecolor size 800,600
set output "ciphers.png"
set xlabel "Ciphersuite"
set ylabel "Amount"
set title "HTTPS Ciphersuites"
set grid
set xtics rotate by -45 axis out offset 0,1.5
set boxwidth 1 relative
set style fill transparent solid 0.5 border rgb"black"
plot "cipher" u 1:xtic(2) w boxes lc rgb"blue"
This is the raw data:
1 CAMELLIA256-SHA
1 SEED-SHA
2 DHE-RSA-AES128-SHA
4 DHE-RSA-CAMELLIA256-SHA
5 EDH-RSA-DES-CBC3-SHA
11 ECDHE-RSA-AES128-SHA
24 DES-CBC3-SHA
115 AES128-SHA
171 ECDHE-RSA-AES256-SHA
241 RC4-MD5
279 AES256-SHA
428 ECDHE-RSA-RC4-SHA
550 RC4-SHA
650 DHE-RSA-AES256-SHA
This is the 4.6 image:
http://i.imgur.com/Pn5uzy8.png
This is the 4.4 image:
http://i.imgur.com/lZOIcX4.png
GNUplot versions:
gnuplot 4.4 patchlevel 3
gnuplot 4.6 patchlevel 0
Both on Ubuntu (12.04/13.10)
As you can see the text in the 4.4 version is in the bar vertically, in the 4.6 version it is rotated and not in the bar anymore.
How can I solve this?
[toc] | [next] | [standalone]
| From | Ethan A Merritt <EAMerritt@gmail.com> |
|---|---|
| Date | 2014-01-19 14:44 -0800 |
| Message-ID | <lbhkf4$rlb$1@dont-email.me> |
| In reply to | #2263 |
relstnl@gmail.com wrote: > Hello > > I've recently started testing GNUplot 4.6 and have one graph which > shows up different then in 4.4. > > This is the gnuplot file: > > set term png truecolor size 800,600 > set output "ciphers.png" > set xlabel "Ciphersuite" > set ylabel "Amount" > set title "HTTPS Ciphersuites" > set grid > set xtics rotate by -45 axis out offset 0,1.5 Here you ask for a 45 degree rotation of the axis tic labels, displaced upward by 1.5 character heights. > This is the 4.6 image: > http://i.imgur.com/Pn5uzy8.png Which is is exactly what is present in the image produced by 4.6 > This is the 4.4 image: > http://i.imgur.com/lZOIcX4.png > As you can see the text in the 4.4 version is in the bar vertically, > in the 4.6 version it is rotated and not in the bar anymore. Whereas version 4.4 ignored or could not produce what you asked for. I no longer remember whether this was a bug or just something that the 4.4 png terminal was not capable of handling. It may have depended on what version of the libgd library it was linked against. > How can I solve this? Well, 4.6 did precisely what you asked it to. If 4.4 cannot, then I guess you "solve it" by switching to 4.6 :-) Probably you should make the vertical offset -1.5 rather than 1.5 so that the labels are displaced upwards into the plot. Ethan > set boxwidth 1 relative > set style fill transparent solid 0.5 border rgb"black" > plot "cipher" u 1:xtic(2) w boxes lc rgb"blue" > > > This is the raw data: > > 1 CAMELLIA256-SHA > 1 SEED-SHA > 2 DHE-RSA-AES128-SHA > 4 DHE-RSA-CAMELLIA256-SHA > 5 EDH-RSA-DES-CBC3-SHA > 11 ECDHE-RSA-AES128-SHA > 24 DES-CBC3-SHA > 115 AES128-SHA > 171 ECDHE-RSA-AES256-SHA > 241 RC4-MD5 > 279 AES256-SHA > 428 ECDHE-RSA-RC4-SHA > 550 RC4-SHA > 650 DHE-RSA-AES256-SHA > > > This is the 4.6 image: > http://i.imgur.com/Pn5uzy8.png > > This is the 4.4 image: > http://i.imgur.com/lZOIcX4.png > > GNUplot versions: > gnuplot 4.4 patchlevel 3 > gnuplot 4.6 patchlevel 0 > > Both on Ubuntu (12.04/13.10) > > As you can see the text in the 4.4 version is in the bar vertically, > in the 4.6 version it is rotated and not in the bar anymore. > > How can I solve this?
[toc] | [prev] | [next] | [standalone]
| From | TextEditor <relstnl@gmail.com> |
|---|---|
| Date | 2014-01-20 10:29 -0800 |
| Message-ID | <a799f2e7-3d8d-4aeb-8803-3b38e5708aa7@googlegroups.com> |
| In reply to | #2264 |
So my 4.4 code was wrong? That is interesting. I've figured it out now by using the following code: set term png truecolor size 800,600 medium set output "ciphers.png" set xlabel "Ciphersuite" set ylabel "Amount" set title "HTTPS Ciphersuites" set grid set xtics rotate by +90 axis out offset 0,1.5 set boxwidth 1 relative set style fill transparent solid 0.5 border rgb"black" plot "cipher" u 1:xtic(2) w boxes lc rgb"green" Which also brings back the nice default font, instead of the Verdana (or something alike) this Ubuntu instance provides. Thank you for the reply and for pointing out my 4.4 code was wrong. Op zondag 19 januari 2014 23:44:18 UTC+1 schreef Ethan A Merritt: > > > > > Hello > > > > > > I've recently started testing GNUplot 4.6 and have one graph which > > > shows up different then in 4.4. > > > > > > This is the gnuplot file: > > > > > > set term png truecolor size 800,600 > > > set output "ciphers.png" > > > set xlabel "Ciphersuite" > > > set ylabel "Amount" > > > set title "HTTPS Ciphersuites" > > > set grid > > > set xtics rotate by -45 axis out offset 0,1.5 > > > > Here you ask for a 45 degree rotation of the axis tic labels, > > displaced upward by 1.5 character heights. > > > > > This is the 4.6 image: > > > http://i.imgur.com/Pn5uzy8.png > > > > Which is is exactly what is present in the image produced by 4.6 > > > > > This is the 4.4 image: > > > http://i.imgur.com/lZOIcX4.png > > > As you can see the text in the 4.4 version is in the bar vertically, > > > in the 4.6 version it is rotated and not in the bar anymore. > > > > Whereas version 4.4 ignored or could not produce what you asked for. > > I no longer remember whether this was a bug or just something that the > > 4.4 png terminal was not capable of handling. It may have depended on > > what version of the libgd library it was linked against. > > > > > How can I solve this? > > > > Well, 4.6 did precisely what you asked it to. > > If 4.4 cannot, then I guess you "solve it" by switching to 4.6 :-) > > Probably you should make the vertical offset -1.5 rather than 1.5 > > so that the labels are displaced upwards into the plot. > > > > Ethan > > > > > set boxwidth 1 relative > > > set style fill transparent solid 0.5 border rgb"black" > > > plot "cipher" u 1:xtic(2) w boxes lc rgb"blue" > > > > > > > > > This is the raw data: > > > > > > 1 CAMELLIA256-SHA > > > 1 SEED-SHA > > > 2 DHE-RSA-AES128-SHA > > > 4 DHE-RSA-CAMELLIA256-SHA > > > 5 EDH-RSA-DES-CBC3-SHA > > > 11 ECDHE-RSA-AES128-SHA > > > 24 DES-CBC3-SHA > > > 115 AES128-SHA > > > 171 ECDHE-RSA-AES256-SHA > > > 241 RC4-MD5 > > > 279 AES256-SHA > > > 428 ECDHE-RSA-RC4-SHA > > > 550 RC4-SHA > > > 650 DHE-RSA-AES256-SHA > > > > > > > > > This is the 4.6 image: > > > http://i.imgur.com/Pn5uzy8.png > > > > > > This is the 4.4 image: > > > http://i.imgur.com/lZOIcX4.png > > > > > > GNUplot versions: > > > gnuplot 4.4 patchlevel 3 > > > gnuplot 4.6 patchlevel 0 > > > > > > Both on Ubuntu (12.04/13.10) > > > > > > As you can see the text in the 4.4 version is in the bar vertically, > > > in the 4.6 version it is rotated and not in the bar anymore. > > > > > > How can I solve this?
[toc] | [prev] | [standalone]
Back to top | Article view | comp.graphics.apps.gnuplot
csiph-web