Graphic Editing Tool

Edit plots and text by just selecting them with the mouse. This function allows you to easily move.
3,8K Downloads
Aktualisiert 2 Jun 2006

Keine Lizenz

Graphic Editing Tool

Usage:
editingtool('On') - enables the function
editingtool('Off') - disenables the function
editingtool - Enables the function if it is Off
or disenables the function if it is On
If there is no current figure, a demo is run
editingtool(handles) - enables the function only
to the handles specified

Description:
Allows you to edit plots and text by just
selecting them with the mouse.

You can easily move, rotate, change properties etc. of lines
and text by simply clicking on them or typing specific keys.

A double click will select a specific point within a line.

The following Key-Press Functions may used with this program
return - Opens the Java property window of the current object(s)
delete - Deletes the current object(s)
insert - Inserts in additional point to the selected line object
c - copies the current object(s) and places them using the mouse
d - Draw a line by left-clicking on points and right-click when finished
The Tag property is set to 'line'
p - Draw a polygon by left-clicking on points and right-click when
finished, the polygon is close with the first point
The Tag property is set to 'polygon'
t - Insert text by click on a position and typing

Works by setting the ButtonDownFcn of the
current axes and children as editingtool('BtnDown').

NOTES:
The Tag property is useful for extracting the data from the lines
of polygons. For example
x = get(findobj('Tag','line'),'Xdata')
y = get(findobj('Tag','polygon'),'Ydata')

The userdata of the figure is set to a structure.
If the userdata already contains a structure,
new fields are added for internal use of the program.
Some of fields are describes bellow
hAx: Current axes
hSlc: Handle of line used for point seleccion
hObj: List of handles of selected objects
NewObj: Used for pasting
index: Index of point within a line
hMod: Handle of object that contains a selected point
Button: Mouse button selected
CurrentPoint: [2x3 double] - Last point selected
hLine: Line drawn during rotation
Orig: [2x3 double] - Used for rotation of objects

Key Words: Edit, Rotate, Move, Delete, Add Lines, Draw

Zitieren als

Alex Sanchez (2024). Graphic Editing Tool (https://www.mathworks.com/matlabcentral/fileexchange/8849-graphic-editing-tool), MATLAB Central File Exchange. Abgerufen .

Kompatibilität der MATLAB-Version
Erstellt mit R14
Kompatibel mit allen Versionen
Plattform-Kompatibilität
Windows macOS Linux

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Veröffentlicht Versionshinweise
1.0.0.0

fixed bugs