Increase the interval between xtic in a cluster histogram (histogram)

Sorry if this seems like a simple question (maybe), but I searched around to get some kind of solution to no avail.

I have a histogram chart as shown (attached) here. My problem is to adjust the distance between the labels for each xxt that overlap with each other. If you notice that the histogram shown here, along the X axis, “Third Label” and “Fourth Label Long” overlap. Is there a way to control the interval so that the labels do not overlap? In addition, I need legends (ring1, ring2 and ring12) so that they are in italics. Since I use the "terminal pngcairo", is there any way to make this italic?

set terminal pngcairo size 550,350 enhanced dash
set output "xplot_ACF_ring1-ring2-head-plots2.png"

set macro
labelFONT="font 'arial,22'"
scaleFONT="font 'arial,12'"
scaleFONT2="font 'helvetica,13'"
keyFONT="font 'arial,18'"
########################################################################################

set ylabel "Time in (ns)"           @labelFONT
set ytic                    @scaleFONT 
set xtic scale 0                @scaleFONT
set size 1.0, 1.0

########################################################################################
ring1 = "#ff0000"; ring2 = "#7FFF00"; ring12 = "#0000FF"
set auto x
set yrange [65:90]
set style data histogram
set style histogram cluster gap 1.5
set style fill solid 1.0 border -1
set boxwidth 0.9 relative
plot 'mal-cel-iso-bcm-ring1-ring2-head-bar-plot2.dat' using 2:xtic(1) ti col fc rgb ring1 ,\
     '' u 3 ti col fc rgb ring2 ,\
     '' u 4 ti col fc rgb ring12

script

Title         "ring1"   "ring2"     "ring12"
"First label"     70        76      77
"Second label"    68        71      69
"Third label"     76        72      68
"Fourth label long"   75        76      77

, script. enter image description here

:

. :

Title   "ring1"         "ring2"         "ring12"
""      77.295326   2.2 74.829245   3.2 78.238016   2.1
""      77.613533   6.2 74.123269   1.5 79.704782   3.6
""      76.589653   2.1 71.704465   2.6 78.736618   4.2
""      75.996256   0.4 73.407460   3.3 77.290057   2.5

.

.

+4
3

.

,

set offset -0.3,-0.3,0,0

4.6.3:

enter image description here

, ,

  • (set terminal ... size ...). , set size , .

  • , . set xtic rotate ....

+2

- , :

set xtics rotate out

, :

set xtics rotate by -45
+3

Just set the offset:

set offsets <left>, <right>, <top>, <bottom>

You can also find the following useful commands:

unset offsets
show offsets

remember that offsets can be constant or an expression

also remember that offsets are ignored in splots.

0
source

Source: https://habr.com/ru/post/1527831/


All Articles