Skip to content

Magenaut

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

matplotlib

In Matplotlib, what does the argument mean in fig.add_subplot(111)?

August 19, 2022 by Magenaut

Sometimes I come across code such as this:

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

Moving matplotlib legend outside of the axis makes it cutoff by the figure box

August 19, 2022 by Magenaut

I’m familiar with the following questions:

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

How to share x axes of two subplots after they have been created

August 19, 2022 by Magenaut

I’m trying to share two subplots axis, but I need to share x axis after the figure was created.
So, for instance, I create this figure:

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

how do I make a single legend for many subplots with matplotlib?

August 19, 2022 by Magenaut

I am plotting the same type of information, but for different countries, with multiple subplots with matplotlib. That is, I have 9 plots on a 3×3 grid, all with the same for lines (of course, different values per line).

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

Specifying and saving a figure with exact size in pixels

August 19, 2022 by Magenaut

Say I have an image of size 3841 x 7195 pixels. I would like to save the contents of the figure to disk, resulting in an image of the exact size I specify in pixels.

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

Changing the formatting of a datetime axis in matplotlib

August 19, 2022 by Magenaut

I have a series whose index is datetime that I wish to plot. I want to plot the values of the series on the y axis and the index of the series on the x axis. The Series looks as follows:

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

python matplotlib update scatter plot from a function

August 19, 2022 by Magenaut

I am trying to automatically update a scatter plot.
The source of my X and Y values is external, and the data is pushed automatically into my code in a non-predicted time intervals (rounds).

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

Is it possible to plot implicit equations using Matplotlib?

August 19, 2022 by Magenaut

I would like to plot implicit equations (of the form f(x, y)=g(x, y) eg. X^y=y^x) in Matplotlib. Is this possible?

Categories Python, Q&A Tags equation, implicit, matplotlib, python, sympy Leave a comment

Hiding axis text in matplotlib plots

August 19, 2022 by Magenaut

I’m trying to plot a figure without tickmarks or numbers on either of the axes (I use axes in the traditional sense, not the matplotlib nomenclature!). An issue I have come across is where matplotlib adjusts the x(y)ticklabels by subtracting a value N, then adds N at the end of the axis.

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

Make contour of scatter

August 19, 2022 by Magenaut

In python, If I have a set of data

Categories Python, Q&A Tags contour, matplotlib, python, scatter-plot Leave a comment
Older posts
Newer posts
← Previous Page1 … Page9 Page10 Page11 … 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