Bug 7780 - palette bug
Summary: palette bug
Status: NEW
Alias: None
Product: R
Classification: Unclassified
Component: Graphics (show other bugs)
Version: old
Hardware: All Other
: P5 normal
Assignee: Jitterbug compatibility account
Depends on:
Reported: 2005-04-08 02:33 UTC by Jitterbug compatibility account
Modified: 2005-04-08 02:33 UTC (History)
0 users

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Jitterbug compatibility account 2005-04-08 02:33:03 UTC
From: paul@stat.auckland.ac.nz
Full_Name: Paul Murrell
Version: 1.9.* and up at least
OS: doesn't matter
Submission from: (NULL) (
Submitted by: paul

As reported by Earl Glynn, if you do the following ...

n <- 5
par(mfrow = c(2,2))
barplot(1:25,col = 1:25)
barplot(1:25,col = 1:25)
palette(rgb((0:15)/15, g=0,b=0, names=paste("red",0:15,sep=".")))
barplot(1:25,col = 1:25)

... then refresh the graphics window (e.g. resize it) all three plots end up
using the *last* palette (not three different palettes as originally drawn).

This is happening because the setting of the R graphics palette is not being
recorded on the R graphics display list.

Even worse, the R graphics palette is global to the R session, not per-device,
so simply recording the setting of the palette on the (per-device) display list
would only create a more subtle undesirable effect.

A possible solution is to make a per-device palette (and record the setting of
the palette on the display list).


Comment 1 Jitterbug compatibility account 2005-04-08 04:32:43 UTC
Audit (from Jitterbug):
Thu Apr  7 23:32:43 2005	paul	moved from incoming to Graphics