24小时热门版块排行榜    

CyRhmU.jpeg
查看: 1714  |  回复: 5

caoweiyue

新虫 (小有名气)

[求助] 请教一下用什么软件制图表可以知道图线上任意一点的坐标值已有1人参与

想请教一下 用哪款软件制图表可以知道图线上任意一点的坐标值
回复此楼

» 收录本帖的淘帖专辑推荐

Origin 实用

» 猜你喜欢

» 本主题相关价值贴推荐,对您同样有帮助:

已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

dbb627

荣誉版主 (著名写手)

matlab 就可以实现,
动态显示鼠标的坐标值和像素值,具体的实现方法很多,但归结起来就是获取坐标轴的current point 属性值,我这里给出的一个函数是从mathworks 获取柄稍作修改后的结果,相信对做图像处理的朋友有一定的作用。另一个就是自带的pixval函数。谁有不同的实现方法,请多多共享啊!

function dynpoint(arg,h)
% Show the coordinates of a plot dynamically
%
% To start use:
% dynpoint(h)
% where h is a handle to a figure, axes or e.g. line.
%
% To delete use:
% dynpoint('delete',h)
% where h is a handle to a figure, axes or e.g. line.
% (you may also use: dynpoint delete)
%
% There can only be one dynamic plotter in a figure at a time.
%
% Example:
% subplot(211), hline = plot(sin(1:10))
% subplot(212), plot(sin(1:100))
% dynpoint(hline)

% 2002,6.29

if ~exist('arg','var')
arg = gcf;
end

if ~isstr(arg)
handle = arg;
arg = 'init';
end

switch arg
case 'init'
if ~ishandle(handle)
error('h is not a handle')
end

[h,ax] = h2hax(handle);

% delete old dynamic text object
ht = findobj(h,'tag',[mfilename '_text']);
if any(ht)
delete(ht)
end

% text window at the bottom left corner
% text in centred
uicontrol(h,...
'style','text',...
'pos',[2 2 200 15],...
'tag',[mfilename '_text'],...
'userdata',ax(1))

% do the dynamic thing...
set(h,'windowbuttonmotionfcn',[mfilename ' move'])

case 'move'
ht = findobj(gcbf,'tag',[mfilename '_text']);
ax = overobj('axes');
if ~any(ax)
ax = get(ht,'userdata');
end
p = get(ax,'currentpoint');
set(ht,'string',sprintf('(%g, %g)', p(1), p(3)));

case 'delete'
if ~exist('h','var')
h = gcf;
end
[h,ax] = h2hax(h);
set(h,'windowbuttonmotionfcn','')

ht = findobj(h,'tag',[mfilename '_text']);
delete(ht)

end

% ----------
function [h,ax]=h2hax(handle)

typ = get(handle,'type');
if strcmp(typ,'figure')
h = handle;
ax = findobj(h,'type','axes');
elseif strcmp(typ, 'axes')
h = get(handle,'parent');
ax = handle;
elseif strcmp( get(get(handle,'parent'), 'type'), 'axes' )
ax = get(handle,'parent');
h = get(ax,'parent');
end
The more you learn, the more you know, the more you know, and the more you forget. The more you forget, the less you know. So why bother to learn.
2楼2012-08-25 21:10:20
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

hefeicuiyue

铜虫 (小有名气)

【答案】应助回帖


dbb627: 金币+1, 欢迎交流 2012-08-27 19:12:06
用origin就可以实现该功能,在origin中有最左边的screen reader 和下面的几个键都可以显示数据
崔越
3楼2012-08-27 15:14:53
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

csgt0

荣誉版主 (著名写手)

彩色挂图

【答案】应助回帖


dbb627: 金币+1, 感谢应助 2012-08-27 19:12:15
可以使用matlab的ginput坐标轴上的取任意点
也可以使用matlab的datacusor只能取线上的点,可以是线上的任意点,也可以是只能原始数据点。
showmethemoney
4楼2012-08-27 18:00:37
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

bd73778

木虫 (正式写手)

【答案】应助回帖


csgt0: 金币+1, 谢谢 2012-11-26 13:27:00
用水晶易表制作的图形图表可以生成flash文件,支持点击后显示鼠标所在点坐标
5楼2012-11-25 06:31:41
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖

Tingstar

铁虫 (小有名气)

【答案】应助回帖

GetData非常好用,你可以把任意有坐标范围的曲线图数据提取出来,软件非常好学,几分钟就可以学会
6楼2014-03-30 14:46:58
已阅   回复此楼   关注TA 给TA发消息 送TA红花 TA的回帖
相关版块跳转 我要订阅楼主 caoweiyue 的主题更新
信息提示
请填处理意见