gnuplot:使用*圆*(而不是点)绘制参数化函数
以下gnuplot脚本可以工作:gnuplot:使用*圆*(而不是点)绘制参数化函数,gnuplot,Gnuplot,以下gnuplot脚本可以工作: set parametric set trange [0:5] set xrange [0:4] set yrange [0:6] plot t+log(t+1),t*t+sin(t) title 'Parametric example' with points 。。。但这并不是: set parametric set trange [0:5] set xrange [0:4] set yrange [0:6] plot t+l
set parametric
set trange [0:5]
set xrange [0:4]
set yrange [0:6]
plot t+log(t+1),t*t+sin(t) title 'Parametric example' with points
。。。但这并不是:
set parametric
set trange [0:5]
set xrange [0:4]
set yrange [0:6]
plot t+log(t+1),t*t+sin(t) title 'Parametric example' with circles
使用圆(而不是点)打印的正确语法是什么?如何设置圆直径
多谢各位
[编辑]
我尝试了以下方法,但没有成功:
C:\gnuplot.exe
G N U P L O T
Version 4.6 patchlevel 0 last modified 2012-03-04
Build System: MS-Windows 32 bit
Copyright (C) 1986-1993, 1998, 2004, 2007-2012
Thomas Williams, Colin Kelley and many others
gnuplot home: http://www.gnuplot.info
faq, bugs, etc: type "help FAQ"
immediate help: type "help" (plot window: hit 'h')
gnuplot changed the codepage of this console from 437 to 1252 to
match the graph window. Some characters might only display correctly
if you change the font to a non-raster type.
Terminal type set to 'windows'
gnuplot> set samples 11
gnuplot> plot sample [t=0:2] '+' using (t+log(t+1)) : (sqrt(t)+sin(t)) : (0.05) with circles
undefined variable: sample
gnuplot> plot samples [t=0:2] '+' using (t+log(t+1)) : (sqrt(t)+sin(t)) : (0.05) with circles
undefined variable: samples
gnuplot> plot [t=0:2] '+' using (t+log(t+1)) : (sqrt(t)+sin(t)) : (0.05) with circles
Pseudodata not yet implemented for polar or parametric graphs
gnuplot>
[编辑二]
如果我调整图形的纵横比,使X轴和Y轴在屏幕上的比例相同,则圆不是圆的。我花了很多时间搜索,但找不到合适的语法来修复这个问题 仅在gnuplot 5中引入了
sample
关键字。对于该版本,您的第一次尝试效果良好:
set samples 11
plot sample [t=0:2] '+' using (t+log(t+1)) : (sqrt(t)+sin(t)) : (0.05) with circles
仅在gnuplot 5中引入了
示例
关键字。对于该版本,您的第一次尝试效果良好:
set samples 11
plot sample [t=0:2] '+' using (t+log(t+1)) : (sqrt(t)+sin(t)) : (0.05) with circles
东部时间下午6:37我刚刚编辑了原始帖子以添加新信息东部时间下午6:37我刚刚编辑了原始帖子以添加新信息1月17日下午9:38我在原始帖子中添加了一条关于“圆圈”不是圆形的评论。您是如何调整纵横比的?“您是如何调整纵横比的?”抓住图形的一角并拖动它,直到X轴上的1个单位与Y轴上的1个单位具有相同的长度。调整大小时,Gnuplot不会自动回复。因此,您的初始绘图只会调整大小,并且可能会扭曲。调整窗口大小后,请执行
replot
(或使用相应的工具栏按钮刷新),或通过终端设置进行调整:设置终端wxt尺寸800800;设置尺寸比1
或类似操作。“设置终端wxt尺寸800800;设置尺寸比1”谢谢!很好。1月17日晚上9点38分,我在原始帖子中添加了一条关于“圆”不是圆的评论。你是如何调整纵横比的?“你是如何调整纵横比的?”抓住图形的一角并拖动它,直到X轴上的1个单位与Y轴上的1个单位具有相同的长度。调整大小时,Gnuplot不会自动重新打印。因此,初始绘图只会调整大小,并且可能会扭曲。请执行replot
(或在调整窗口大小后,使用相应的工具栏按钮刷新,或通过终端设置进行调整:设置终端wxt大小800800;设置大小比1
或类似设置。“设置终端wxt大小800800;设置大小比1”谢谢!效果不错。