24小时热门版块排行榜    

查看: 825  |  回复: 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 的主题更新
最具人气热帖推荐 [查看全部] 作者 回/看 最后发表
[考研] 0854 考研调剂 招生了!AI 方向 +4 pk3725069 2026-03-19 16/800 2026-03-23 23:09 by 汪!?!
[考研] 335分 | 材料与化工专硕 | GPA 4.07 | 有科研经历 +4 cccchenso 2026-03-23 4/200 2026-03-23 23:00 by 徐ckkk
[考研] 0703化学求调剂 +4 奶油草莓. 2026-03-22 5/250 2026-03-23 19:37 by pswait
[考研] 303求调剂 +4 元夕元 2026-03-20 4/200 2026-03-23 19:00 by macy2011
[考研] 291求调剂 +5 孅華 2026-03-22 5/250 2026-03-23 09:20 by haoshis
[考研] 石河子大学(211、双一流)硕博研究生长期招生公告 +3 李子目 2026-03-22 3/150 2026-03-22 21:01 by 怎么释怀
[考研] 275求调剂 +6 shansx 2026-03-22 8/400 2026-03-22 15:27 by barlinike
[考研] 0856材料专硕353求调剂 +4 NIFFFfff 2026-03-20 4/200 2026-03-22 09:49 by 2026paper
[考研] 资源与环境 调剂申请(333分) +5 holy J 2026-03-21 5/250 2026-03-21 22:42 by Catalysis25
[考研] 材料求调剂 +5 @taotao 2026-03-21 5/250 2026-03-21 20:55 by lbsjt
[考研] 材料与化工(0856)304求B区调剂 +3 邱gl 2026-03-20 7/350 2026-03-21 19:05 by 15709483992
[考研] 297求调剂 +3 喜欢还是不甘心 2026-03-20 3/150 2026-03-21 18:33 by 学员8dgXkO
[考研] 求调剂 +3 白QF 2026-03-21 3/150 2026-03-21 13:12 by zhukairuo
[考研] 299求调剂 +6 △小透明* 2026-03-17 6/300 2026-03-21 02:42 by JourneyLucky
[考研] 296求调剂 +6 www_q 2026-03-18 10/500 2026-03-20 23:56 by JourneyLucky
[考研] 353求调剂 +3 拉钩不许变 2026-03-20 3/150 2026-03-20 19:56 by JourneyLucky
[考研] 一志愿吉林大学材料学硕321求调剂 +11 Ymlll 2026-03-18 15/750 2026-03-20 19:40 by 丁丁*
[考研] 085600材料与化工求调剂 +6 绪幸与子 2026-03-17 6/300 2026-03-19 13:27 by houyaoxu
[考研] 收复试调剂生 +4 雨后秋荷 2026-03-18 4/200 2026-03-18 14:16 by elevennnne
[考研] 0703化学调剂 +3 妮妮ninicgb 2026-03-17 3/150 2026-03-18 10:29 by macy2011
信息提示
请填处理意见