About 50 results
Open links in new tab
  1. python - Set Colorbar Range - Stack Overflow

    0 Range of colorbar can be set by using instance of colorbar i.e. colorbar.ax.set_ylim (low, high) when using figure environment:

  2. matplotlib: colorbars and its text labels - Stack Overflow

    Learn how to manage colorbars and their text labels in matplotlib for effective data visualization and customization.

  3. python - matplotlib colorbar placement and size - Stack Overflow

    Nov 14, 2014 · matplotlib colorbar placement and size Asked 12 years, 8 months ago Modified 11 years, 2 months ago Viewed 53k times

  4. Creating a custom colorbar in matplotlib - Stack Overflow

    Apr 24, 2024 · How can I create a colorbar in matplotlib that looks like this: Here is what I tried: import matplotlib.pyplot as plt from matplotlib.colors import LinearSegmentedColormap from matplotlib.cm …

  5. python - How to add colorbar in matplotlib - Stack Overflow

    Aug 27, 2022 · How to add colorbar in matplotlib Asked 3 years, 5 months ago Modified 3 years, 5 months ago Viewed 16k times

  6. python - Matplotlib discrete colorbar - Stack Overflow

    I am trying to make a discrete colorbar for a scatterplot in matplotlib I have my x, y data and for each point an integer tag value which I want to be represented with a unique colour, e.g. plt.s...

  7. python - Add colorbar to existing axis - Stack Overflow

    I'm having difficulties doing this, as most of the example code I have found creates a new axes for the colorbar. I have tried the following code using matplotlib.colorbar.ColorbarBase, which adds a …

  8. add colorbar to a sequence of line plots - Stack Overflow

    I have a sequence of line plots for two variables (x,y) for a number of different values of a variable z. I would normally add the line plots with legends like this: import matplotlib.pyplot as pl...

  9. python - Positioning the colorbar - Stack Overflow

    I have a matplotlib plot with a colorbar attached. I want to position the colorbar so that it is horizontal, and underneath my plot. I have almost done this via the following: plt.colorbar(orient...

  10. Set Matplotlib colorbar size to match graph - Stack Overflow

    I cannot get the colorbar on imshow graphs like this one to be the same height as the graph, short of using Photoshop after the fact. How do I get the heights to match?