Graph 如何修复gnuplot中的xtics标签重叠

Graph 如何修复gnuplot中的xtics标签重叠,graph,gnuplot,Graph,Gnuplot,我正在使用GNUPlot绘制五个实值函数的图形。我认为这很容易解决,但我是个初学者。 我的x轴的标签有问题。所有的xtics数字都是重叠的,我不知道为什么。 My.plt打印3个文件:an.eps、pb.eps和a.png。它接收一个.100文件,其中包含6列数字。第一列表示t的值,其他五列表示各t处每个函数的值 我的.plt文件是: reset set terminal windows set style line 1 lt 1 linewidth 3 set style line 2

我正在使用GNUPlot绘制五个实值函数的图形。我认为这很容易解决,但我是个初学者。 我的x轴的标签有问题。所有的xtics数字都是重叠的,我不知道为什么。 My.plt打印3个文件:an.eps、pb.eps和a.png。它接收一个.100文件,其中包含6列数字。第一列表示t的值,其他五列表示各t处每个函数的值

我的.plt文件是:

reset
set terminal windows

set style line 1 lt 1 linewidth   3
set style line 2 lt 2 linewidth   3 
set style line 3 lt 3 linewidth   3 
set style line 4 lt 4 linewidth   3 
set style line 5 lt 5 linewidth   3
set style line 6 lt 6 linewidth   3


set border linewidth 3

set xzeroaxis
set yzeroaxis

set xlabel '{/Helvetica-Oblique t (dias)}' enhanced font ',28'

set key center top
set key center right
set key top right
set key box

set tics scale 1.5

set grid ytics
set grid xtics

set xtics 0,250,3500

set ytics 0,0.1,1


set title 'Simulacao' font ',26'

set samples 100

plot "./fort.100"  using 1:2 with lines title 'Ms' linestyle 1, \
     "./fort.100"  using 1:3 with lines title 'Mi' linestyle 2, \
     "./fort.100"  using 1:4 with lines title 'A ' linestyle 3, \
     "./fort.100"  using 1:5 with lines title 'H ' linestyle 4, \
     "./fort.100"  using 1:6 with lines title 'I ' linestyle 5

pause -1

set terminal postscript eps enhanced
set termoption enhanced
set output "xsol-pb.eps"

replot

set terminal postscript eps enhanced color font ',22'
set termoption enhanced
set output "xsol.eps"

replot

set terminal png giant size 900,600 enhanced 
set termoption enhanced
set output "xsol.png"

replot
my.eps图的链接:

我如何解决这个问题


我还对图片右上角的桌子有问题。如何解决此问题?

避免数据和密钥“冲突”的两种可能性:

  • 调整比例,使曲线位于关键点下方,例如
    set yrange[0:1.5]
  • 移动钥匙的位置,例如,
    set key center right
    set key at graph 0.8,graph 0.8
    。有关详细信息,请检查帮助键

  • 你的数据的x范围是多少?@theozh 0到35000。好吧,让gnuplot自动缩放x轴,即删除线
    set xtics 02503500
    。它是如何改变的?它解决了我的问题。非常感谢。现在我只需要解决图例表的问题。图表与图例重叠