Linked Questions

Popular Questions

import numpy as np
import matplotlib.pyplot as plt
import matplotlib.cm as cm

# Given data
x_values = np.array([1, 2, 3, 4, 5, 6])
y_values = np.array([4, 6, 3, 5, 7, 6])
information = np.array([
    [0.3, 0.5, 0.1, 0.1, 0.2, 0.1],
    [0.1, 0.2, 0.1, 0.1, 0.1, 0.5],
    [0.5, 0.1, 0.1, 0.1, 0.5, 0.1],
    [0.1, 0.1, 0.2, 0.5, 0.1, 0.1],
    [0.0, 0.1, 0.5, 0.2, 0.1, 0.2]])

I have x and y values and some information to show using color on a scatter plot. Each of the column from the information array represents 5 parameters for each (x,y) point. I want to show the participation of those parameters using a spectrum of color. How can I do it?

Related Questions