|
From: | Ben Abbott |
Subject: | [Octave-bug-tracker] [bug #39321] legend listener interferes with print() |
Date: | Sat, 22 Jun 2013 06:38:26 +0000 |
User-agent: | Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/27.0.1453.116 Safari/537.36 |
URL: <http://savannah.gnu.org/bugs/?39321> Summary: legend listener interferes with print() Project: GNU Octave Submitted by: bpabbott Submitted on: Sat 22 Jun 2013 02:38:24 AM EDT Category: Plotting Severity: 3 - Normal Priority: 5 - Normal Item Group: Incorrect Result Status: None Assigned to: bpabbott Originator Name: Ben Abbott Originator Email: Open/Closed: Open Discussion Lock: Any Release: dev Operating System: Any _______________________________________________________ Details: The print() command temporarily modifies all fontsizes. When a legend's "fontsize" property is modified a new legend is constructed using the requested fontsize. As a result the old objects are deleted. When print() attempts to restore the old fontsizes an error results. plot (rand (3)) print test.png legend blue green red print test-legend.png error: set: invalid handle (= -16.7054) A proper fix is to recycle the old objects, or filter out the text strings for legends objects and allow the fontsize property for the legend to do all the work. _______________________________________________________ Reply to this item at: <http://savannah.gnu.org/bugs/?39321> _______________________________________________ Message sent via/by Savannah http://savannah.gnu.org/
[Prev in Thread] | Current Thread | [Next in Thread] |