octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #30461] legend should work for lines with diff


From: David Bateman
Subject: [Octave-bug-tracker] [bug #30461] legend should work for lines with different parents
Date: Sun, 19 Sep 2010 19:38:06 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9.0.14) Gecko/2009091010 Iceweasel/3.0.14 (Debian-3.0.14-1)

Follow-up Comment #11, bug #30461 (project octave):

Ben,

The legend code I wrote uses position internally for all its calculations as
typically the legend is placed just inside the axis. I suppose it could use
outerposition if the legend is outside the axis, though using outerposition if
the legend is inside the axis would only work if the function graphics.cc void
axes::properties::sync_positions (void)) synced position and outerpositions
correctly. The code to do this is currently deactivated as the text extents of
the labels, etc weren't taken into account.

The fact is the text extents with gnuplot can probably never be taken into
account as we can't get gnuplot to tell us the text extents, and in any case
they'll be different for each terminal type which will play havoc with objects
that are placed on a screen terminal and then printed to a different terminal.
So as far as I can see gnuplot can never have the position and outerposition
code synced.

That being said, as we have to use the gnuplot legend code, again because
gnuplot doesn't give the text extents, the original reason to get rid of your
outerposition code has gone away, so I see no reason not to recommit it.

I'm not sure I'll have time for a couple of days to look at demos 10 and 11,
so feel free to find the solution before then ;-) .. If not I'll look at it
later.

Cheers
David



    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?30461>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]