|
From: Jefferson S. E. P. <st...@gm...> - 2012-09-11 10:39:49
|
Hi, try setting the font as well, e.g.: set terminal jpeg font "Arial 10" For me it works. No idea why or if it's general, but I have the same version of gnuplot as you, so it might be worth trying it out. BTW, you could consider using png instead, it's such a nicer format. Cheers, Stafusa On Tue, Sep 11, 2012 at 11:24 AM, Marcos Matsunaga <mar...@gm...> wrote: > Hi folks, > > I'm having a problem when using xticlabels and I'm not sure how to fix it. > I want to have the x labels rotated by -45 degrees. The problem is that > when I use the command "set xtics rotable by -45" it changes the behavior > on xticlabels and no matter what I do, it never changes. I'm using version > 4.4 patchset 3 (on xubuntu 12.04). > > The source file has 5 columns and the first one I want to use as label on > the x-axis. The gnuplot commands I'm using are below. If I leave the "set > xtics nomirror rotate by -45", it will always print over the bar (or under > the bars, since it is filled), perpendicular to the x-axis. If I remove the > line "set xtics nomirror rotate by -45", it will then print under the > x-axis, but parallel to it. Rotate in this case doesn't work. > > The question is, how do I make the label rotate by -45 using xticlabels? I > tried everything, but the only result I get is the one I mention above. It > will always put the label perpendicular to the x-axis and under the bar. > > set terminal jpeg medium > set output "histo.jpeg" > set boxwidth 0.75 absolute > set style fill solid 1 border -1 > set xtics nomirror rotate by -45 > set style histogram cluster gap 1 > set style data histogram > set ylabel "Bandwidth" > set xlabel "Kernel Configuration" > plot "xx.dat" using 2:xticlabels(1) t "1 VM", '' u 3 t "2 VM", '' u 4 t "5 > VM", '' u 5 t "10 VM" > show output > > Thanks for the help. > > Marcos E. Matsunaga > ------------------------------------------------------------------------------ > Live Security Virtual Conference > Exclusive live event will cover all the ways today's security and > threat landscape has changed and how IT managers can respond. Discussions > will include endpoint security, mobile security and the latest in malware > threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ > _______________________________________________ > gnuplot-info mailing list > gnu...@li... > https://lists.sourceforge.net/lists/listinfo/gnuplot-info |