Not ideal, but I do this:
using Gadfly, RDatasets
theme = Theme(
minor_label_color=color("#aaaaaa"),
major_label_color=color("#dcdccc"),
point_label_color=color("#dcdccc"),
key_title_color=color("#ffffcc"),
key_label_color=color("#dcdccc"))
plot(dataset("car", "SLID"), x="Wages", color="Language", Geom.histogram,
theme)
On Monday, July 7, 2014 8:44:24 PM UTC+3, Marcus Kriele wrote:
>
> Is there any possibility to define a theme that specifies the color of
> labels of legends or any other text? For instance, in the example
> plot(dataset("car", "SLID"), x="Wages", color="Language", Geom.histogram )
> I would like to change the color of the text "Language" to white. So far
> I have only been successful in changing colors of axis labels.
>
> This would be helpful for users of the Lighttable plugin "Jewel" who use
> the accompanying "june-night" syntax-highlighting colors . Jewel can
> display Gadfly plots inline. The background of these plots is naturally
> dark and any black labels are difficult to see. (There are no problems
> when using the alternative light "june" syntax-highlighting colors)
> I think that the nicest solution to this general problem would be to have
> a "dark" Gadfly default theme which would be used by Jewel when displaying
> Gadfly plots in-line, provided june-night is used. Perhaps Gadfly could
> automatically invert the luminosity of each color for this dark theme?
> The function draw() should probably still use the normal light Gadfly
> theme. Having said this, I do not really know whether such a mechanism
> could be implemented on the Jewel side.
>