| 6 | 1/1 | 返回列表 |
| 查看: 1843 | 回復(fù): 5 | ||||
caoweiyue新蟲 (小有名氣)
|
[求助]
請教一下用什么軟件制圖表可以知道圖線上任意一點(diǎn)的坐標(biāo)值 已有1人參與
|
| 想請教一下 用哪款軟件制圖表可以知道圖線上任意一點(diǎn)的坐標(biāo)值 |
Origin 實(shí)用 |
榮譽(yù)版主 (著名寫手)
![]() |
專家經(jīng)驗(yàn): +4 |
|
matlab 就可以實(shí)現(xiàn), 動態(tài)顯示鼠標(biāo)的坐標(biāo)值和像素值,具體的實(shí)現(xiàn)方法很多,但歸結(jié)起來就是獲取坐標(biāo)軸的current point 屬性值,我這里給出的一個(gè)函數(shù)是從mathworks 獲取柄稍作修改后的結(jié)果,相信對做圖像處理的朋友有一定的作用。另一個(gè)就是自帶的pixval函數(shù)。誰有不同的實(shí)現(xiàn)方法,請多多共享! 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 |

銅蟲 (小有名氣)

榮譽(yù)版主 (著名寫手)
彩色掛圖
![]() |
專家經(jīng)驗(yàn): +2 |

木蟲 (正式寫手)
鐵蟲 (小有名氣)
| 6 | 1/1 | 返回列表 |
| 最具人氣熱帖推薦 [查看全部] | 作者 | 回/看 | 最后發(fā)表 | |
|---|---|---|---|---|
|
[考研] 311求調(diào)劑 +10 | 冬十三 2026-03-15 | 11/550 |
|
|---|---|---|---|---|
|
[考研] 一志愿天津大學(xué)化學(xué)工藝專業(yè)(081702)315分求調(diào)劑 +7 | yangfz 2026-03-17 | 7/350 |
|
|
[考研] 085601求調(diào)劑 +4 | Du.11 2026-03-16 | 4/200 |
|
|
[考研] 材料專碩274一志愿陜西師范大學(xué)求調(diào)劑 +5 | 薛云鵬 2026-03-13 | 5/250 |
|
|
[考研] 304求調(diào)劑 +5 | 素年祭語 2026-03-15 | 5/250 |
|
|
[考研] 304求調(diào)劑 +4 | ahbd 2026-03-14 | 4/200 |
|
|
[考研] 283求調(diào)劑 +10 | 小樓。 2026-03-12 | 14/700 |
|
|
[考研] 308 085701 四六級已過求調(diào)劑 +7 | 溫喬喬喬喬 2026-03-12 | 14/700 |
|
|
[考研] 招收0805(材料)調(diào)劑 +3 | 18595523086 2026-03-13 | 3/150 |
|
|
[考研] 求材料調(diào)劑 085600英一數(shù)二總分302 前三科235 精通機(jī)器學(xué)習(xí) 一志愿哈工大 +4 | 林yaxin 2026-03-12 | 4/200 |
|
|
[考研] 0856材料與化工301求調(diào)劑 +5 | 奕束光 2026-03-13 | 5/250 |
|
|
[考研] 290求調(diào)劑 +9 | ADT 2026-03-11 | 9/450 |
|
|
[考研] 工科,求調(diào)劑 +3 | 我887 2026-03-11 | 3/150 |
|
|
[考研] 329求調(diào)劑 +3 | miaodesi 2026-03-12 | 4/200 |
|
|
[考研] 工科278分求調(diào)劑 +5 | 周慢熱啊 2026-03-12 | 7/350 |
|
|
[考研] 一志愿211化學(xué)學(xué)碩310分求調(diào)劑 +8 | 努力奮斗112 2026-03-12 | 9/450 |
|
|
[考研] 314求調(diào)劑 +7 | 無懈可擊的巨人 2026-03-12 | 7/350 |
|
|
[考研] 295求調(diào)劑 +3 | 小匕仔汁 2026-03-12 | 3/150 |
|
|
[考研] 289求調(diào)劑 +3 | 李政瑩 2026-03-12 | 3/150 |
|
|
[考研] 070303一志愿西北大學(xué)學(xué)碩310找調(diào)劑 +3 | d如愿上岸 2026-03-13 | 3/150 |
|