| 6 | 1/1 | 返回列表 |
| 查看: 1844 | 回復(fù): 5 | |||||
caoweiyue新蟲 (小有名氣)
|
[求助]
請教一下用什么軟件制圖表可以知道圖線上任意一點(diǎn)的坐標(biāo)值 已有1人參與
|
| 想請教一下 用哪款軟件制圖表可以知道圖線上任意一點(diǎn)的坐標(biāo)值 |
Origin 實(shí)用 |
榮譽(yù)版主 (著名寫手)
![]() |
專家經(jīng)驗(yàn): +4 |
|
matlab 就可以實(shí)現(xiàn), 動(dòng)態(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ā)表 | |
|---|---|---|---|---|
|
[考研] 0703化學(xué)調(diào)劑 +3 | 妮妮ninicgb 2026-03-17 | 3/150 |
|
|---|---|---|---|---|
|
[考研] 304求調(diào)劑 +11 | 小熊joy 2026-03-14 | 12/600 |
|
|
[考研] 266求調(diào)劑 +3 | 陽陽哇塞 2026-03-14 | 7/350 |
|
|
[考研] 265求調(diào)劑 +3 | 梁梁校校 2026-03-17 | 3/150 |
|
|
[考研] 材料專碩306英一數(shù)二 +9 | z1z2z3879 2026-03-16 | 12/600 |
|
|
[考研] 268求調(diào)劑 +7 | 好運(yùn)連綿不絕 2026-03-12 | 8/400 |
|
|
[考研] 考研化學(xué)學(xué)碩調(diào)劑,一志愿985 +4 | 張vvvv 2026-03-15 | 6/300 |
|
|
[考研] 085601求調(diào)劑 +4 | Du.11 2026-03-16 | 4/200 |
|
|
[考博] 26申博 +4 | 八旬速覽 2026-03-16 | 4/200 |
|
|
[考研] 0854控制工程 359求調(diào)劑 可跨專業(yè) +3 | 626776879 2026-03-14 | 9/450 |
|
|
[考研] 化學(xué)調(diào)劑0703 +8 | 啊我我的 2026-03-11 | 8/400 |
|
|
[考研] 304求調(diào)劑 +5 | 素年祭語 2026-03-15 | 5/250 |
|
|
[考研] 0703化學(xué)調(diào)劑 290分有科研經(jīng)歷,論文在投 +7 | 膩膩gk 2026-03-14 | 7/350 |
|
|
[考研] 326求調(diào)劑 +3 | mlpqaz03 2026-03-15 | 3/150 |
|
|
[考研] 材料工程327求調(diào)劑 +3 | xiaohe12w 2026-03-11 | 3/150 |
|
|
[考研] 297一志愿上交085600求調(diào)劑 +5 | 指尖八千里 2026-03-14 | 5/250 |
|
|
[考研] 328求調(diào)劑 +3 | 5201314Lsy! 2026-03-13 | 6/300 |
|
|
[考研] 297求調(diào)劑 +4 | 學(xué)海漂泊 2026-03-13 | 4/200 |
|
|
[考研] 310求調(diào)劑 +3 | 【上上簽】 2026-03-11 | 3/150 |
|
|
[考研] 277求調(diào)劑 +4 | anchor17 2026-03-12 | 4/200 |
|