Tue 05 Feb 2013 01:57:49 PM UTC, original submission:
Matlab allows the text for the legend's entries to be modified by changing the color property of the legend's text objects.
Since there isn't a reliable way for Octave to know the extents of the text objects for the gnuplot toolkit, the Gnuplot "key" feature is used to render the legend. Gnuplot does not allow the text color of the entries to be specified arbitrarily. However, the current situation where the text is always black may be improved upon.
The color of all text objects may be modified using the Gnuplot syntax below.
This form is already supported by changing the "textcolor" property of the legend hggroup object.
Gnuplot also supports matching the color of the text labels to the graphic objects,
This feature may be included in Octave using a patch like below.
The "set key textcolor variable" syntax may not be consistent across all versions of Gnuplot. This needs to be checked before committing. If necessary the _gnuplot_has_feature_.m function may need to be modified as well.
|