Switch to Bing in English
লিঙ্কগুলি নতুন ট্যাবে খুলুন
  1. List of named colors — Matplotlib 3.10.8 documentation

  1. In Python, you can work with colors using various libraries like Matplotlib, termcolor, and more. Colors can be represented in different formats such as RGB, HEX, and named colors.

    Example: Using Matplotlib for Colors

    Matplotlib provides a wide range of color options. Here's how you can use it to plot a list of named colors:

    import matplotlib.pyplot as plt
    import matplotlib.colors as mcolors
    from matplotlib.patches import Rectangle

    def plot_colortable(colors, ncols=4):
    cell_width = 212
    cell_height = 22
    swatch_width = 48
    margin = 12
    names = sorted(colors, key=lambda c: tuple(mcolors.rgb_to_hsv(mcolors.to_rgb(c))))
    n = len(names)
    nrows = (n + ncols - 1) // ncols
    width = cell_width * ncols + 2 * margin
    height = cell_height * nrows + 2 * margin
    dpi = 72
    fig, ax = plt.subplots(figsize=(width / dpi, height / dpi), dpi=dpi)
    fig.subplots_adjust(margin/width, margin/height, (width-margin)/width, (height-margin)/height)
    ax.set_xlim(0, cell_width * ncols)
    ax.set_ylim(cell_height * (nrows-0.5), -cell_height/2.)
    ax.yaxis.set_visible(False)
    ax.xaxis.set_visible(False)
    ax.set_axis_off()

    for i, name in enumerate(names):
    row = i % nrows
    col = i // nrows
    y = row * cell_height
    swatch_start_x = cell_width * col
    text_pos_x = cell_width * col + swatch_width + 7
    ax.text(text_pos_x, y, name, fontsize=14,
    horizontalalignment='left', verticalalignment='center')
    ax.add_patch(Rectangle(xy=(swatch_start_x, y-9), width=swatch_width,
    height=18, facecolor=colors[name], edgecolor='0.7'))

    return fig

    plot_colortable(mcolors.CSS4_COLORS)
    plt.show()
    অনুলিপি করা হয়েছে!
    মতামত
  2. Choosing color palettes — seaborn 0.13.2 documentation

    Seaborn makes it easy to use colors that are well-suited to the characteristics of your data and your visualization goals. This chapter discusses both the general principles that should guide your choices …

  3. Seaborn Color Palettes — Practical Python for Data …

    Below is a complete list of all palette options. Most palettes can have the suffix "_r" to indicate the same palette but reversed order. A few palettes can have "_d" …

  4. Blog - PyPalettes: all the colors you'll ever need

    1 এপ্রিল, 2025 · PyPalettes is a new Python library designed to simplify the use of color palettes in Python charts. It provides mainly two things: a super-easy-to-use library that requires only 1 line of …

  5. Python Color Palette Finder

    Python Color Palette Finder Finding the perfect colors for your Python chart can be daunting. Picking colors manually often leads to a maze of unsuitable options. …

  6. এছাড়াও লোকেরা জানতে চায়
  7. GitHub - y-sunflower/pypalettes: A dependency-free …

    PyPalettes A dependency-free large (+2500) collection of colormaps and palettes for Python. All available palettes can be found in the Color Palette Finder. To …

    নিরুদ্দিষ্ট:
    • Code
    এগুলি অবশ্যই অন্তর্ভুক্ত করতে হবে:
  8. Python Color Palette: A Comprehensive Guide - CodeRivers

    3 এপ্রিল, 2025 · Python offers a rich set of libraries and tools to work with color palettes, allowing developers and designers to create visually appealing and meaningful representations. This blog will …

  9. Choosing Colormaps in Matplotlib — Matplotlib 3.10.8 ...

    One way to represent color is using CIELAB. In CIELAB, color space is represented by lightness, L ∗; red-green, a ∗; and yellow-blue, b ∗. The lightness parameter L ∗ …

  10. 004_Seaborn_Color_Palettes.ipynb - Colab

    This function provides an interface to many (though not all) of the possible ways you can generate colors in seaborn, and it’s used internally by any function that …

  11. PyPalettes: all the colors you’ll ever need - Medium

    12 জুলাই, 2024 · To address this, I developed pypalettes, a Python library with over 2,500 high-quality, pre-made color palettes. The library includes a web app for …

    নিরুদ্দিষ্ট:
    • Code
    এগুলি অবশ্যই অন্তর্ভুক্ত করতে হবে:
এই সাইটটি ব্যবহার করে আপনি অ্যানালিটিক্স, ব্যক্তিগতকৃত সামগ্রী এবং বিজ্ঞাপনগুলির জন্য কুকিজের ব্যবহার সম্পর্কে সম্মত হন।তৃতীয় পক্ষের কুকিজ সম্পর্কে আরও জানুন|Microsoft গোপনীয়তার নীতি