Options

 

 

 

HelpFile

Normally when you click on the the 'Help' tag in the menu box, plt will display the file plt.chm on Windows systems and the file plt.htm otherwise. For compiled applications, plt will look for these files in the folder containing the .exe file and for .m applications plt will search the MatLab path for these files. A different help file may be specified by using the 'HelpFile' parameter:

'HelpFile','filename' If the filename is specified without any path, plt uses looks for this file in the folder containing the currently running .m file (or in the same folder containing the .exe file for compiled applications). The file extension must be included in the filename string. If the extension is .chm then the help file viewer is opened (allowed on Windows systems only) and for all other file types, the default browser of the OS is used to open the specified file.
'HelpFile', 'drive:\path\filename' As above, plt opens the specified file using the help file viewer or the default browser. When path information is supplied, plt will look for the file only in the location given. As before the file extension must be included in the filename string.

 

Options

plt(...,'Options',s);
s is a string specifying one or more options. The options allowed are:

  'Ticks' Use tick marks (i.e. no grid lines)
  'Menu' Enable the figure menu bar
  'Slider' Enable the x-axis control slider
  'Xlog' use logarithmic scaling on the x axis
  'Ylog' use logarithmic scaling on the y axis
  'NoCursor' cursor objects are hidden by default, but may be re-enabled with the command plt('cursor',get(gca,'user'),'set','visON');
  '-Help' / '+Help' removes/adds the Help tag from the menu box
  '-Mark' / '+Mark' removes/adds the Mark tag from the menu box
  '-Xlog' / '+Xlog' removes/adds the LinX/LogX tag from the menu box
  '-Ylog' / '+Ylog' removes/adds the LinY/LogY tag from the menu box
  '-Print' / '+Print' removes/adds the Print tag from the menu box
  '-Grid' / '+Grid' removes/adds the Grid tag from the menu box
  '-Figmenu' / '+Figmenu' removes/adds the Menu tag from the menu box
  '-Rotate' / '+Rotate' removes/adds the XYrotate (XY↔) tag from the menu box
  '-All' / '+All' removes /adds all menu box items

These options strings are case sensitive. The first letter must be a capital and the rest lower case as shown. For example if you wanted the display to initialize with the menu bar enabled and the grid lines off you could use either:
   plt(...,'Options','Menu','Options','Ticks');
   plt(...,'Options','Menu Ticks');
If you even wanted to prevent the user from re-enabling the grid lines by using the menu box you would use:
   plt(...,'Options','Menu Ticks -Grid');
Instead of a space between the options, you can use any separator character you like. In fact plt really only looks at the capital letters so if you wanted to be very concise (not to mention cryptic), the previous command could be written:
   plt(...,'Options','MT-G');
You can also use a plus sign on the menu box tags. For example, both of the following commands would remove all the menu box items except for the x and y axis lin/log controls:
   plt(...,'Options','-H-M-G-F');
   plt(...,'Options','+X+Y');
Note that the Print menu box tag is unique in that it is off by default and will only appear when +P appears in the Options string. If you remove all menu box items (i.e.  'Options','-A'), the box outline is not displayed.