Friday, December 30, 2011

Editing axis and legend labels in Maxima/Gnuplot

The commands for editing the labels for the x and y axes in Maxima are:

[xlabel,"expr"]

and

[ylabel,"expr"]

where expr is the argument holder where you place your text for whatever label you are wanting.  The quotes " " are necessary.

The command for the legend label is:

[legend,"expr1","expr2"]

where expr1, expr2, etc. are the argument holders where you place your text for whatever labels you are wanting depending on the number of legend labels.

These commands go inside your overall plot command.  For example,

plot2d(func, x, [xlabel,"expr"], [ylabel,"expr"], [legend,"expr1","expr2"])

Found these commands here: http://maxima.sourceforge.net/docs/manual/en/maxima_12.html#SEC65

No comments:

Post a Comment