Reference line displaying legend entry

Found a bug? Tell us about it here

Moderator: DPlotAdmin

Post Reply
arthur_etchells
Posts: 30
Joined: Fri Jul 15, 2005 9:18 am

Reference line displaying legend entry

Post 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.
User avatar
DPlotAdmin
Posts: 2312
Joined: Tue Jun 24, 2003 9:34 pm
Location: Vicksburg, Mississippi
Contact:

Post 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.
Visualize Your Data
support@dplot.com
Post Reply