Used for questions related to python library for using matplotlib from .NET programs (e.g. C#).
Questions tagged [pythonplotter]
27 questions
0
votes
2 answers
pyecharts: How to display charts made with pyecharts in spyder?
This is my code.
from pyecharts import Line
attr = ["衬衫", "羊毛衫", "雪纺衫", "裤子", "高跟鞋", "袜子"]
v1 = [5, 20, 36, 10, 10, 100]
v2 = [55, 60, 16, 20, 15, 80]
line = Line("折线图示例")
line.add("商家A", attr, v1, mark_point=["average"])
line.add("商家B", attr, v2,…

Mausam Singh
- 11
- 2
0
votes
1 answer
add line between points in pyvista plotter
I have 3d points in file.I read them :
def points_to_array(pathIn):
pointArray = []
point = []
in_file = open(pathIn, 'r')
for line in in_file.readlines():
split_line = line.strip('\n').split(' ')
for i in range(0,…

YAKOVM
- 9,805
- 31
- 116
- 217
0
votes
1 answer
plotting multivariate grouped bar graph using loop
I am trying to create a grouped bar chart with multiple subplots using matplotlib and pandas. I am able to create it manually defining the plots according to the values of the datatframe, but I want to get it automated with loops. I have tried many…

rpspring01
- 35
- 2
0
votes
1 answer
Jupyter plot does not have a scale
The X axis and Y axis scale does not appear in plots.
I even tried running exact code from notebooks that have scaled plots.
It appears the problem lies with the notebook and not the code.
Code snippet

aadarsh verma
- 7
- 4
0
votes
0 answers
How to plot a probability density function of 3 variables
I have some piecewise-constant probability density functions of 3 variables, and I would like to represent these on a 3D plot. My idea is to do this by leaving those grid cubes where p(x,y,z)=0 transparent, whilst increasing the opacity (or…

Aerinmund Fagelson
- 143
- 5
0
votes
1 answer
Creating a custom plot
I need to create a custom plot (see image) where each circle is a variable and it's color represents the value of it. I need too some correlation between the value of the variable and it's color, so if i change the value of the variable it also…

Davitens
- 33
- 1
- 1
- 5
0
votes
0 answers
How can I color the area between 2 curves?
I'm trying to color the area between 2 fitted curves that I've plotted. Here is my code, though I can't include the data I'm using:
import numpy as np
import matplotlib.pyplot as plt
xp = np.linspace(-6.0, 0.0)
bestfitup = np.poly1d(np.polyfit(x,…

Maryam Raouph
- 9
- 2
0
votes
0 answers
Cylinder does not rotate in Python
I am trying to plot a rotated cylinder whose Z-axis is rotated by pi/4 radians. I am building-up on top of the code given here. The way I try to draw the rotated cylinder is as following, at first I generate mesh grid points on the surface of a…

Geek
- 395
- 1
- 9
0
votes
0 answers
python matplotlib backend configuration
I just installed Intel Python Distribution with Anaconda. I was trying the plot some data but it plots on Web Browser and gives "Press Ctrl+C to stop WebAgg server" output also. I tried to change the backend using "plt.switch_backend('TkAgg')" and…

onur
- 1
0
votes
0 answers
Create an animation with varied time interval in python
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
import matplotlib.animation as animation
fig, ax = plt.subplots(figsize=(3,9))
dot, = ax.plot([], [], 'ro')
def init():
ax.set_xlim(0,1)
ax.set_ylim(0,3)
…

Herr Günther
- 43
- 3
-1
votes
1 answer
How can I plot a CDF with columns from .csv?
I try to plot a CDF with data from my csv-file. I already found some code in web, but I don't get the point where I can say from which column in my csv I want the data in my CDF.
I want to use pandas since I use it for other plots.
The .csv looks…

Niklas
- 1
- 1