Samples desappear in line plot pdf path
Anyone knows how matplotlib creates the path of the pdf from a plot? I found a strange behavior because the nodes of the path doesn’t coincide with the original data samples. Do it get rid of...
View ArticleHow to solve the issue associated with MatplotlibDeprecationWarning?
Hi everyone, How can I provide either the cax argument to use as the Axes for the Colorbar, or provide the ax argument to steal space from it, or add mappable to an Axes. Although I can plot my chart...
View ArticleHistograms are getting overlapped on each other
I’m trying to plot figures and save it as a file and show it in HTML. I’m using flask and putting all the code for histogram generation in a function. But each time the histogram is plotted based on...
View ArticleWhat are the `X, Y, Z` arguments of `Axes3D.plot_wireframe`
https://matplotlib.org/stable/api/_as_gen/mpl_toolkits.mplot3d.axes3d.Axes3D.plot_wireframe.html#mpl_toolkits.mplot3d.axes3d.Axes3D.plot_wireframe I am trying to use the plot_wireframe function to...
View ArticleMatplotlib on iMac M1 using Python 3.12.0 not working
I have used matplot lib successfully in past using Raspberry Pi. Want now to use on iMac M1 (still using OS Ventura latest version as Sonoma not yet installed). Anaconda apparently says matplotlib is...
View ArticleRegarding pymatgen Dos plot Matplotlib object
Hii users I have a script attached below. Here plt is a matplotlib Axes object. I want to change legend horizontally for that i use ncols but now i am getting two legends in my plot. Anyone please...
View ArticlePyplot multiple graph but in different times
As I’m a “advanced” beginner, I’m not really sure how can be done. I seen more tutorials about multiple graph in the same figure(is it the right expression?) BUT all of them made from “static” data...
View ArticleMpl_point_clicker .get_positions() what format is the output?
output looks like {'event': array([[1.67995135e+04, 6.55955229e-01], [1.69624105e+04, 5.81226125e-01], [1.70529991e+04, 4.94042171e-01], [1.71419628e+04, 7.68048884e-01]])} is this a nested array? How...
View ArticleQuestions about Copilot + Open Source Software Hierarchy
Hi! My name is Chris and I’m writing a thesis on Open Source Software. I’m trying to collect/validate my data and I have two questions for the maintainers of this project. Did this project receive...
View ArticleTypeError: stem() got an unexpected keyword argument 'use_line_collection'
plt.subplot(122); plt.stem(x, y, use_line_collection=True) I have the above error after running this code. I am using Python3.12 and have updated matplotlib to version 3.8.3. How can I solve this...
View ArticleAxes.autoscale_view() works when bound to tkinter '' but not as ttk.Button...
Hello all, very frustrating problem here that I’ve been trying to solve for about 12 hours, but I suspect the cause is more sophisticated than my skill level will allow me to diagnose. I have a...
View ArticleChanging Line2D data within FigureCanvas in Python 3.8.10
Hello, I have sub-classed the class FigureCanvas into a class Canvas to do some fancy mouse-clicking and mouse-moving things on a single line. I keep the x,y data for the line in two numpy arrays...
View ArticleI want to animate a bicycle model and want to see how it performs the lane...
Exception in Tkinter callback Traceback (most recent call last): File “C:\Users\KIIT\AppData\Local\Programs\Python\Python310\lib\tkinter_init_.py”, line 1921, in call return self.func(*args) File...
View ArticleHow to change label offset on Parasite Axes demo
Hi, When I have numerous parasite axes I need to pull labels closer to the vertical line, otherwise they do not fit. I tried adding all possible label-related adjustments, which I can scrape from the...
View ArticleRegarding the issue that when moving the canvas, text is displayed outside...
Hello everyone When using the cross tool to move the canvas, if the annotation text also moves and displays this outside the canvas range, how to solve this problem? 2 posts - 2 participants Read full...
View ArticleHow to make 3D surface plot opaque to 3D vectors?
Hi everyone, I’m essentially plotting vectors on the surface of a sphere, represented by a plot_surface plot. On the top of this surface, I’m plotting vectors using the quiver function. However the...
View ArticleLogo usage inquiry: Whom to contact?
Hi! I would like to show the matplotlib logo on my freelancer portfolio web site but could not find a policy on that. Whom can I contact? Best regards, Tilman 2 posts - 2 participants Read full topic
View Articlehieroglyphs and matplotlib
Hi everybody,I’d want to draw hieroglyphs in matplotlib.I have the code below but it only draws little rectangles rather than hieroglyphs. Thanks a lot for help. import matplotlib import...
View ArticleError when closing tkinter GUI with plots/sub-plots
Hello, I’m getting the below error every time i hit x to close the GUI… although i’m not explicitly calling any of the below methods/functions… thanks a lot! invalid command name “2951484352128update”...
View ArticlePlot solid 3D surface on top of another one
Hello, I want to plot the red and the green sphere as two solid, three-dimensional objects in this minimal working example code: import matplotlib.pyplot as plt import numpy as np r = 0.05 fig =...
View Article