O'zingizning rang xaritangizni yaratish uchun matplotlib `LinearSegmentedColormap`dan foydalanishingiz mumkin. Quyida kodda men sizga uni qanday ishlatishni va ranglarni bir nechta turli formatlarda qanday kiritish kerakligini ko'rsataman. ``py import numpy as np import matplotlib.pyplot as plt from matplotlib.colors import ListedColormap, LinearSegmentedColormap import matplotlib.colors as mcolors # Men sizga ranglarni kiritishning bir nechta usullarini ko'rsataman ko'k = (0, 0, 1, 1) # siz rgba tuple oq = mcolors.to_hex '(white') # nom yoki g'altak satrdan foydalanishingiz mumkin, bu erda biz nomdan g'altak satrga aylantiramiz cmap = SegmentedColor
spam fails_task lang_mismatch pii not_appropriate hate_speech sexual_content quality toxicity humor helpfulness creativity violence