|
From: overclocked <ove...@ya...> - 2012-03-28 21:46:21
|
Hello, can I ask for Your help?
I make a .eps plot, but about 10-15% of canvas is free space under the
key (under right; outside the plot area). And I have totally no idea how
to remove it. It's critical for me to remove this free space, because it
should significantly improve layout of my paper...
So can I ask for Your help?
The .eps looks like:
-------------------------------------------------
y plot plot plot plot plot plot plot
t y plot plot plot plot plot plot plot
i t plot plot plot plot plot plot plot
t i plot plot plot plot plot plot plot
l c plot plot plot plot plot plot plot
e s plot plot plot plot plot plot plot
xtics xtics xtics xtics
histogram titles
xtitle
key key key key
key key key key
free space free space free space
free space free space free space <----- THIS I WOULD LIKE TO REMOVE
free space free space free space
-------------------------------------------------
This is my script:
set term postscript size 10,7.5
set output 'chart-5s-only_percents.eps'
set style fill solid 1.00
set style histogram clustered gap 1
set style data histograms
set yrange [0:100]
set key font "Helvetica,18"
set key under right #reverse
set key spacing 2.5
set xlabel "\n Minimum precentage of identical prefixes in 2 spikes to
be duplicated \n" font "Helvetica,18"
set xlabel offset 0,-1
set xtics offset 0.25,0
set xtics font "Helvetica,10"
set ytics font "Helvetica,12"
set ytics format "%g%%"
set ytics (0,10,20,30,40,50,60,70,80,90,100)
set ylabel "Number of updates in duplicated spikes, \n % from total"
font "Helvetica,18"
set grid noxtics nomxtics ytics mytics noztics nomztics \
nox2tics nomx2tics noy2tics nomy2tics nocbtics nomcbtics
set grid layerdefault linetype 0 linewidth 0.500, linetype 0 linewidth
0.500
#
plot newhistogram "Wide", 'data-5s.dat' using 4:xtic(1) title "updates
in duplicated spikes" lc rgb 'grey', \
'' using 6 title "updates in duplicated spikes received from ASs with
peering link" lc rgb 'black', \
\
newhistogram "Eqix", \
'' using 9:xtic(1) notitle lc rgb 'grey', \
'' using 11 notitle lc rgb 'black', \
\
newhistogram "Isc", \
'' using 14:xtic(1) notitle lc rgb 'grey', \
'' using 16 notitle lc rgb 'black', \
\
newhistogram "Linx", \
'' using 19:xtic(1) notitle lc rgb 'grey', \
'' using 21 notitle lc rgb 'black', \
\
newhistogram "Route-views2", \
'' using 24:xtic(1) notitle lc rgb 'grey', \
'' using 26 notitle lc rgb 'black', \
\
newhistogram "Route-views4", \
'' using 29:xtic(1) notitle lc rgb 'grey', \
'' using 31 notitle lc rgb 'black'
Thank You very much in advance,
Kind Regards,
Andrey Sapegin,
PhD Student,
University of Leipzig.
|
|
From: walter h. <wh...@bf...> - 2012-03-29 07:13:19
|
hi, perhaps you are looking for 'offset'' ? You can see a (simple) use case here: http://gnuplot.sourceforge.net/demo/datastrings.html hope that helps, re, wh Am 28.03.2012 23:47, schrieb overclocked: > Hello, can I ask for Your help? > > I make a .eps plot, but about 10-15% of canvas is free space under the > key (under right; outside the plot area). And I have totally no idea how > to remove it. It's critical for me to remove this free space, because it > should significantly improve layout of my paper... > > So can I ask for Your help? > > The .eps looks like: > > ------------------------------------------------- > y plot plot plot plot plot plot plot > t y plot plot plot plot plot plot plot > i t plot plot plot plot plot plot plot > t i plot plot plot plot plot plot plot > l c plot plot plot plot plot plot plot > e s plot plot plot plot plot plot plot > xtics xtics xtics xtics > histogram titles > xtitle > > key key key key > key key key key > free space free space free space > free space free space free space <----- THIS I WOULD LIKE TO REMOVE > free space free space free space > ------------------------------------------------- > > This is my script: > > set term postscript size 10,7.5 > set output 'chart-5s-only_percents.eps' > set style fill solid 1.00 > set style histogram clustered gap 1 > set style data histograms > set yrange [0:100] > set key font "Helvetica,18" > set key under right #reverse > set key spacing 2.5 > set xlabel "\n Minimum precentage of identical prefixes in 2 spikes to > be duplicated \n" font "Helvetica,18" > set xlabel offset 0,-1 > set xtics offset 0.25,0 > set xtics font "Helvetica,10" > set ytics font "Helvetica,12" > set ytics format "%g%%" > set ytics (0,10,20,30,40,50,60,70,80,90,100) > set ylabel "Number of updates in duplicated spikes, \n % from total" > font "Helvetica,18" > set grid noxtics nomxtics ytics mytics noztics nomztics \ > nox2tics nomx2tics noy2tics nomy2tics nocbtics nomcbtics > set grid layerdefault linetype 0 linewidth 0.500, linetype 0 linewidth > 0.500 > # > plot newhistogram "Wide", 'data-5s.dat' using 4:xtic(1) title "updates > in duplicated spikes" lc rgb 'grey', \ > '' using 6 title "updates in duplicated spikes received from ASs with > peering link" lc rgb 'black', \ > \ > newhistogram "Eqix", \ > '' using 9:xtic(1) notitle lc rgb 'grey', \ > '' using 11 notitle lc rgb 'black', \ > \ > newhistogram "Isc", \ > '' using 14:xtic(1) notitle lc rgb 'grey', \ > '' using 16 notitle lc rgb 'black', \ > \ > newhistogram "Linx", \ > '' using 19:xtic(1) notitle lc rgb 'grey', \ > '' using 21 notitle lc rgb 'black', \ > \ > newhistogram "Route-views2", \ > '' using 24:xtic(1) notitle lc rgb 'grey', \ > '' using 26 notitle lc rgb 'black', \ > \ > newhistogram "Route-views4", \ > '' using 29:xtic(1) notitle lc rgb 'grey', \ > '' using 31 notitle lc rgb 'black' > > > Thank You very much in advance, > Kind Regards, > Andrey Sapegin, > > PhD Student, > University of Leipzig. > > ------------------------------------------------------------------------------ > This SF email is sponsosred by: > Try Windows Azure free for 90 days Click Here > http://p.sf.net/sfu/sfd2d-msazure > _______________________________________________ > gnuplot-info mailing list > gnu...@li... > https://lists.sourceforge.net/lists/listinfo/gnuplot-info > |
|
From: overclocked <ove...@ya...> - 2012-03-29 22:10:32
|
Hi, I think, it's not what I meant. I don't really need to move the key down or change position of the plot, or titles. My problem that there is a free unused space (under the key) on the canvas. And when I insert the .eps file into my LaTeX document, there is quite a big free space after the figure, which I would like to reduce. In other words, I want to "cut" the canvas. I HAVE JUST SOLVED THE PROBLEM, but not in gnuplot - I have opened the .eps in text editor and reduced the size in %%BoundingBox. Kind Regards, Andrey Sapegin. On 03/29/2012 09:13 AM, walter harms wrote: > hi, > perhaps you are looking for 'offset'' ? > > You can see a (simple) use case here: http://gnuplot.sourceforge.net/demo/datastrings.html > > hope that helps, > re, > wh > > Am 28.03.2012 23:47, schrieb overclocked: >> Hello, can I ask for Your help? >> >> I make a .eps plot, but about 10-15% of canvas is free space under the >> key (under right; outside the plot area). And I have totally no idea how >> to remove it. It's critical for me to remove this free space, because it >> should significantly improve layout of my paper... >> >> So can I ask for Your help? >> >> The .eps looks like: >> >> ------------------------------------------------- >> y plot plot plot plot plot plot plot >> t y plot plot plot plot plot plot plot >> i t plot plot plot plot plot plot plot >> t i plot plot plot plot plot plot plot >> l c plot plot plot plot plot plot plot >> e s plot plot plot plot plot plot plot >> xtics xtics xtics xtics >> histogram titles >> xtitle >> >> key key key key >> key key key key >> free space free space free space >> free space free space free space<----- THIS I WOULD LIKE TO REMOVE >> free space free space free space >> ------------------------------------------------- >> >> This is my script: >> >> set term postscript size 10,7.5 >> set output 'chart-5s-only_percents.eps' >> set style fill solid 1.00 >> set style histogram clustered gap 1 >> set style data histograms >> set yrange [0:100] >> set key font "Helvetica,18" >> set key under right #reverse >> set key spacing 2.5 >> set xlabel "\n Minimum precentage of identical prefixes in 2 spikes to >> be duplicated \n" font "Helvetica,18" >> set xlabel offset 0,-1 >> set xtics offset 0.25,0 >> set xtics font "Helvetica,10" >> set ytics font "Helvetica,12" >> set ytics format "%g%%" >> set ytics (0,10,20,30,40,50,60,70,80,90,100) >> set ylabel "Number of updates in duplicated spikes, \n % from total" >> font "Helvetica,18" >> set grid noxtics nomxtics ytics mytics noztics nomztics \ >> nox2tics nomx2tics noy2tics nomy2tics nocbtics nomcbtics >> set grid layerdefault linetype 0 linewidth 0.500, linetype 0 linewidth >> 0.500 >> # >> plot newhistogram "Wide", 'data-5s.dat' using 4:xtic(1) title "updates >> in duplicated spikes" lc rgb 'grey', \ >> '' using 6 title "updates in duplicated spikes received from ASs with >> peering link" lc rgb 'black', \ >> \ >> newhistogram "Eqix", \ >> '' using 9:xtic(1) notitle lc rgb 'grey', \ >> '' using 11 notitle lc rgb 'black', \ >> \ >> newhistogram "Isc", \ >> '' using 14:xtic(1) notitle lc rgb 'grey', \ >> '' using 16 notitle lc rgb 'black', \ >> \ >> newhistogram "Linx", \ >> '' using 19:xtic(1) notitle lc rgb 'grey', \ >> '' using 21 notitle lc rgb 'black', \ >> \ >> newhistogram "Route-views2", \ >> '' using 24:xtic(1) notitle lc rgb 'grey', \ >> '' using 26 notitle lc rgb 'black', \ >> \ >> newhistogram "Route-views4", \ >> '' using 29:xtic(1) notitle lc rgb 'grey', \ >> '' using 31 notitle lc rgb 'black' >> >> >> Thank You very much in advance, >> Kind Regards, >> Andrey Sapegin, >> >> PhD Student, >> University of Leipzig. >> >> ------------------------------------------------------------------------------ >> This SF email is sponsosred by: >> Try Windows Azure free for 90 days Click Here >> http://p.sf.net/sfu/sfd2d-msazure >> _______________________________________________ >> gnuplot-info mailing list >> gnu...@li... >> https://lists.sourceforge.net/lists/listinfo/gnuplot-info >> |