Questions tagged [palette]

A helper class of Android to extract prominent colors from an image.

A helper class to extract prominent colors from an image.


Palette is an Android feature to support the developer to create a MaterialDesign feeling by generating a colorset of appropriate looking colors based on a bitmap source (app-icon e.g.).

Reference

359 questions
9
votes
1 answer

Seaborn chart colors are different than those specified by palette

Why are seaborn chart colors different from the colors specified by the palette? The following two charts show the difference between the colors as they appear on a bar chart, and the colors as they appear in the palette plot. You can see if yo…
BirdLaw
  • 572
  • 6
  • 16
8
votes
2 answers

How can I use different color palettes for different layers in ggplot2?

Is it possible to plot two sets of data on the same plot, but use different color palettes for each set? testdf <- data.frame( x = rnorm(100), y1 = rnorm(100, mean = 0, sd = 1), y2 = rnorm(100, mean = 10, sd =…
drbv
  • 369
  • 3
  • 9
8
votes
3 answers

Set transparency/saturation of palette in ggplot

Let's start with the viridis palette. In my opinion, colours are a bit just too bright for me, and for my purposes they look too artificial. therefore, I would like to apply some sort of transparency or similar to reduce…
fede_luppi
  • 1,063
  • 4
  • 17
  • 29
8
votes
2 answers

Android Palette: Why not working with this particular image?

I am currently working with the Palette API from support library (https://developer.android.com/tools/support-library/features.html#v7-palette) The code below works fine with hundreds of pictures, no problem at all. I set the text and background…
Waza_Be
  • 39,407
  • 49
  • 186
  • 260
7
votes
1 answer

Avoid Seaborn barplot desaturation of colors

I am trying to make plots in Python using several different libraries (bokeh, seaborn and matlotlib), but keeping the same color scheme. I have chosen categorical pallete from bokeh with: from bokeh.palettes import Category10 as palette and then…
Antonio
  • 325
  • 1
  • 3
  • 9
7
votes
2 answers

How to use palettes in SDL 2

I'm updating a program from SDL 1 to SDL 2 and need to use color palettes. Originally, I used SDL_SetColors(screen, color, 0, intColors); but that does't work in SDL 2. I'm trying to use: SDL_Palette *palette = (SDL_Palette…
TheCodeMan54
  • 143
  • 2
  • 5
7
votes
2 answers

GNUPLOT: How to set reverse HOT color palette

Here is the example in http://gnuplot.sourceforge.net/demo/pm3dcolors.html set palette rgb 21,22,23; set title "hot (black-red-yellow-white)"; The above code set the hot palette. However I want a reversed hot palette,…
Changwang Zhang
  • 2,467
  • 7
  • 38
  • 64
7
votes
5 answers

How can I interrogate the Delphi component palette?

I have lots of components installed - trouble is when I want to find one I rarely use it takes ages to find it. I can look at the ALL choice which lists all components but finding one with say 'grid' in the title is still very time consuming. Is…
Alan Bailey
6
votes
1 answer

Why does Pillow convert return colours outside the specified palette?

Using Pillow 5.4.1, Python 3.6.8 Given an image image.png with 9 distinct colours, and given a data palette with 5 distinct colours, one would expect that asking pillow to reduce the image to the described palette that the resulting image would…
glasnt
  • 2,865
  • 5
  • 35
  • 55
6
votes
2 answers

Tableau - Use different palette according to name

What I am looking for is to assign a color palette to a subcategory. I haven't find any information online for my problem. I'll explain using dummy values: Imagine I have school data, with teachers, students and janitors names. On the database,…
Daniel
  • 73
  • 4
6
votes
1 answer

How should I extend a color palette?

I am writing a script that is to combine multiple histograms into a stack plot. The script is to be able to handle a fairly arbitrary number of histograms. I want to be able to color the histograms in the stack plot according to a defined color…
d3pd
  • 7,935
  • 24
  • 76
  • 127
6
votes
3 answers

Prevent RecyclerView showing previous content when scrolling

I have a RecyclerView with a GridLinearLayout and a custom adapter. The content of each item is a picture downloaded using a json and parsing it. Basically is a grid of pictures. Everything works almost fine, but however, when scrolling down the…
Jahir Fiquitiva
  • 1,459
  • 3
  • 23
  • 47
6
votes
2 answers

ImageMagick preserve custom palette when joining 2 PNGs

I need to join 2 PNG images, with 16 color palette, keep colors number and order as originals. Both PNGs use the same 16 color palette. There is a way to create 4 bit indexed PNG with all colors, in exact order, even unused in each PNG? Edit to be…
6
votes
1 answer

Qt StyleSheet system is invalidating QPalette; how to make them work together?

I have in one of my projects a QwtPlot where I want to configure its colors in an harmonious way - that is, e.g., if the background color is white, the axis should be black, etc.. Now I could do this in a "hardcoded way": each time the background…
Momergil
  • 2,213
  • 5
  • 29
  • 59
5
votes
1 answer

How to customize a color palette in r for ggplot?

I'm using this code to plot a map of temperature change in North America: ggplot(maps, aes(y=Latitude, x=Longitude, z=variable)) + ggtitle(title)+ scale_fill_brewer(palette = "Spectral")+ geom_contour_filled(breaks = c(-Inf,-2., -1.5, -1.,…
Lambert Ye
  • 177
  • 2
  • 6
1
2
3
23 24