A method and system for generating palette based on data distribution
A data distribution and color palette technology, applied in the field of data visualization, can solve the problems of taking into account the contrast, limited geographic data, and the incompatibility of the optimization results, so as to improve the efficiency and improve the effect.
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment 1
[0045] This embodiment provides a palette generation method based on data distribution, such as figure 1 As shown, it specifically includes the following steps:
[0046] Step 1: Load classification data and color data, the color data contains discretized LAB color space.
[0047] The classified data are scatter plots, line charts, histograms and the like.
[0048] When loading the color data, some colors that most users don’t like will be removed, such as colors with brightness less than 35 or brightness greater than 95, colors with brightness between 35 and 75 and hue between 85 and 114, most of these colors are yellow-green.
[0049] Step 2: Project the classified data into the visible space (screen space), and obtain the location data of the classified data.
[0050] When the classification data is a scatter diagram, obtaining the position of each point in various types of scatter;
[0051] When the classification data is a histogram, obtain the position of the geometri...
Embodiment 2
[0113] The purpose of this embodiment is to provide a palette generation system based on data distribution.
[0114] In order to achieve the above purpose, this embodiment provides a palette generation system based on data distribution, including:
[0115] The data loading module receives classification data and color data, and the color data includes a discretized color space;
[0116] A data distribution determination module, projecting the classified data into a visible space, and obtaining the location information of the classified data;
[0117] A degree of separation measurement module, based on the position information to measure the degree of separation between classes;
[0118] The palette optimization module randomly selects multiple colors from the discretized color space as the initial solution, combines the separation between classes, finds an approximate optimal solution based on the simulated annealing algorithm, and generates a palette;
[0119] The data rend...
Embodiment 3
[0121] The purpose of this embodiment is to provide an electronic device.
[0122] In order to achieve the above object, this embodiment provides an electronic device, including a memory, a processor, and a computer program stored on the memory and operable on the processor. When the processor executes the program, the following steps are implemented, including :
[0123] receiving categorical data and color data, the color data comprising a discretized color space;
[0124] projecting the classified data into a visual space, and obtaining position information of the classified data;
[0125] Measuring the degree of separation between classes based on the location information;
[0126]Randomly select multiple colors from the discretized color space as the initial solution, combine the separation between classes, find an approximate optimal solution based on the simulated annealing algorithm, and generate a color palette;
[0127] Renders categorical data based on the palett...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 


