pcp
[Top] [All Lists]

[Bug 893] Graph limits do not change after removing instances

To: pcp@xxxxxxxxxxx
Subject: [Bug 893] Graph limits do not change after removing instances
From: bugzilla-daemon@xxxxxxxxxxx
Date: Mon, 27 Sep 2010 07:39:25 -0500
Auto-submitted: auto-generated
In-reply-to: <bug-893-835@xxxxxxxxxxxxxxxx/bugzilla/>
References: <bug-893-835@xxxxxxxxxxxxxxxx/bugzilla/>
http://oss.sgi.com/bugzilla/show_bug.cgi?id=893





--- Comment #3 from Max Matveev <makc@xxxxxxxxxxx>  2010-09-27 07:39:23 CST ---
After some experiments with pmchart I can say that I know the reason 
for this behaviour of stacked bar charts: each "band" in the stack is 
implemented as solid area from 0 to sum(plot(1.N)) where N is the 
index in the  plot array. When an instance is removed from the display
the plot is marked as invisible but the values which are used to display
other visible plots are not recalculated so the plot which is immediately
behind the removed one takes more space on screen.

I've got a patch which deals with recalculating following the removal and
I don't like it - firstly it is too intrusive, secondly, it is very easy to
overlook a place which needs to be adjusted following a removal of a plot.
Both problems most likely come from the fact that each plot has two 
flags: hidden and removed which are mostly the same but I'm not sure 
why there are two of them: I don't see any reason why removed 
cannot be treated the same as hidden.

Ken, you wrote that code - can you remember why did you needed two flags?

-- 
Configure bugmail: http://oss.sgi.com/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.

<Prev in Thread] Current Thread [Next in Thread>