Plot2Kill 0.02

JimBob jim at bob.com
Mon Jul 19 03:37:59 PDT 2010


"dsimcha" <dsimcha at yahoo.com> wrote in message 
news:i2004b$2vvo$1 at digitalmars.com...
> == Quote from BLS (windevguy at hotmail.de)'s article
>> On 19/07/2010 00:01, BLS wrote:
>> > On 18/07/2010 22:36, dsimcha wrote:
>> >> heat maps
>> >
>> > Sorry for my ignorance,
>> > What are heat maps good for ?
>> >
>> > Since I am more biz software guy, here my question.
>> >
>> > Let's say I have this relation
>> >  >A Project can have several Cost Centers.
>> >  >A Cost Center can have several cost items.
>> >
>> > I our sample . Project -P- has say, 10 cost centers.
>> > Cost Center no 1 takes already 60 percent.
>> > The other cost centers (2-10) just take between 10 (blue) and 20 
>> > (green)
>> > percent.
>> >
>> > -- So I want to color cost center no 1 related items in red.. . and the
>> > max percentage item in cost center no 2 dark red.
>> > CC No 1 = {5,20,20,15}
>> >
>> > Is this what a heat map is made for ?
>> >
>> > and sorry , best example I am able to give atm..
>> > bjoern
>> My guess was okay, Heat maps are also made for this use case. so no need
>> to answer.
>> Since Tree maps are not that different from Heat maps, do you have any
>> plans to implement them too ?
>
> I didn't have any plans to implement them, as I didn't know about them 
> until I
> looked them up on Wikipedia just now.  I'll consider implementing them, 
> but I'm
> not sure if it will happen soon.
>
>> Next, Do you have any ideas about zooming ? (zooming a plotting region) ?
>
> This can already be done programmatically (see Figure.xlim() and 
> Figure.ylim()),
> but is not exposed yet via the default plot window GUI.  This will be 
> exposed when
> I decide how I want to expose it.  The most obvious answer is dragging, 
> but the
> question then becomes, how do you zoom back out?

What I do in one of my projects is : Press an hold the right mouse button to 
select the point which stays fixed, then dragging up zooms in, dragging down 
zooms out. If you set the zoom to work on an exponential scale it feels 
better also. Ie, scale by pow(2, (mousey-starty)/20), or something like.






More information about the Digitalmars-d-announce mailing list