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

    Not sure if this is the most elegant solution (this is what I used), but you could scale your data to the range between 0 to 1 and then modify the colorbar: import matplotlib as mpl ... ax, _ = …

  2. python - Remove colorbar from figure - Stack Overflow

    Basically, I have a subplot in matplotlib that I'm drawing a hexbin plot in every time a function is called, but every time I call the function I get a new colorbar, so what I'd really like to do is …

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

    Using fig.colorbar instead of matplotlib.colorbar.ColorbarBase still doesn't give me quite what I want, and I still don't know how to adjust the attributes of the colorbar. fig.colorbar(s, ax=ax, …

  4. 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.

  5. python - 3D Scatter Plot with Colorbar - Stack Overflow

    Borrowing from the example on the Matplotlib documentation page and slightly modifying the code, import numpy as np from mpl_toolkits.mplot3d import Axes3D import matplotlib.pyplot …

  6. python - Standalone colorbar - Stack Overflow

    I'm rendering some graphics in python with matplotlib, and will include them into a LaTeX paper (using LaTex's nice tabular alignment instead of fiddling with matplotlib's ImageGrid, etc.). I …

  7. python - Scientific notation colorbar - Stack Overflow

    I am trying to put a colorbar to my image using matplotlib. The issue comes when I try to force the ticklabels to be written in scientific notation. How can I force the scientific notation (ie, 1x1...

  8. How to have one colorbar for all subplots - Stack Overflow

    Just place the colorbar in its own axis and use subplots_adjust to make room for it. As a quick example: import numpy as np import matplotlib.pyplot as plt fig, axes = plt.subplots(nrows=2, …

  9. 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?

  10. 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...