Skip to content

Magenaut

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

matplotlib

Plotting dates on the x-axis with Python’s matplotlib

August 20, 2022 by Magenaut

I am trying to plot information against dates. I have a list of dates in the format “01/02/1991”.

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

Matplotlib plots: removing axis, legends and white spaces

August 20, 2022 by Magenaut

I’m new to Python and Matplotlib, I would like to simply apply colormap to an image and write the resulting image, without using axes, labels, titles or anything usually automatically added by matplotlib. Here is what I did:

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

Plot a horizontal line using matplotlib

August 20, 2022 by Magenaut

I have used spline interpolation to smooth a time series and would also like to add a horizontal line to the plot. But there seems to be an issue that is out of my grips. Any assistance would be really helpful. Here is what I have:

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

Plotting a 3d cube, a sphere and a vector in Matplotlib

August 20, 2022 by Magenaut

I search how to plot something with less instruction as possible with Matplotlib but I don’t find any help for this in the documentation.

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

Scatter plot and Color mapping in Python

August 20, 2022 by Magenaut

I have a range of points x and y stored in numpy arrays.
Those represent x(t) and y(t) where t=0…T-1

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

Matplotlib make tick labels font size smaller

August 20, 2022 by Magenaut

In a matplotlib figure, how can I make the font size for the tick labels using ax1.set_xticklabels() smaller?

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

Editing the date formatting of x-axis tick labels in matplotlib

August 20, 2022 by Magenaut

I am looking to edit the formatting of the dates on the x-axis. The picture below shows how they appear on my bar graph by default. I would like to remove the repetition of ‘Dec’ and ‘2012’ and just have the actual date numbers along the x-axis.

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

Setting different color for each series in scatter plot on matplotlib

August 20, 2022 by Magenaut

Suppose I have three data sets:

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

Break // in x axis of matplotlib

August 20, 2022 by Magenaut

Best way to describe what I want to achieve is using my own image: Now I have a lot of dead space in the spectra plot, especially between 5200 and 6300. My question is quite simple, how would I add in a nice little // break that looks something similar to this (image lifted from … Read more

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

Display image as grayscale using matplotlib

August 19, 2022 by Magenaut

I’m trying to display a grayscale image using matplotlib.pyplot.imshow(). My problem is that the grayscale image is displayed as a colormap. I need the grayscale because I want to draw on top of the image with color.

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