Code covered by the BSD License  

Highlights from
Nicebox

Be the first to rate this file! 2 Downloads (last 30 days) File Size: 2.84 KB File ID: #25839

Nicebox

by Ross Hatton

 

13 Nov 2009 (Updated 09 Jun 2010)

Like BOX, but only draws edges behind the plot.

| Watch this File

File Information
Description

In 3d mode, the 'box' axes property draws a full wireframe box around the plot. It is often more attractive for this box to omit the three edges of this box that fall between the plot contents and the camera. Nicebox draws the reduced box lines.

The syntax for Nicebox is the same as for the basic Box command, with the addition of a 'redraw' option to force recalculation of which edges should be included. This recalculation is handled automatically when the mouse is used to change the camera view, but must be called explicitly if the view is changed via a function call or if the axis limits are modified (neither of these actions triggers a callback).

MATLAB release MATLAB 7.4 (R2007a)
Tags for This File  
Everyone's Tags
Tags I've Applied
Add New Tags Please login to tag files.
Please login to add a comment or rating.
Updates
09 Jun 2010

Turned off the handle visibility and thickened the box lines, so they behave more like box. Added an optional output to return the nicebox state for the target axis.

Tag Activity for this File
Tag Applied By Date/Time
box Ross Hatton 16 Nov 2009 09:33:57
gui Ross Hatton 16 Nov 2009 09:33:57
customization Ross Hatton 16 Nov 2009 09:33:57

Contact us at files@mathworks.com