Used for questions related to python library for using matplotlib from .NET programs (e.g. C#).
Questions tagged [pythonplotter]
27 questions
3
votes
0 answers
Cannot cast array data from dtype('float64') to dtype('int64') according to the rule 'safe'
def plot_pca_scatter3D(pca_values, x, y):
for name, label in [('1', 0), ('2', 1), ('3', 2), ('4', 3)]:
ax.text3D(pca_values[y == label, 0].mean(),
pca_values[y == label, 1].mean() + 1.5,
pca_values[y == label,…

user3806397
- 35
- 7
2
votes
1 answer
How to plot values from the DataFrame? Python 3.0
I'm trying to plot the values from the A column against the index(Of the DataFrame table), but it doesnt allow me to. How to do it?
INDEX is the index from the DataFrame and not the declared variable.

user234568
- 741
- 3
- 11
- 21
2
votes
1 answer
Python plot multiple colorbar
I was trying to plot some data and I created a loop so that I can load the image more efficiently.
However after I plotted the data, I realised that the more images I plot, the more colorbars appeared on my graph... The colorbars from previous…

Alan Yin
- 21
- 1
- 3
2
votes
1 answer
The specified executable is not a valid application for this OS platform. Pythonplotter
I am trying to use the C# pythonplotter package, but when I compile the example from github an error message shows up:
Error in spawning plotting process: The specified executable is not a valid application for this OS platform.
I am not sure…

Raul Salazar
- 19
- 1
- 4
1
vote
1 answer
Ploting an angle limited to [0,2pi]
I have a angle 'q' defined by the following equation:
q = 150*(t**2)
I'm trying to plot a graph that contains the variation of q based on the time, but the angle goes further than 2pi if I try to plot it for more than 1 cycle of rotation, I need to…
1
vote
1 answer
How to plot using timstamp and coordinates?
I have logs of mouse movement that is coordinates and timestamp .I want to plot the mouse movement using this log how can I do this I have no idea what API or what can be used to do the same.I want to know how start with if there is some way which…

Nurav
- 167
- 1
- 3
- 15
1
vote
1 answer
How do I correctly write the syntax for performing and plotting a for loop operation?
I am trying to create a for loop which uses a defined function (B_lambda) and takes in values of wavelength and temperature to produce values of intensity. i.e. I want the loop to take the function B_lambda and to run through every value within my…

User1997
- 33
- 7
1
vote
1 answer
I'm attempting to plot the square roots in a single figure. However this is not getting plotted
I'm attempting to plot the square roots in a single figure. However, this is not getting plotted. Can somebody help me?
import numpy as np
import matplotlib.pyplot as plt
plt.figure()
for i in np.arange(1,5):
zm=i**2
…

d_k
- 21
- 1
0
votes
0 answers
Python for looping to update one graph in python
I am familiarizing my self with Monte Carlo simulations and have played around with the following code. It is a gambling dice rolling game with an increased payout for doubles. It uses RNG and pyplot. The for loop, print statements, and basic math…

kca062
- 53
- 5
0
votes
1 answer
How do I highlight a slice on a matplotlib 3D surface plot(using quiver)?
I have the following code of 3D plot and would like to present a slice of it
import matplotlib.pyplot as plt
import numpy as np
ax = plt.figure().add_subplot(projection='3d')
# Make the grid
x, y, z = np.meshgrid(np.arange(-0.8, 1, 0.2),
…

Hani
- 3
- 2
0
votes
0 answers
How do I plot a 3D parallelepiped using vectors with Python
So I am doing some homework for my calculus class, and the question asked us to find the volume of a parallelepiped that is being represented by three adjacent edges: PQ, PR, and PS. P, Q, R, and S are located at (-2,1,0), (3,4,3) (1,4,-1) and…

ty_743
- 1
0
votes
0 answers
How to hold single point plots in python?
Is there any way to hold all the plots together (every plot is a point) in the following code:
import numpy as np
import matplotlib.pyplot as…

xristos geo
- 1
- 1
0
votes
0 answers
How can I solve the Inkscape SyntaxError when trying to save a gcode?
I've been struggling for the past few days to install and uninstall different versions of Inkscape in hope that one of them will finally convert my image into gcode. Unfortunately, nothing seems to work. (I also have installed version Python 3.8)
As…
0
votes
0 answers
plotting annotation in scatter chart
Plotting scatters I am using this code
code
But I need to appear the only date annotation ( not houres:minutes:seconds) as I show
output
0
votes
1 answer
Where is my code hanging (in an infinite loop)?
I am new to Python and trying to get this script to run, but it seems to be hanging in an infinite loop. When I use ctrl+c to stop it, it is always on line 103.
vs = 20.05 * np.sqrt(Tb + Lb * (y - y0)) # m/s speed of sound as a function of…

Alex Cushley
- 85
- 7