Quantcast
Channel: Uncategorized - Matplotlib
Browsing latest articles
Browse All 50 View Live

Image may be NSFW.
Clik here to view.

Regarding 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 Article


Pyplot 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 Article


Mpl_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 Article

Questions 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 Article

TypeError: 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 Article


Image may be NSFW.
Clik here to view.

Axes.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 Article

Changing 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 Article

I 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 Article


How 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 Article


Regarding 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 Article

Image may be NSFW.
Clik here to view.

How 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 Article

Logo 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 Article

hieroglyphs 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 Article


Error 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 Article

Image may be NSFW.
Clik here to view.

Plot 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


Matplotlib inline no longer default in Notebook?

Brand new computer. Fresh anaconda install (Python 3.12 and anaconda 2024.10-1). import numpy as np import matplotlib.pyplot as plt import matplotlib as mpl % matplotlib inline fig1,ax =...

View Article

Cannot make animation by using proplot

Hello, I want like to make an animation by reading the data for a 3d surface, plotting it and rotating the 3d plot as a function of time. I want to use proplot for the 3d plot. Here is a minimal...

View Article


Embedding multiple matplotlib animated plots on window using FigureCanvassTkAgg

I am creating a GUI for experimental data using Matplotlib; 2 animated data plots and 3 meters like speedometer gauges with moving needles. These widgets work fine on their own; the images fill their...

View Article

Image may be NSFW.
Clik here to view.

Legend with location set to 'best' collides with the title when the titles is...

Hi: I’m adjusting the y-position of a plot title. Then, I add a legend with loc set to ‘best’. However, the legend is placed on top of the title. The following code demonstrates the issue: import...

View Article

Trying to plot in PyCharm

trying to do a simple plt.show() in a PyCharm project/file, i am getting a tkinter error, which is not found . simple code: import pandas as pd import numpy as np import matplotlib import...

View Article

Image may be NSFW.
Clik here to view.

Multiple overlapping plots

I need to produce a plot with x and y axis fixed but multiple curves overlapped. (A family of up to 8 curves from a curve tracer where each represents a step in transistor base current. Each digitized...

View Article


Unable install matplotlib under windows 10 32 bits python version > 3.10

Unable to install matplotlib 10.0 under windows 10 32 bits python version > 3.10 require visualc++17 How to install visual-c++17 I have installed microsoft visual studio 2022 1 post - 1 participant...

View Article


Why minor xtick dont show up?

I run following codes, but minor xtick don’t show up correctly I am in matplotlib 3.10.1, python 3.12.2 import matplotlib from matplotlib import pyplot as plt from matplotlib import rc import numpy...

View Article

Permission to modify "matplotlib codes" for publications in a book or journal...

I am a book author. I plan to modify some “matplotlib codes” to generate some diagrams for my new educational book. Please advise if the following attribution statement is acceptable: License...

View Article

How to define a custom path effect / pencil stroke effect?

Hi! I have always liked the xkcd style in Matplotlib for informal visualizations. Now I am looking for a more “classy” variation of this, mimicking the look pencil strokes on paper (basically this:...

View Article

Browsing latest articles
Browse All 50 View Live