0
votes
3answers
21 views
Looping same program for different data files
For the following program, I am trying to save time copying and pasting tons of code. I would like this program to plot using the data file 19_6.txt and aux.19_6, and then continue by plotting the ...
0
votes
1answer
45 views
Change the axes label orientation and legend position of plot
I am plotting a bar graph by reading data from a CSV using pandas in Python. I read a CSV into a DataFrame and plot them using matplotlib.
Here is how my CSV looks like:
SegmentName Sample1 ...
0
votes
0answers
29 views
In Matplotlib what is the Polar equivalent of get_xdata?
I found the following example of selecting data with the mouse but when I use the onpick function with a polar plot I get the following error:
xdata = thisline.get_xdata()
AttributeError: ...
0
votes
0answers
23 views
Python and HTML image maps
I'm developing program which will generate scatterplots (about 10, usually) of a potentially large amount of points (can range from a hundred to a thousand, or more).
What I would like to do is to ...
1
vote
2answers
76 views
Combining two Gaussians into another Guassian [on hold]
In the code below I have two Gaussian one red and the other in a purple curve. I am wondering if there is a way in python to combining both Gaussian unto a third curve which is suppose to look like ...
2
votes
2answers
60 views
Plotting a polynomial in Python
I am new to Python plotting apart from some basic knowledge of matplotlib.pyplot. My question is how to plot some higher degree polynomials? One method I saw was expressing y in terms of x and then ...
2
votes
1answer
19 views
Python Matplotlib FuncAnimation
Hello Dear StackOverfloooow Members,
I am having trouble understanding the FuncAnimation module of matplotlib. Would you mind helping me out a bit? I have two questions:
Why does both die init and ...
0
votes
0answers
24 views
Getting a no #DISPLAY environment variable error using pyplot python
Here is the error, i am very unsure as to how to resolve it (Im new with plotting on python)
self.tk = _tkinter.create(screenName, baseName, className, interactive, wantobjects, useTk, sync, use)
...
2
votes
2answers
49 views
Plotting two different sized grids. Smaller grid centred on the centre of the bigger
I am trying to get something like this (image the image is fully populated with the red squares (I only drew a few)): ![enter image description here][1]. Expanding on what I want: I want the RED ...
0
votes
0answers
36 views
How to remove the previous drawing in matplotlib, Python?
I have run 3 Python scripts and each of them generated one curve in the plot.
Each curve is made up of hundreds of small line segments.
Thus, each curve is drawn by a series of plot() instead of ...
0
votes
0answers
21 views
Mayavi surface axis and labels overlaping
The labels and legend of Mayavi's surface plot often overlap, and they have the same color. The resulting figure is not as readable as matplotlib's mplot3d surfaces. However I prefer the output of ...
1
vote
3answers
101 views
Create gantt Plot with python matplotlib
How is ist possible with matplotlib to plot a graph with that data. The problem is to visualize the distance from column 2 to column 3. At the End it should look like a gant time graph.
0 0 ...
0
votes
1answer
34 views
Can't upgrade matplotlib
I'm trying to upgrade matplotlib in Ubuntu 12.04. When I run the command:
sudo pip install --upgrade matplotlib
I get this error:
Downloading/unpacking matplotlib
Running setup.py egg_info for ...
1
vote
1answer
24 views
Extra white space in bar diagram matplotlib
I am creating the following plot and it seems like it's leaving some extra white space on the right hand side and I'm not exactly sure why.
The code to generate the above is given below:
import ...
1
vote
1answer
21 views
Matplotlib: poor resolution of PDF figures with hatching
When using Matplotlib to generate figures with hatching (e.g. pie, bar, bubble charts), I'm having some trouble getting decent resolution out of the PDF version of the figure. Saving as EPS is fine, ...