oaxes - central axis lines through an origin

Draw central axis lines through an origin point.
6K Downloads
Aktualisiert 7. Aug 2012

Lizenz anzeigen

Oaxes creates a set of axis lines through a specified origin point. Oaxes supports both 2D and 3D views, ticks and tick labels, axis labels, log-scaled axes, and has a plethora of properties, analogous to normal axes properties, that give control over the oaxes object's appearance. In addition, various oaxes-specific properties give the user control over features such as arrows at the axis ends and the extent of the axis lines.

By default, the origin is set at the center of the axes limits, and will remain centered if the parent axes limits change. If a fixed origin point is specified, the axis lines will be drawn using that point as the origin. Additionally, the oaxes object will automatically update in response to changes to many of the parent axes' properties.

See the help text in oaxes.m for more information, including examples.

Oaxes uses a number of undocumented MATLAB features which may cause problems in older versions of MATLAB. If there are workarounds that do not require significant changes, I will add them to the code. MATLAB version 7.10.0 (R2010a) was used to develop and test Oaxes.

Installation: Unpack the contents of the .zip file, then add the top-level folder ("customplots") to the MATLAB path.

Zitieren als

John Barber (2024). oaxes - central axis lines through an origin (https://www.mathworks.com/matlabcentral/fileexchange/30018-oaxes-central-axis-lines-through-an-origin), MATLAB Central File Exchange. Abgerufen.

Kompatibilität der MATLAB-Version
Erstellt mit R2010a
Kompatibel mit allen Versionen
Plattform-Kompatibilität
Windows macOS Linux
Kategorien
Mehr zu Axis Labels finden Sie in Help Center und MATLAB Answers
Quellenangaben

Inspiriert von: axescenter

Community Treasure Hunt

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

Start Hunting!
Version Veröffentlicht Versionshinweise
1.8.0.0

- Fixed bug when parent axes and figure have different background colors
- Fixed error when deleting an oaxes with 'HideParentAxesMode' set to 'color'
- Fixed tick label text properties bugs

1.7.0.0

- Bug fixes
- Improved redraw speed
- Improved appearance of minor ticks

1.6.0.0

- Minor bug fix

1.5.0.0

- Several minor bug fixes
- Removed unneeded code from constructor method

1.4.0.0

- Full object-oriented version
- 'Extend' limits mode, internal tick calculation, other new features
- Improved graphics refresh speed

1.3.0.0

- Properties can be accessed using set/get
- Oaxes responds automatically to property changes
- See the release notes for more details

1.2.0.0

Several bug fixes, improved text alignment, added new properties, improved help text. See the release notes in the help text for a full description.

1.0.0.0