简体   繁体   中英

gnuplot: Points overlap in pm3d with a wide xrange

I'm using gnuplot to plot three dimentions of data using pm3d. I'm trying to plot the number of times an event occurs (z value) with respect to the day of the year (x value) and hour of the day (y value).

Using pm3d works great for up to a range of 600 (rought 2 years of data). However, the points begin to overlap each other when a wider range is required.

I believe this is related to the fact that gnuplot isn't stretching the plot to the full size specified in set terminal. I haven't however been able to find a setting that controls this directly.

the script I'm using:

set terminal png size 10000, 1000
set output "%s_plot.png"
set title "%s's"
set ytics 1,1
set xtics 1
set xrange[0:%s]
set yrange[0:23]
set cbrange[0:%s]
set pm3d map 
set palette defined (0 "white", 1 "blue", 31 "red")
splot '%s.data'

aspect of the plot for a range of [0:1000] in x:

aspect of the plot for a range of [0,100] in x:

(the images above are just snippets of the whole thing)

What can I do to remedy this? Perhaps the solution is manually setting the points (squares) to have a fixed width.

Thanks.

对于您想要的绘图类型,我将最后一行替换为:

plot '%s.data' matrix with image

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM