[rkward-devel] some separate queries related to the plot history feature

Prasenjit Kapat kapatp at gmail.com
Sat Sep 11 13:35:45 UTC 2010


HI,

On Sat, Sep 11, 2010 at 1:03 PM, Thomas Friedrichsmeier
<thomas.friedrichsmeier at ruhr-uni-bochum.de> wrote:
> Hi,
>
> On Friday 10 September 2010, Prasenjit Kapat wrote:
>
>> 2. Are the message boxes of fixed height but variable width? Some of
>> the multiline text gets eaten up after 5/6 lines. But I guess, one
>> should not narrate stories via message boxes ;)
>
> I've run into problems with KMessageBox layout, before. Apparently a problem
> in kdelibs.
>
> I have not stumbled across the affected message boxes in the plot history, yet.
> What do I need to do to see them?

None of the static messages will show such an error. But say if you call:
xyplot (0~0,
  panel = function (...) {
          panel.xyplot (...)
          panel.abline (h=0,v=0)
  })

Then, the showInfo box will be a few line shosrt

>> 3. We will need to wrap dev.set and dev.copy.. Otherwise, an
>> independent user call of
>>       dev.copy (device = x11, ...)
>>       will not amount to the "duplicate" device behavior... But before
>> doing so, we'll have to be careful to avoid recursion.
>
> Won't the "regular" approach work? I.e. replace with a wrapper, which calls
> the "real" dev.copy()/dev.set(). Since the "real" dev.set() will not call the
> wrapper, no recursion.

You mean the assignInNamespace?

>> 4. Is it possible to assign "icons" to the message boxes? (This is not
>> at all important though)
>
> In theory, yes, but I'd like to keep this somewhat lean. What do you have in
> mind? Separate icons for warnings, errors, information screens? That should be
> doable, but I don't think I'll get around to do it for this release.

Yeah, that is exactly what I had in mind. No problem.. .

>> 5. Where should the rkh files go for this?
>
> I suggest you create one or two rkh files detailing the graphics device, plot
> history, and associated settings. Place this in rkward/pages. You may want to
> start linking it to the few existing pages in that directory, where
> appropriate. I'll look into adding a direct link to this page(s) in the Help-
> menu of the graphics window, later.

OK,

-- 
Prasenjit




More information about the Rkward-devel mailing list