Page 1 of 1
Legend Placement
Posted: Fri Oct 05, 2007 9:18 am
by kstultz
Is there a way to increase the space above the graph so that I can place the legend above the graph instead of inside the graph. I would be omitting the main title string.
Thanks, Kenny
Posted: Fri Oct 05, 2007 3:58 pm
by DPlotAdmin
Using a trick, yes. Enter one or more \n's for any of the title lines (or add \n's after any existing title lines). For example "\n\n\n" for the first title line will add whitespace above the graph equal to 3 times the line height of the font used for the title.
Posted: Fri Oct 05, 2007 4:53 pm
by kstultz
Thanks very much.
Kenny
Posted: Thu Jan 08, 2009 2:50 pm
by highlycaffeinated
Is there a similar trick for moving the legend to the left of the plot, into the Y axis label area? I've tried setting the x offset to a negative value but then the legend gets clipped rather than the plot resized to fit the legend.
Thanks
David
Posted: Thu Jan 08, 2009 3:24 pm
by DPlotAdmin
If your legend is clipped on the left side then yes: you can add \n's before the Y axis title to add space to the left side of the plot.
Posted: Thu Jan 08, 2009 3:48 pm
by highlycaffeinated
That did the trick. Thanks!
Posted: Tue Jan 20, 2009 11:05 am
by jsc
David,
Hope this is as good a spot to ask this question as any.
Legend text seems to accept \n to break up long legend entries, but the legend itself does not adjust to accommodate the change. The second line overwrites the next legend entry. If it's the last item in the list, \n caused the second line to overwrite the first line of that entry.
I thought this worked once. Is 2.2.2.5 acting correctly?
Thanks,
Jon
Posted: Tue Jan 20, 2009 11:30 am
by DPlotAdmin
I don't recall that ever working. Just an oversight, will get it done in the next release.
Posted: Tue Jan 20, 2009 11:44 am
by jsc
Thanks!
Any chance that while you're working on that, that you could consider having a check box to easily turn the legend text and line display for a particular curve on and off? (Was a suggestion of mine last November.)
Yes, I know, I'm pushing it!
Posted: Tue Jan 20, 2009 12:23 pm
by DPlotAdmin
Sure, that's a good one. "Good" in this case meaning "easy".