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: Wed, 03 Nov 2010 08:15:50 +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 #21, bug #30461 (project octave):

It should work fine for the FLTK backend, but I'm surprised it works for Ben
for the gnuplot backend. I've been meaning to get back to this to fix it
properly for the gnuplot backend. 

What has currently been done, is that the legend is now a separate axis in
the frontend, and the FLTK code treats it as such. However as there is no way
to get the gnuplot backend to tell us the text extents of the labels, the
gnuplot backend replaces this separate axis with a legend on one of the two
plotyy axes and so one of the legend keys can't be drawn.

What I'm thinking about doing for the gnuplot backend is to create a third
axis with invisible axis, ticks, etc. Plot all of the lines used in the legend
in this third axis, Set the axis limits such they are off screen and then get
the axis to plot the legend. In this manner it should be possible to get the
gnuplot backend to plot legends with axes with different parents

D.


    _______________________________________________________

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]