24小时热门版块排行榜    

查看: 823  |  回复: 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的回帖

itpfeng

木虫 (著名写手)

gnuplot不能就图那你不能把图缩小去就gnuplot么,未必gnuplot里就内置了把图片缩小的功能,要熟悉这些新功能还是去看manual
2楼2013-12-20 02:20:57
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

Dylan1280

新虫 (初入文坛)

我也這樣想。不過將圖片像素後減小了很多以後,以我這命令,也不行。不知道您說的『把圖縮小』還可指什麼操作?
统计物理,量子场论,相干态,SQUIDs
3楼2013-12-20 17:44:48
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
相关版块跳转 我要订阅楼主 Dylan1280 的主题更新
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[考研] 材料调剂 +3 匹克i 2026-03-23 3/150 2026-03-23 23:18 by peike
[考研] 341求调剂(一志愿湖南大学070300) +4 番茄头--- 2026-03-22 5/250 2026-03-23 21:59 by fuyu_
[考研] 一志愿重庆大学085700资源与环境,总分308求调剂 +7 墨墨漠 2026-03-23 8/400 2026-03-23 20:36 by Creta
[考研] 279分求调剂 一志愿211 +16 chaojifeixia 2026-03-19 18/900 2026-03-23 19:44 by stone_128
[考研] 07化学280分求调剂 +3 722865 2026-03-23 3/150 2026-03-23 18:48 by macy2011
[考研] 求调剂一志愿武汉理工大学材料工程(085601) +3 WW.' 2026-03-23 5/250 2026-03-23 17:18 by 枫翼ljj
[论文投稿] 急发核心期刊论文 +3 贤达问津 2026-03-23 5/250 2026-03-23 17:13 by 妹子不好惹
[考研] 276求调剂。有半年电池和半年高分子实习经历 +8 材料学257求调剂 2026-03-23 9/450 2026-03-23 13:01 by ztnimte
[考研] 307求调剂 +3 余意卿 2026-03-21 3/150 2026-03-23 10:32 by Iveryant
[考研] 298求调剂一志愿211 +3 上岸6666@ 2026-03-20 3/150 2026-03-22 15:50 by ColorlessPI
[考研] 311求调剂 +3 26研0 2026-03-20 3/150 2026-03-22 14:46 by ColorlessPI
[考研] 生物学调剂 +5 Surekei 2026-03-21 5/250 2026-03-22 14:39 by tcx007
[考研] 285求调剂 +6 ytter 2026-03-22 6/300 2026-03-22 12:09 by 星空星月
[考研] 286求调剂 +10 Faune 2026-03-21 10/500 2026-03-21 23:34 by 314126402
[考研] 初试 317 +7 半拉月丙 2026-03-20 7/350 2026-03-21 22:26 by peike
[考研] 机械专硕299求调剂至材料 +3 kkcoco25 2026-03-16 4/200 2026-03-21 03:52 by JourneyLucky
[考研] 083200学硕321分一志愿暨南大学求调剂 +3 innocenceF 2026-03-17 3/150 2026-03-21 02:35 by JourneyLucky
[考研] 求调剂 +3 Ma_xt 2026-03-17 3/150 2026-03-21 02:05 by JourneyLucky
[考研] 086500 325 求调剂 +3 领带小熊 2026-03-19 3/150 2026-03-20 18:38 by 尽舜尧1
[硕博家园] 湖北工业大学 生命科学与健康学院-课题组招收2026级食品/生物方向硕士 +3 1喜春8 2026-03-17 5/250 2026-03-17 17:18 by ber川cool子
信息提示
请填处理意见