Typesetting in Plots - Maple Help

Online Help

All Products    Maple    MapleSim


Home : Support : Online Help : Graphics : plot/typesetting

Typesetting in Plots

  

This help page describes how you can include typeset text and mathematics in a plot.

 

Availability

Specifying Typeset Text and Math

Notes

Examples

Compatibility

Availability

• 

Typeset text and mathematics can appear anywhere in a 2-D or 3-D plot where text is normally allowed.  This includes text provided by the plots[textplot] command and the following options: caption, labels, legend, tickmarks, and title.  For more information on how to use these options, see the Examples section of this help page.

Specifying Typeset Text and Math

• 

Arbitrary expressions may be provided to the plots[textplot] command or as values for the options listed above.  These expressions are displayed on the plot as typeset output whenever possible.  Strings are displayed as plain text without the quotation marks, but names such as x, y and Pi are typeset.

• 

If you are using 2-D input mode, then you can take advantage of the different methods available in Maple for inserting 2-D math.  For example, if you wish to add the option title=∫0tfxⅆx, simply click on the definite integral template from the Expressions palette as the right-hand side of the title option and fill in the placeholders.

  

When using 2-D input mode, the input must parse to a Maple expression. If you wish to create a title consisting of palette entries that cannot be parsed, you must create an atomic identifier from them.  This can be done by using left single quotes, as described on the help page for names, or by using the context menu (2-D Math-> Convert To -> Atomic Identifier).

  

To avoid simplification or evaluation of expressions that you wish to typeset, you can create atomic identifiers as described above or use unevaluation quotes (see uneval).

• 

To concatenate several expressions, wrap them inside a typeset structure.  For example, you can combine math and text with the option, caption=typeset("A plot of ", x^2/(x+5), "."). Alternatively, you can provide a format string containing format codes of the form %n, where n is a non-negative integer. The format code %n is replaced by the n-th argument following the format string. The format code %0 is replaced by all the arguments.

Notes

• 

Typesetting is not available for the Classic Worksheet interface.  (See plot/interface.)  However, math expressions, including those inside a typeset structure, may still be provided wherever text is accepted.  In these cases, the expressions are first converted to plain text and then concatenated.

• 

Strings are displayed without the quotation marks.  To include a quotation mark in a string, use \".  To create multiple lines of text, use \n.  See backslash for more information about using the backslash as an escape character.

Examples

plotx2x+5,x=1..5,caption=typesetA plot of ,x2x+5,.

plot0.2x3x,x2x+5,x=1..3,caption=typesetA plot of %1 and %2.,0.2x3x,x2x+5

plotsinx,x=4π..4π,tickmarks=spacingπ,default

plotcosx2,11x2,x=π..π,legend=typesetCurve: ,cosx2,typesetCurve: ,11x2

plots[textplot]1,1,typesetThe plot of ,∫t0tfxⅆx,.,font=TIMES,BOLD,20

Compatibility

• 

The caption option was updated in Maple 15.

See Also

backslash

name

plot/interface

plot/options

plots[textplot]

uneval

 


Download Help Document

Was this information helpful?



Please add your Comment (Optional)
E-mail Address (Optional)
What is ? This question helps us to combat spam