|
From: | Ben Abbott |
Subject: | [Octave-bug-tracker] [bug #30461] legend should work for lines with different parents |
Date: | Fri, 03 Sep 2010 12:00:07 +0000 |
User-agent: | Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_4; en-US) AppleWebKit/533.4 (KHTML, like Gecko) Chrome/5.0.375.127 Safari/533.4 |
Follow-up Comment #3, bug #30461 (project octave): I'm not sure exactly what Matlab is doing. But there are some hints in the axes properties and appdata. >> plot (1:10) >> legend ('hello world') >> getappdata (hax(1)) ans = LegendTempText: 177.01 MWBYPASS_title: {[1x1 function_handle]} MWBYPASS_xlabel: {[1x1 function_handle]} MWBYPASS_ylabel: {[1x1 function_handle]} MWBYPASS_zlabel: {[1x1 function_handle]} NonDataObject: [] PostDeserializeFcn: @legendpostdeserialize LegendOldSize: [66 16.8] >> getappdata (hax(2)) ans = PlotColorIndex: 2 PlotLineStyleIndex: 1 LegendColorbarText: [219.01 220.01] LegendColorbarInnerList: [1x1 scribe.legend] LegendColorbarOuterList: [] inLayout: [] LegendComputePosCache: [0.13 0.11 0.775 0.815] LegendPeerHandle: 176.01 >> setdiff(fieldnames(get(hax(1))),fieldnames(get(hax(2))) ans = 'EdgeColor' 'Interpreter' 'Location' 'Orientation' 'String' 'TextColor' I can do some experiments if you have some suggestions. _______________________________________________________ Reply to this item at: <http://savannah.gnu.org/bugs/?30461> _______________________________________________ Message sent via/by Savannah http://savannah.gnu.org/
[Prev in Thread] | Current Thread | [Next in Thread] |