Skip to content

Magenaut

  • Home
  • Topics
    • Notes
    • Tutorial
    • Bug fixing
    • Extension
    • Server
  • Q&A
  • Privacy Policy
  • About

matplotlib

Matplotlib (pyplot) savefig outputs blank image

August 20, 2022 by Magenaut

I am trying to save plots I make using matplotlib; however, the images are saving blank.

Categories Python, Q&A Tags figure, image, matplotlib, python Leave a comment

Set Matplotlib colorbar size to match graph

August 20, 2022 by Magenaut

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?Set Matplotlib colorbar size to match graph

Categories Python, Q&A Tags image, matplotlib, python Leave a comment

Secondary axis with twinx(): how to add to legend?

August 20, 2022 by Magenaut

I have a plot with two y-axes, using twinx(). I also give labels to the lines, and want to show them with legend(), but I only succeed to get the labels of one axis in the legend:

Categories Python, Q&A Tags axis, legend, matplotlib, python Leave a comment

After conda update, python kernel crashes when matplotlib is used

August 20, 2022 by Magenaut

I have create this simple env with conda:

Categories Python, Q&A Tags conda, freetype, matplotlib, python, windows Leave a comment

Pandas Dataframe line plot display date on xaxis

August 20, 2022 by Magenaut

Compare the following code:

Categories Python, Q&A Tags datetime, matplotlib, pandas, python Leave a comment

x, = … – is this trailing comma the comma operator?

August 20, 2022 by Magenaut

I don’t understand what does comma after variable lines, means: http://matplotlib.org/examples/animation/simple_anim.html

Categories Python, Q&A Tags matplotlib, python, tuples Leave a comment

Create own colormap using matplotlib and plot color scale

August 20, 2022 by Magenaut

I have the following problem, I want to create my own colormap (red-mix-violet-mix-blue) that maps to values between -2 and +2 and want to use it to color points in my plot.
The plot should then have the colorscale to the right.

Categories Python, Q&A Tags matplotlib, plot, python Leave a comment

How to change the font size on a matplotlib plot

August 20, 2022 by Magenaut

How does one change the font size for all elements (ticks, labels, title) on a matplotlib plot?

Categories Python, Q&A Tags font-size, matplotlib, python Leave a comment

How to add group labels for bar charts in matplotlib

August 20, 2022 by Magenaut

I want to plot data of the following form, using matplotlib bar plot:

Categories Python, Q&A Tags bar-chart, matplotlib, python Leave a comment

Is there a way to detach matplotlib plots so that the computation can continue?

August 20, 2022 by Magenaut

After these instructions in the Python interpreter one gets a window with a plot:

Categories Python, Q&A Tags matplotlib, plot, python Leave a comment
Older posts
Newer posts
← Previous Page1 … Page5 Page6 Page7 … Page43 Next →
  1. michealSmith07 on Is there a way to dynamically refresh the less command?August 21, 2022

    That is a very nice post. I like this post.

  2. anonymous on Fix libwacom9 dependency issue when upgrade DebianJune 27, 2022

    saved my day!! Thanks for the help…

  3. sreedhar on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    Thanks its working

  4. saintnick on Fix libwacom9 dependency issue when upgrade DebianMay 10, 2022

    remove libwacom2 worked for me as well

  5. ranafoul on Fix libwacom9 dependency issue when upgrade DebianApril 22, 2022

    apt remove libwacom2 helped on kali 2022.01. gr8

.net ajax asp.net asp.net-core asp.net-mvc asp.net-mvc-3 asp.net-mvc-4 asp.net-web-api bash c# command-line css custom-post-types custom-taxonomy dataframe dictionary django entity-framework functions gridview html iis javascript jquery json linux list matplotlib numpy pandas php plugin-development plugins posts python python-2.7 python-3.x security shell shell-script sql string vb.net webforms wp-query

© 2026 Magenaut • Built with GeneratePress