Page 1 of 1

Reference line displaying legend entry

Posted: Tue Jul 26, 2005 1:46 pm
by arthur_etchells
Don't know whether this is a bug or feature, but I suspect it's the former. The DPlot Help file says this for the command [RefLine(options, style, color, width, value|,"label"|)]:
....The optional label will be added to the plot legend if used. In my experience, Dplot makes a legend entry for each reference lines (the label seems to be whatever the first legend entry is). The only way to get around this is to give label the value of "".
Just thought I'd bring this to your attention.

Posted: Tue Jul 26, 2005 4:20 pm
by DPlotAdmin
Arthur,
Thanks. Looking at the code I can see how if you are sending multiple command strings at once, AND you have some command that occurs after a RefLine command and ends in the sequence ")], that DPlot will incorrectly grab the label from that (possibly) unrelated command. But I don't see how it can incorrectly use a previous label. It would be helpful to me if you'd send me a copy of the exact sequence of commands you're using in a single call, whether that call is to DPlot_Plot or DPlot_Command or whatever.