linewidthdlg.m

Dialog box to graphically chose a linewidth.
2K Downloads
Updated 19 Dec 2001

View License

This function creates a modal dialog box that displays a line and allows the user to adjust its width with a slider control. When the user is finished and hits the ok button, the function returns the width selected.

Suggested use: Add a menu to your GUI that allows you to change the linewidths of all lines within a figure (see example included). Then, if the need arises to use your GUI during a presentation, you can quickly thicken all the lines displayed and make them easier for your audience to see.

This function has been tested in Matlab 5.3 and Matlab 6.1.

Cite As

Jordan Rosenthal (2026). linewidthdlg.m (https://www.mathworks.com/matlabcentral/fileexchange/1179-linewidthdlg-m), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R11
Compatible with any release
Platform Compatibility
Windows macOS Linux
Categories
Find more on App Building in Help Center and MATLAB Answers
Version Published Release Notes
1.0.0.0