24小时热门版块排行榜    

查看: 822  |  回复: 2
当前只显示满足指定条件的回帖,点击这里查看本话题的所有回帖

Dylan1280

新虫 (初入文坛)

[求助] gnuplot中插页(图片)无法完全显示。请问如何将图片缩小,以使得可以显示?

大家好,

问题是这样。一副图像, 我想加入一个图片插页。当插页为一个函数时,可以正常显示(如图中左边插页);但是加入一幅图片时,因为限制了插页的尺寸,不知是不是图片太大, 只显示了局部(如附图右边插页). 附gnuplot命令
请问如何控制图片的大小使得这个图片插页能显示完全?搜索未得,请大家帮忙.  谢~。

圣诞快乐
Gang

---------------
set term postscript eps color solid linewidth 2 "Times-New-Roman" 24 enhanced
set out 'multi_s.eps'

set xlabel "r(m)" font "Times-New-Roman, 24"
set xrange [0 : 5]
set xtics 0.4
set mxtics 2
set ylabel "E "
set yrange [-0.6:4]
set ytics 1
set mytics 2

set key right top
set size 1.0,1.0          #This sets the size of the total figure.
set origin 0.0,0.0

set multiplot
set origin 0.0,0.0         #This is the bigger plot.
set size 1,1
set key right top
#set title ' Free energy'
plot  [2.4 : 4.4] "pp_s.dat" u 1:3  w l lw 2 notitle ,\
"pp_s.dat" u 1:3:4  w yerrorbars ls 1 notitle

# The second graph
set origin 0.2,0.5   #This is where the origin of the inset lies, the coordinate is the relative
set size 0.20,0.35     #size of the bigger plot, not the absolute value.
set border            # with border
unset xlabel; unset ylabel; unset title; set nokey; unset xtics; unset ytics
plot [2.4: 4.4] "pp_s.dat" u 1:3  w l lw 2 notitle

# The third graph
set origin 0.7,0.4   #This is where the origin of the inset lies, the coordinate is the relative
set size 0.20,0.35     #size of the bigger plot, not the absolute value.
unset border
unset xlabel; unset ylabel; unset title; set nokey; unset xtics; unset ytics
plot "mei.jpg" binary filetype=jpg with rgbimage notitle

set nomultiplot
set output
set term wxt
gnuplot中插页(图片)无法完全显示。请问如何将图片缩小,以使得可以显示?
multi_s.png
回复此楼

» 猜你喜欢

统计物理,量子场论,相干态,SQUIDs
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

Dylan1280

新虫 (初入文坛)

我也這樣想。不過將圖片像素後減小了很多以後,以我這命令,也不行。不知道您說的『把圖縮小』還可指什麼操作?
统计物理,量子场论,相干态,SQUIDs
3楼2013-12-20 17:44:48
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
查看全部 3 个回答

itpfeng

木虫 (著名写手)

gnuplot不能就图那你不能把图缩小去就gnuplot么,未必gnuplot里就内置了把图片缩小的功能,要熟悉这些新功能还是去看manual
2楼2013-12-20 02:20:57
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[考研] 一志愿中南大学化学学硕0703总分337求调剂 +5 niko- 2026-03-22 5/250 2026-03-23 22:01 by fuyu_
[考研] 341求调剂(一志愿湖南大学070300) +4 番茄头--- 2026-03-22 5/250 2026-03-23 21:59 by fuyu_
[考研] 招08考数学 +6 laoshidan 2026-03-20 14/700 2026-03-23 14:37 by 15614359529
[考研] 298求调剂 +8 上岸6666@ 2026-03-20 8/400 2026-03-23 11:02 by laoshidan
[考研] 070300,一志愿北航320求调剂 +3 Jerry0216 2026-03-22 5/250 2026-03-23 09:16 by 。。堂堂
[考研] 276求调剂 +3 YNRYG 2026-03-21 4/200 2026-03-23 08:31 by 醉在风里
[考研] 317求调剂 +12 申子申申 2026-03-19 18/900 2026-03-22 22:23 by luoyongfeng
[考研] 寻找调剂 +4 倔强芒? 2026-03-21 4/200 2026-03-22 16:14 by 木托莫露露
[考研] 305分求调剂(食品工程) +4 Sxy112 2026-03-21 6/300 2026-03-22 15:26 by 无懈可击111
[考研] 311求调剂 +3 26研0 2026-03-20 3/150 2026-03-22 14:46 by ColorlessPI
[考研] 279求调剂 +5 红衣隐官 2026-03-21 5/250 2026-03-21 14:59 by lature00
[考研] 307求调剂 +3 wyyyqx 2026-03-17 3/150 2026-03-21 03:20 by JourneyLucky
[考研] 332求调剂 +4 ydfyh 2026-03-17 4/200 2026-03-21 02:20 by JourneyLucky
[考研] 求调剂 +3 Ma_xt 2026-03-17 3/150 2026-03-21 02:05 by JourneyLucky
[考研] 324分 085600材料化工求调剂 +4 llllkkkhh 2026-03-18 4/200 2026-03-21 01:24 by JourneyLucky
[考研] 304求调剂 +6 曼殊2266 2026-03-18 6/300 2026-03-21 00:32 by JourneyLucky
[考研] 一志愿西南交通 专硕 材料355 本科双非 求调剂 +5 西南交通专材355 2026-03-19 5/250 2026-03-20 21:10 by JourneyLucky
[考研] 295材料求调剂,一志愿武汉理工085601专硕 +5 Charlieyq 2026-03-19 5/250 2026-03-20 20:35 by JourneyLucky
[考研] 材料工程专硕调剂 +5 204818@lcx 2026-03-17 6/300 2026-03-18 22:55 by 204818@lcx
[考研] 考研调剂 +3 淇ya_~ 2026-03-17 5/250 2026-03-17 09:25 by Winj1e
信息提示
请填处理意见