Legend Placement

Beta releases, announcements and anything else that doesn't fit below. Please read the <B>Welcome</B> topic.

Moderator: DPlotAdmin

Post Reply
kstultz
Posts: 4
Joined: Fri Oct 05, 2007 9:13 am

Legend Placement

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

Post 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.
Visualize Your Data
support@dplot.com
kstultz
Posts: 4
Joined: Fri Oct 05, 2007 9:13 am

Post by kstultz »

Thanks very much.

Kenny
highlycaffeinated
Posts: 6
Joined: Fri Dec 12, 2008 9:43 pm

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

Post 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.
Visualize Your Data
support@dplot.com
highlycaffeinated
Posts: 6
Joined: Fri Dec 12, 2008 9:43 pm

Post by highlycaffeinated »

That did the trick. Thanks!
jsc
Posts: 222
Joined: Fri Dec 02, 2005 8:56 am

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

Post by DPlotAdmin »

I don't recall that ever working. Just an oversight, will get it done in the next release.
Visualize Your Data
support@dplot.com
jsc
Posts: 222
Joined: Fri Dec 02, 2005 8:56 am

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

Post by DPlotAdmin »

Sure, that's a good one. "Good" in this case meaning "easy".
Visualize Your Data
support@dplot.com
Post Reply